Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-09-29 19:01:09

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

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?


Offline

#14 2006-09-29 22:30:33

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

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

#15 2006-09-30 01:29:00

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

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. :)


Offline

#16 2006-10-05 21:18:43

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

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

#17 2006-10-05 21:22:47

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

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=”“


Offline

#18 2006-10-05 21:48:38

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

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

#20 2006-10-05 22:41:32

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

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)


Offline

#21 2006-10-06 04:13:08

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

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

#22 2006-10-06 09:13:40

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

Re: wet_recent_comments: Context sensitive recent comments list

That’s it, Els! Thanks!


Prrrrrrrr

Offline

#23 2006-10-06 12:35:47

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

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?


Offline

#24 2010-01-20 21:41:21

TJ
Member
From: Alton, Missouri USA
Registered: 2010-01-14
Posts: 23
Website

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

Board footer

Powered by FluxBB