Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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!
Offline
Re: Plugin request (prob v simple)
Is this what you’re looking for?
Offline
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.
Offline
Re: Plugin request (prob v simple)
Perhaps the zem_nth plugin does the job?
Offline
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?
Offline
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
Offline
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
Offline
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
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.
Offline
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
Pages: 1