Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub 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

#25 2010-01-21 00:16:46

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: wet_recent_comments: Context sensitive recent comments list

You can use another plugin rvm_substr to limit comment length by character, unfortunately not by words, but you can add “…” at the end to make it look good. I think the default txp:recent_comments is not context sensitive, right?

Offline

#26 2010-04-12 22:26:09

sereal
Member
From: Indonesia
Registered: 2010-02-18
Posts: 55

Re: wet_recent_comments: Context sensitive recent comments list

hi wet,

I use your plugin on my site, but it seems I got a little problem here,

WRC is working fine on a Home Page, but everytime I go into sections, it shows nothing

I don’t know why this happen

any idea ?

thanks


$(mydocument).notyetready(function() {});
dowebsitesneedtolookexactlythesameineverybrowser ?

Offline

#27 2010-06-23 08:18:40

M_i
Member
Registered: 2006-03-05
Posts: 122

Re: wet_recent_comments: Context sensitive recent comments list

Is there a way to limit the comments to only those on posts that are visible (ie, live or sticky)?

I only want to display the comment if the parent post is visible on the site. I noticed that when I changed a post’s status to ‘hidden’, its comments were still listed by wet_recent_comments, and thereby creating broken links.

Of course I could also hide/delete the comments, but sometimes I’m not the one taking a post offline, and I think that’d be one step too many for most of my users.

Any help would be much appreciated!

Offline

#28 2010-06-27 12:07:02

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,376
Website GitHub Mastodon Twitter

Re: wet_recent_comments: Context sensitive recent comments list

Is there a way to hack the plugin so as to make it context insensitive? That is: to present the latest comment(s) no matter what page we are on.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#29 2010-06-27 14:13:15

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: wet_recent_comments: Context sensitive recent comments list

Hi Yiannis, isn’t that what it already does?

When wet_recent_comments is used in a page template, comments are taken from all articles, while in an article form comments are specifically chosen from the ones concerning the current article.

Offline

#30 2010-06-27 15:36:04

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,376
Website GitHub Mastodon Twitter

Re: wet_recent_comments: Context sensitive recent comments list

Els wrote:

Hi Yiannis, isn’t that what it already does?

HI Els,

No, the plugin is context sensitive… From the help:

wet_recent_comments is context sensitive: When wet_recent_comments is used in a page template, comments are taken from all articles, while in an article form comments are specifically chosen from the ones concerning the current article.

this is how I am using it (localhost):

<txp:if_article_id id="37">
<ul class="exhibitions_comments" id="exhibitions_comments"> 
<txp:smd_gallery category="exhibitions" limit="7" sort="random">
<li><txp:image id="{id}" /><p><em>{caption}</em></p><p style="text-align:right;">{alt}</p></li>
</txp:smd_gallery>
</ul>
<txp:else />
<txp:wet_recent_comments limit="1" showcomment="yes" maxwords="100" striptags="yes" dateformat="default" class="clear"/>
</txp:if_article_id>

the plugin works as expected when in article list but NOT in an individual page… but I guess this is because of the context.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB