Version: 1.00 RC2, by tgmorris
Developer Last Online: Oct 2013
Version: 3.5.2
Rating:
Released: 01-13-2006
Last Update: 01-15-2006
Installs: 30
Uses Plugins Template Edits
Is in Beta Stage
No support by the author.
This product adds support for displaying RSS feeds on 1 or more vb pages.
The product will create 5 plugins and a new section, RSS Feed Processing, under vBulletin Options. Also added will be 2 new templates appropriately grouped under 'RSS Feed Templates'.
Configuration
Change the settings in 'vBulletin Options -> RSS Feed Processing' to suit your particular needs.
One thing that proves difficult for some users is creating the 'cache' directory. This directory needs to be CHMOD 777 and it should reside outside the web root. All of the RSS feeds will be cached in that location so depending on how the product is configured (i.e. allowing users to define their own feeds) the size of the directory could grow signficantly.
An advanced feature that is only available for non-user specified feeds is the ability to include code to filter and/or modify the feed content. If the feeds are being provided for your users this can prove to be a very powerful tool.
Placing the content on pages
As supplied the RSS Feed content will be displayed below the "What's Going On" block. This may be changed by modifying the 'RSS Feed - Content Generation' plugin in different ways.
Find where you want the output in the FORUMHOME template and change the search sttring accordingly.
Delete all the search-related text and manually edit the template(s) where you want the content to appear.
In either a) or b) above you may also change the hook location for the 'RSS Feed - Content Generation' plugin so it runs where it's needed. If the content is desired on multiple vb pages then the plugin could be moved to init_startup so long as the template edit logic is removed.
The RSS feed content is placed in the $feedcontent array with an entry for each feed. To manually place the feeds in templates refer to the entries for 3 feeds as $feedcontent[0], $feedcontent[1] and $feedcontent[2]. If the content for a given feed cannot be decoded then that array entry will be empty.
Revisions
1.00 RC2 16-Jan-2006
Added support to allow the displayed feeds to collapse when not a user-specified feed.
Modified the rss_feed_rss template
Updated the RSS Feed - Function plugin
If you find this product useful donations via PayPal may be made via the Sponsors Page.
Do not reproduce or publish elsewhere without my written permission.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
is there any performance issue with this mods? i get high load upto 3 usually only 1
is it using cache mechanism when processing the feed?
Yes, it does create a cache file for each feed used. How long the cache is used depends on the settings for the feed (via the TTL record) as well as the configuration if there's no TTL record.
As to you other question can you please explain a bit more as to what you want to do> If you simply don't want the item category to show then the category may be deleted by using the Data Modification section.
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!