Textpattern Forum

You are not logged in. Register | Login | Help

#1 2004-05-10 18:35:21

ReinierBiz
Plugin Author
From: the Netherlands, Rotterdam
Registered: 2004-04-07
Posts: 42
Website

[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

#2 2004-05-10 18:54:18

LisaJill
Member
From: White Plains, NY
Registered: 2004-04-26
Posts: 16
Website

Re: [archived] rei_recent_comments: Recent Comments Unordend List

Thank you for releasing this Rein, that was one of my pet peeves, too. ;)

Offline

#3 2004-05-10 21:21:57

jason
Member
From: USA
Registered: 2004-02-23
Posts: 85
Website

Re: [archived] rei_recent_comments: Recent Comments Unordend List

Agreed. nice, I’m a fan of the ul.

Offline

#4 2004-05-10 21:52:00

LisaJill
Member
From: White Plains, NY
Registered: 2004-04-26
Posts: 16
Website

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

#5 2004-05-11 17:29:06

kennethlove666
Member
From: arkansas
Registered: 2004-04-27
Posts: 107
Website

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

#6 2004-05-11 17:35:31

ReinierBiz
Plugin Author
From: the Netherlands, Rotterdam
Registered: 2004-04-07
Posts: 42
Website

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

#7 2004-05-11 17:39:18

ReinierBiz
Plugin Author
From: the Netherlands, Rotterdam
Registered: 2004-04-07
Posts: 42
Website

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

#8 2004-05-11 17:48:23

LisaJill
Member
From: White Plains, NY
Registered: 2004-04-26
Posts: 16
Website

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

#9 2004-05-11 18:50:08

ReinierBiz
Plugin Author
From: the Netherlands, Rotterdam
Registered: 2004-04-07
Posts: 42
Website

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

#10 2004-05-11 20:03:19

kennethlove666
Member
From: arkansas
Registered: 2004-04-27
Posts: 107
Website

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

Board footer

Powered by FluxBB