Log in

View Full Version : Truncate RSS Feed Manager posts?


lingstar
05-18-2009, 12:59 PM
Hello,

I have set my RSS feed manager to publish snippets of my blog. Thing is, it publishes the entire content of the blog post and not the first 150 characters or so.

Is there a way I can set in the RSS Feed manager a parameter to truncate the post to the first 150 characters? I'd like to do it in the RSS feed manager instead of in my blog in case other users want their content posted as well.

Thanks!

Barbara

Lynne
05-18-2009, 02:26 PM
I don't know about for blogs, but this works for the regular RSS feed and I'm sure you can modify it to work with the blog feed:

hook location: external_query
unset($vbulletin->GPC['fulldesc']);
$vbulletin->options['threadpreview'] = 150;
$hook_query_fields .= ",LEFT(post.pagetext,300) AS message";

lingstar
05-18-2009, 03:04 PM
I don't know about for blogs, but this works for the regular RSS feed and I'm sure you can modify it to work with the blog feed:

hook location: external_query
unset($vbulletin->GPC['fulldesc']);
$vbulletin->options['threadpreview'] = 150;
$hook_query_fields .= ",LEFT(post.pagetext,300) AS message";

Forgive me for the following inane question -

What do I *do* with that code snippet? Is there a specific area in AdminCP where I should enter it?

Thank you,

Barbara

Lynne
05-18-2009, 03:17 PM
It's a plugin. I can't help you with what hook location to use or how to modify the code since I don't have the blog software.