Quote:
Originally Posted by Viks
IF I would like to display the RSS feed in some other location on my forums . . . Vik
|
Update!
Not really . . . finally got around to switching the feed off of the FORUMHOME page and it was easier than you think. The only changes made were in a very short section of the XML php itself and it now displays in my "SubForum" #1 which is a "category" comprised of other subforums (with no thread views being listed) . . .
I am running 3.6.2.
PHP Code:
<plugin active="1">
<title>RSS Feed - Content Generation</title>
<hookname>forumdisplay_complete</hookname>
// changed from forumhome_complete**
<phpcode><![CDATA[rss_feed_processing(RSS_FEED_FIELD, RSS_FEED_USAGE);
if ($forumid == 1)
{
// conditional added (display one subcategory only) **
$search_text = '<!-- / forum rules & forum jump -->';
// new searched text located bottom of FORUMDISPLAY template **
$insert_text = '';
for($insertc = 0; $insertc < count($feedcontent);)
{
$insert_text .= '$feedcontent['.$insertc++.']<br />';
}
$vbulletin->templatecache['FORUMDISPLAY'] = str_replace ($search_text,$search_text.$insert_text,$vbulletin->templatecache['FORUMDISPLAY']);]]>
}
// end "if" condition (make whatever you want!) - both refs above were FORUMHOME **
</phpcode>
The hook, search and displaying works and behaves as originally coded,
make sure you check "overwrite" when reinstalling and that is it!
Thx Again. Rabbit