Categories:
Author:
Current version:
0.2
About It:
Get it:
Rate it:
Flag it:
rei_recent_comments
In the current version, the recent_comments tag from Dean isn’t working like I want it. I want an unordend list, like the other lists (recent articles, related etc.)
So I made my own plugin that I can use till Dean fixed the list problem (cause it should work in my opinion).
You can use the variables like ‘limit’ and ‘wraptag’ and ‘break’, but in default it spitts out a nice unordend list.
Use it like this:
<txp:rei_recent_comments />
Returns links to the last 10 comments.-
<txp:rei_recent_comments showcomment="yes" />
Returns links and the comments itself (max 50 words standard) of the last 10 comments. -
<txp:rei_recent_comments showcomment="yes" maxwords="20" />
Returns links and the comments itself (max 20 words) of the last 10 comments.
Initially released:
2004-05-10Posted here:
24 Mar 2005Article modified:
10 Oct 2005









You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:
Commented (3)
** define $articleid **
$articleid = (empty($section)) ? $GLOBALS[’s’] : $articleid;
** Add SQL **
where ”.PFX.”txp_discuss.parentid = ’$articleid’
*or hard code*
where ”.PFX.”txp_discuss.parentid = ‘22’
To Order by Section:
Add
$section = (empty($section)) ? $GLOBALS[’s’] : $section;
and
WHERE ”
.PFX.”textpattern.Section = ’$section’
Hope this helps someone :)
Subscribe to this article's comments RSS feed. [ ? ] View Recent Comments across the site.