Aaron310012
04-15-2012, 01:26 AM
Hello,
I am searching for a way to limit the amount of text for the Blog RSS feed. Right now the feed is displaying the entire contents of each and all blog posts and I would like to find a way to limit this to a preview. I found the thread below and still have been unable to get this working on the Blog portion of the site:
https://vborg.vbsupport.ru/showthread.php?t=166703
This uses a plugin with an external_query hook location.
Code:
unset($vbulletin->GPC['fulldesc']);
$vbulletin->options['threadpreview'] = 250;
$hook_query_fields .= ",LEFT(post.pagetext,400) AS message";
I have created this plugin for the vBulletin, vBulletin Blog, and vBulletin CMS products and have enabled all three.
However, while this seems to have worked for the Forum & CMS, the Blog feed still displays the entire contents of every Blog post. Interestingly, I've found that even if I enable only the CMS plugin, it will shorten the feed for the CMS and Forum, but I can't find a way to limit the RSS feed text for the Blog.
Does anyone know of a way or modification to this plugin that might work?
Any advice or thoughts on the issue would really be appreciated!
I am searching for a way to limit the amount of text for the Blog RSS feed. Right now the feed is displaying the entire contents of each and all blog posts and I would like to find a way to limit this to a preview. I found the thread below and still have been unable to get this working on the Blog portion of the site:
https://vborg.vbsupport.ru/showthread.php?t=166703
This uses a plugin with an external_query hook location.
Code:
unset($vbulletin->GPC['fulldesc']);
$vbulletin->options['threadpreview'] = 250;
$hook_query_fields .= ",LEFT(post.pagetext,400) AS message";
I have created this plugin for the vBulletin, vBulletin Blog, and vBulletin CMS products and have enabled all three.
However, while this seems to have worked for the Forum & CMS, the Blog feed still displays the entire contents of every Blog post. Interestingly, I've found that even if I enable only the CMS plugin, it will shorten the feed for the CMS and Forum, but I can't find a way to limit the RSS feed text for the Blog.
Does anyone know of a way or modification to this plugin that might work?
Any advice or thoughts on the issue would really be appreciated!