Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: wet_recent_comments: Context sensitive recent comments list
Robert,
Is this right?
<code>
<txp:php>
$a = zem_nth (array(
‘step’ => ’2 0f=2’,
‘value’ => ‘alt’
));
echo wet_recent_comments (array( ‘class’ => $a, ‘wraptag’ => ‘’,
‘break’ => ‘’, ‘showcomment’ => ‘yes’, ‘maxwords’ => ‘10’,
‘striptags’ => ‘yes’, ‘dateformat’ => ‘default’));
</txp:php>
ps. Please do not make me laugh. I am likely to rupture something?
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: wet_recent_comments: Context sensitive recent comments list
Yours is right in a very… special… way.
Try this:
<txp:php>
$a = zem_nth (array(
'step' => '2',
'of' => '2',
'value' => 'alt'
));
echo wet_recent_comments (array( 'class' => $a, 'wraptag' => '',
'break' => '', 'showcomment' => 'yes', 'maxwords' => '10',
'striptags' => 'yes', 'dateformat' => 'default'));
</txp:php>
BTW: We could avoid this shebang if someone coughed up another 30 20 $$$ over here…
Last edited by wet (2006-09-29 22:34:52)
Offline
Re: wet_recent_comments: Context sensitive recent comments list
Robert,
actually it didn’t work as hoped because the class is being applied to the wrap instead of the break, so I think I’ll not push it :)
In the meantime, Sencer’s Nice Plugin has been released!!!
I’m sure he’ll post about it tomorrow. :)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: wet_recent_comments: Context sensitive recent comments list
Great plugin!
One question, though. In the source of my page, there’s an extra <code>< p></code> between the <code>< /a></code> of the link to the comment and the <code>< p></code> of the comment itself. I think this causes the rather large vertical whitespace between the link and the comment-text.
Is this because of the way I designed my page or is it in the plugin? I’m a big php-n00b, so I thought I’d just ask…
…Prrrrrrrr…
Offline
Re: wet_recent_comments: Context sensitive recent comments list
you may need to specify one of the attributes to have a blank argument ie: wraptag=”“
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: wet_recent_comments: Context sensitive recent comments list
Matthew, I just gave break and wraptag an emty argument, but nothing changed (in both cases). The < p>tags are still there. Any other suggestions? :)
…Prrrrrrrr…
Offline
#19 2006-10-05 22:36:32
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: wet_recent_comments: Context sensitive recent comments list
Use attribute striptags="yes"
:)
Offline
Re: wet_recent_comments: Context sensitive recent comments list
TNT,
Here’s what I use:
<code>
<ul id=“recent_comments”>
<txp:wet_recent_comments break=“li” wraptag=”“ limit=“3” showcomment=“yes” maxwords=“20” striptags=“yes” dateformat=”%B %d %y” />
</ul>
</code>
Nils is right sorry for the misinfo
Last edited by ma_smith (2006-10-05 22:42:08)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: wet_recent_comments: Context sensitive recent comments list
You girls and guys are doing a great support job while I’m asleep ;-) Thanks!
Offline
Re: wet_recent_comments: Context sensitive recent comments list
That’s it, Els! Thanks!
…Prrrrrrrr…
Offline
Re: wet_recent_comments: Context sensitive recent comments list
wet wrote:
You girls and guys are doing a great support job while I’m asleep ;-) Thanks!
Wet,
I thought computers robots didn’t have to sleep?
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: wet_recent_comments: Context sensitive recent comments list
Hi and thanks for all your plugins.
I’d like to display recent comments from all over my website even if the page I’m on is an individual article or section.
Basically, I’d like to limit the comment length just like this plug in does (we have some long-winded comments ;) ), but I’d like to show the top five (or so) for the whole site and be able to override the “context sensitive” “distinctive feature”.
I’ve looked around and tried some ideas, but I’ve failed.
Is there a way to override the context sensitive feature?
“…freely ye have received, freely give.” | www.PublishingAWebsite.com
Offline