The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Which part of the install are you having difficulty with? The install requires creating a plugin via admincp, editing the forumdisplay template in admin cp, creating your custom php and html file from the template files supplied by FeedForAll.com and uploading them to your server, adding the URL of the rss feed to the php file, creating a folder to cache the feed.
If you need assistance with any part then PM me. |
#12
|
|||
|
|||
MickDoneDee, is there a setting that allows you to specify how long the RSS items display on the forumdisplay page?
For example, I noticed that on http://www.world-a-team.com/australia-cricket-forum/ your items seem to be from today only. Is it possible for the items to display for a longer duration? Are the earlier RSS items automatically deleted when the latest feed is updated? Thanks. |
#13
|
|||
|
|||
I can't believe it.
I just found this thread, but I am using the same exact setup on a new theme I'm creating for my board. I want to load news feeds from different sources based on forums. Now, my question and concern is this: 1) loading all the feeds into global start: doesn't that slow the board down? Even if it's pulling from the cache doesn't it have to load all the feeds into the variables but only display the variable according to the condition on ForumHome? I would like to find a way that it only loads the appropriate feed based on the forum. 2) Couldn't you create multiple hooks, assign a different feed per hook, and load the corosponding hook based on a condition? ie: <if condition="$foruminfo['forumid'] == 7">hook_name</if> 3) Or is there a way to load the rss2html.php file into a plugin and have the plugin communicate with the board so the forum id is passed to the plugin and loads the appropriate feed based on the forum id ie... (from the rss2html.php file) if (forumID == 2) { $XMLfilename = "http://www.tmz.com/rss.xml";} I'm just thinking, at least for myself, there has to be a more efficient way to get this to work. It's a great way to get fresh content on your site though! |
#14
|
|||
|
|||
Quote:
Code:
// The variable $cacheTTL controls how many seconds a cached copy of an XML // file can be used before it must be refetched from the server. // $cacheTTL=60; //cache files for 1 minute // $cacheTTL=3600; //cache files for 1 hour $cacheTTL=21600; //cache files for 6 hours Quote:
Quote:
|
#15
|
|||
|
|||
I'm away from my home PC now, but I'll look into it too when I get back.
I actually went to feedforall.com and purchased the access to the scripts directory so I have access to their caching script and other scripts. Maybe I should use RSStoMySQL and get feeds that way? What I need to do is learn how to make plugins and hook locations. Another possibility would be load the feed thru rss2html in an iframe or ajax so it doesn't slow the loading of the forum pages. I hope I can get this worked out so I can get rss feeds posted on the page to get new content on the page all the time ....and give people things to talk about. |
#16
|
|||
|
|||
I've changed the hook location to forumdisplay_start and now the rss files are only included when a forum is viewed in the browser. That will probably reduce the amount of PHP work on other pages.
I've also successfully changed the plugin code so that only the relevent rss.php file is included when the corresponding forum is viewed. Code:
if($foruminfo['forumid'] == 3) { ob_start(); require("rsseng.php"); $rsseng = ob_get_contents(); ob_end_clean(); } else if($foruminfo['forumid'] == 4) { ob_start(); require("rssaus.php"); $rssaus = ob_get_contents(); ob_end_clean(); } else if($foruminfo['forumid'] == 5) { ob_start(); require("rsssaf.php"); $rsssaf = ob_get_contents(); ob_end_clean(); } else if($foruminfo['forumid'] == 6) { ob_start(); require("rsspak.php"); $rsspak = ob_get_contents(); ob_end_clean(); } else if($foruminfo['forumid'] == 7) { ob_start(); require("rssind.php"); $rssind = ob_get_contents(); ob_end_clean(); } else if($foruminfo['forumid'] == 8) { ob_start(); require("rssnz.php"); $rssnz = ob_get_contents(); ob_end_clean(); } else if($foruminfo['forumid'] == 9) { ob_start(); require("rsssl.php"); $rsssl = ob_get_contents(); ob_end_clean(); } else if($foruminfo['forumid'] == 9) { ob_start(); require("rsssl.php"); $rsssl = ob_get_contents(); ob_end_clean(); } else if($foruminfo['forumid'] == 10) { ob_start(); require("rsszim.php"); $rsszim = ob_get_contents(); ob_end_clean(); } else if($foruminfo['forumid'] == 11) { ob_start(); require("rssbd.php"); $rssbd = ob_get_contents(); ob_end_clean(); } else if($foruminfo['forumid'] == 12) { ob_start(); require("rsswi.php"); $rsswi = ob_get_contents(); ob_end_clean(); } else if($foruminfo['forumid'] == 67) { ob_start(); require("rsswc.php"); $rsswc = ob_get_contents(); ob_end_clean(); } |
#17
|
||||
|
||||
Thank's Mick it really works and it is very easy to implement.
Kind regards from Portugal. KK |
#18
|
||||
|
||||
Cleaned and leaned a lot of Mick's code .
PHP Code:
|
#19
|
|||
|
|||
Thank you!
|
#20
|
|||
|
|||
feedkiller.com is a free online tool that allows you to merge multiple rss feeds into your own rss mix made up of your favorite feeds.
You might have to scroll down to see the online form due to poor page layout. The first field requires you to input the name of your custom feed. For example: Australian Cricket News Quote:
Quote:
To add more than two RSS feeds to your custom feed click When the form is done click A new page will appear containing a link to your custom RSS feed URL. For example: http://www.feedkiller.com/feed-2083 will redirect to http://www.feedkiller.com/files/rss.php?id=2083. You may have to wait a few seconds for the redirect to happen. Now place the second URL in your php file in the following section: // If XLMFILE is passed as part of the URL, XMLFILE=, then it will be used // otherwise the the file below is used. //$XMLfilename = "http://examlple.com/sample.xml"; $XMLfilename = "http://www.feedkiller.com/files/rss.php?id=2083"; If you paste http://www.feedkiller.com/feed-2083 into the file it will create errors on your webpage. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|