This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

using permalinks on recent comments module
#1

Hello,
is a way to use permalinks on recent comments addon instead of page urls ?

Even on a page that doesn't include commentics.php ...

I can make it work in a standart page that has comments but I can not at the frontpage of my website.

Thanks in advance
Reply
#2

Hi,

I haven't tested it but adding the part in red should work:

echo $comment["name"] . " on <a href='" . $page["url"] . "?cmtx_perm=" . $comment["id"] . "#cmtx_perm_" . $comment["id"] . "'>" . $page["reference"] . "</a> at " . date("g:ia (jS-M)", strtotime($comment["dated"]));

Have you completed the interview?
Reply
#3

(12-Mar-2013, 09:00 PM)Steven Wrote:  Hi,

I haven't tested it but adding the part in red should work:

echo $comment["name"] . " on <a href='" . $page["url"] . "?cmtx_perm=" . $comment["id"] . "#cmtx_perm_" . $comment["id"] . "'>" . $page["reference"] . "</a> at " . date("g:ia (jS-M)", strtotime($comment["dated"]));

As a noob, after I saw the functions related with permalinks, I thought that it would be complicated. Thank you for this simple solution. Worked like a charm..
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
28-Mar-2023, 12:17 PM
Last Post by noblues
26-Sep-2013, 05:44 PM
Last Post by kooler
02-Aug-2013, 05:29 PM
Last Post by Steven
27-Jan-2013, 09:31 PM
Last Post by brande
23-Jan-2013, 07:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)