Log in

View Full Version : Remove content in rss feed?


sarangan
10-21-2008, 07:20 PM
Hi friends,
I have seen that many websites use my full content from RSS feed. I don't want to allow them to do that. Is there a way to remove <content> from my feeds and leave only the title, description, date etc. ?

Please help me to modify the external.php to do that.

Thank you.

Lynne
10-21-2008, 07:40 PM
Not sure about the mod, but if your forums are not viewable to the unregistered users, then they aren't available via rss feed.

sarangan
10-21-2008, 08:04 PM
My forum is viewable to everyone. What I want is to edit the external.php which deliver the rss feed to not show the text between <content> and </content>. So, only the title is viewable in Feeds.

Please help me friend..

Lynne
10-21-2008, 08:12 PM
If you do that, then no one can view the thread content - is that what you want?

One thing you may want to try is to disable rss1 and rss2 (I think rss only gives title, date, and forum). Find the switch around line 160 and change to these (middle) lines:

case 'RSS':
$vbulletin->GPC['nohtml'] = 0;
case 'RSS1':
$vbulletin->GPC['type'] = 'RSS';
$vbulletin->GPC['nohtml'] = 0;
break;
case 'RSS2':
$vbulletin->GPC['type'] = 'RSS';
$vbulletin->GPC['nohtml'] = 0;
break;
default:
$handled = false;

yahsuah
11-18-2011, 01:07 AM
This is easier modification: https://vborg.vbsupport.ru/showthread.php?t=223567