Posts: 10
Threads: 5
Joined: Nov 2012
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
Posts: 2,890
Threads: 59
Joined: Jun 2010
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?
Posts: 10
Threads: 5
Joined: Nov 2012
(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..