Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-12 21:42:17

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Plugin request (prob v simple)

Request: I’d like to apply a zebra pattern to rei_recent_comments so that it is easy to distinguish them.

I have Johan Nilsson’s glx_recent_articles which does it great for recent articles. I’ve tried to combine the two but can’t get it to work. I have a poor understanding of PHP, old brain cells can’t seem to grasp it any more. I could probably figure it out in a month or two but perhaps someone could do it in a few minutes instead? I am sure you would all like alternating background shades for your recent comments, wouldn’t you!


BB6 Band My band
Gud One My blog

Offline

#2 2005-10-12 21:47:55

akokskis
Plugin Author
From: Baltimore-ish, USofA
Registered: 2004-11-28
Posts: 230
Website

Re: Plugin request (prob v simple)

Is this what you’re looking for?


My Photoblog, and my personal site. Got nav? ako_nav.
Thanks for taking the time to look…

— vc3 —

Offline

#3 2005-10-13 17:56:39

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Plugin request (prob v simple)

Akokskis, no that’s not what I mean. I have that plugin for the main comments and it is great. But there is a substitute for <code><txp:recent_comments /></code> called <a href=“http://textpattern.org/plugins/275/reirecentcomments”>rei_recent_comments</a> which allows part of the comment to be shown, not just the author and title. I want this to be extended a bit more so that alternating recent comments (usually shown in the sidebar, btw) can have different styles similar to the plugin by Johan Nilsson called <a href=“http://textpattern.org/plugins/306/glxrecentarticles”>glx_recent_articles</a> which does article titles but not comments.


BB6 Band My band
Gud One My blog

Offline

#4 2005-10-13 19:31:00

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: Plugin request (prob v simple)

Perhaps the zem_nth plugin does the job?

Offline

#5 2005-10-13 19:44:34

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Plugin request (prob v simple)

No, I’ve tried that too and it seems designed for lists already there, not on txp generated lists. At least I couldn’t find a way to make it works for me.

How can you wrap zem_nth around txp:recent_comments / and get it to applyto the lines generated within the recent comment list?


BB6 Band My band
Gud One My blog

Offline

#6 2005-10-13 20:09:35

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Plugin request (prob v simple)

Does rei_recent_comments use a form? I can’t remember.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#7 2005-10-13 20:52:32

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Plugin request (prob v simple)

I’m not quite sure what you mean, Stuart, but I’ve looked in the Edit part of the plugin page and there’s no sign of a form there. It uses maxwords=“10” but not form=“whatever”.

Last edited by zero (2005-10-13 21:06:26)


BB6 Band My band
Gud One My blog

Offline

#8 2005-10-13 22:27:45

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Plugin request (prob v simple)

OK. It’s been a while since I used it and I couldn’t remember. Something that used forms would be ideal here methinks.

Did you want to show full comments or limit their length?

Last edited by thebombsite (2005-10-13 22:34:36)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#9 2005-10-13 22:38:55

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Plugin request (prob v simple)

I want to limit their lenght. The maxwords=“a number” is nice.


BB6 Band My band
Gud One My blog

Offline

#10 2005-10-13 22:46:56

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Plugin request (prob v simple)

You just like limiting my options don’t you. Go on admit it. :) I think the word hack comes to mind here. Take rei_recent_comments and integrate the “zebra” feature from glx_recent_articles. Should be immense fun. I’m not the man for this but let me look at it for a while.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#11 2005-10-14 17:29:50

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Plugin request (prob v simple)

It will be a great chance to expand your horizons, Stuart :) For a man of your talents, it’s just a bit of copying and pasting isn’t it?!

Many thanks in advance if you can figure it out without diverting too much energy away from your priorities.


BB6 Band My band
Gud One My blog

Offline

#12 2005-10-14 21:55:58

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Plugin request (prob v simple)

Copy/pasting??? I should be so lucky. I have to say nothing is working yet. :(


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB