PDA

View Full Version : How to cut rss external feed content


sapgaurav
03-19-2012, 09:20 AM
Hello

in external.php we display rss feed of our site, but it display all content of thread in in rss feed

i want to display only some part of thread

How i can do that? Any hack or module

Lynne
03-19-2012, 06:12 PM
This is how I do it on my 3.8 site. It may need to be modified for 4.x. Also, remember that there is a cache of the feeds so you won't see the change immediately.

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

If you get this to work on your vB4 forum, please let us know if the above code works or post the modified code.