Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-01-29 08:18:39

wornout
Member
From: Italy
Registered: 2009-01-20
Posts: 256
Website

Grab the last global comment and publish with limit lenght

Hi everyone,
I’m using asv_recent_comments to grab the last commet from the entire site.
The comment_message must have a limited lenght to fit the layout.
This plugin can’t do that…

In short, I have to grab last comment_message from txp_discuss table, truncate it’s lenght to specific number and publish it.

Can someone help me?
Thanks

Offline

#2 2010-01-29 14:53:03

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

Re: Grab the last global comment and publish with limit lenght

I think this is possible with wet_recent_comments.


Prrrrrrrr

Offline

#3 2010-01-29 16:09:12

wornout
Member
From: Italy
Registered: 2009-01-20
Posts: 256
Website

Re: Grab the last global comment and publish with limit lenght

I found the solution, much easier than I thought.
Just use rvm_substr plugin.

Very simple!!!
Thanks

Last edited by wornout (2010-01-29 16:10:19)

Offline

Board footer

Powered by FluxBB