The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
RSS feed displayed in forumdisplay
I'm not a coder but I managed, through trial and error, to get an external RSS feed to display within a scrollable table on forumdisplay. I have several different feeds displayed on separate forums.
Examples: http://www.world-a-team.com/forumdisplay.php?f=3 http://www.world-a-team.com/forumdisplay.php?f=4 http://www.world-a-team.com/forumdisplay.php?f=7 Each separate feed requires a pair of files uploaded to your server. A php and html file. The php file contains the feed URL. eg: $XMLfilename = "http://www.cricinfo.com/rss/wc_2007.rdf"; The HTML file contains variables that get replaced by different parts of the feed. The php file addresses the html file. eg: $TEMPLATEfilename = "rsswc.html"; In the phpinclude_start template I use ob_start(); require("rssaus.php"); $rssaus = ob_get_contents(); ob_end_clean(); to create a variable - eg: $rssaus which I place in a conditional in the forumdisplay template. eg: $header $navbar <if condition="$foruminfo['forumid'] == 3">$rsseng</if> <if condition="$foruminfo['forumid'] == 4">$rssaus</if> <if condition="$foruminfo['forumid'] == 5">$rsssaf</if> <if condition="$foruminfo['forumid'] == 6">$rsspak</if> <if condition="$foruminfo['forumid'] == 7">$rssind</if> So I can display a different feed on different forums. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|