Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[archived] rei_recent_comments: Recent Comments Unordend List
Notice: This thread is archived, this plugin is no longer available. We have wet_recent_comments now
**********************************************************
Allright. My Very First Plugin, and it was a breeze…. 10 minutes of ‘programming’. Thanks Dean for this fantastic system!
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).
Download plugin:
http://www.reinier.biz/txp_plugins/rei_recent_comments.txt
(Right click and “save as”)
Use it like this and your done:
<code>
<txp:rei_recent_comments />
</code>
U can use the variables like ‘limit’ and ‘wraptag’ and ‘break’, but in default it spitts out a nice unordend list.
UPDATE
Use it like this:
- <code><txp:rei_recent_comments /></code>
Returns links to the last 10 comments.
- <code><txp:rei_recent_comments showcomment=“yes” /></code>
Returns links and the comments itself (max 50 words standard) of the last 10 comments.
- <code><txp:rei_recent_comments showcomment=“yes” maxwords=“20” /></code>
Returns links and the comments itself (max 20 words) of the last 10 comments.
I hope you’ll like it.
Last edited by ReinierBiz (2005-11-15 16:33:38)
VC88 | Nah, there weren’t really eighty-eight of them. They just called themselves “The Crazy 88.”
Offline
Re: [archived] rei_recent_comments: Recent Comments Unordend List
Thank you for releasing this Rein, that was one of my pet peeves, too. ;)
Offline
Re: [archived] rei_recent_comments: Recent Comments Unordend List
Agreed. nice, I’m a fan of the ul.
Offline
Re: [archived] rei_recent_comments: Recent Comments Unordend List
I have a quick question; and I had a look at the plugin but it’s all greek to me.
How hard would it be to modify it so that instead of saying
Username (Entry Title) It said
Username spoke about EntryTitle
Where the username would the link to their site and EntryTitle would be a permalink to the article?
Thanks. =)
Last edited by LisaJill (2004-05-10 21:52:10)
Offline
Re: [archived] rei_recent_comments: Recent Comments Unordend List
not getting anything here, captain.
installed fine, turned on fine, put in the tag…nothing.
Listen to Kenneth
Offline
Re: [archived] rei_recent_comments: Recent Comments Unordend List
What version are you using?
VC88 | Nah, there weren’t really eighty-eight of them. They just called themselves “The Crazy 88.”
Offline
Re: [archived] rei_recent_comments: Recent Comments Unordend List
LisaJill:
Change the following:
<code>
? ‘<a href=”’.$pfr.$Section.’/’.$ID.’/#c’.$discussid.’”>’.$name.’ (‘.$Title.’)</a>’
: ‘<a href=”’.$pfr.‘index.php?id=’.$ID.’#c’.$discussid.’”>’.$name.’ (‘.$Title.’)</a>’;
</code>
Into this:
<code>
? $name.’ spoke about <a href=”’.$pfr.$Section.’/’.$ID.’/#c’.$discussid.’”>’.$Title.’</a>’
: $name.’ spole about <a href=”’.$pfr.‘index.php?id=’.$ID.’#c’.$discussid.’”>’.$Title.’</a>’;
</code>
That’ll give you something like that.
Last edited by ReinierBiz (2004-05-11 17:39:41)
VC88 | Nah, there weren’t really eighty-eight of them. They just called themselves “The Crazy 88.”
Offline
Re: [archived] rei_recent_comments: Recent Comments Unordend List
Rein, thank you so much. The only thing is that the name isn’t a link to their website… How hard would that be to change? I’m not too fussed about it but I figure it’d be nice a nice boon for my visitors. =)
Or is that because I’ve set the show email to never in admin_config?
Last edited by LisaJill (2004-05-11 17:50:35)
Offline
Re: [archived] rei_recent_comments: Recent Comments Unordend List
I didn’t putt that in, the link to the authors website that is. No time for that right now, maybe I’ll come back to that later (the weekend if I can see a free spot of time :-) )
VC88 | Nah, there weren’t really eighty-eight of them. They just called themselves “The Crazy 88.”
Offline
Re: [archived] rei_recent_comments: Recent Comments Unordend List
i’m using g1.18.
and i’m using that version of the plugin, up there. :)
Listen to Kenneth
Offline
Re: [archived] rei_recent_comments: Recent Comments Unordend List
NP Rein, it’s not a big deal at all, I’d do it if I knew how grins
Offline
#12 2004-05-20 06:45:55
- hass
- Member
- Registered: 2004-04-23
- Posts: 13
Re: [archived] rei_recent_comments: Recent Comments Unordend List
Plug-in installed and working, I wanted to add my gratitude to the growing group-hug, thank you ReinerB.
Offline