View Full Version : Forum Home Enhancements - RSS feeds on forumhome
Logikos
10-08-2004, 10:00 PM
RSS feeds on forumhome
====================
Author: Ken 'LiveWire' Iovino
Site: www.initialz.com (http://www.initialz.com/)
Version: 1.0.0
====================
Updates
None At this Moment
What this does
This will show RSS feeds on your forumhome page, for a good example go to www.webhostingtalk.com and look on the right menu, you will see "WebHostingTalk News, News by HostingTech.com". This hack will allow you to do exacly what they have done there.
Please note that im not that experiance with RSS feeds, but i know this worked for me when i was in need to have feeds on my forumhome, but maybe alot of sites are diffrent, but i doubt it. Anyway i would suggest you have small know how in PHP to modify the code to your taste. Read the comments to fully understand.
To do list...
Time to install: 3-5 minutes
Queries to run: 0
File Mods: 1
/forums/indexphp
Templates to edit: 0
Templates to add: 0
New Phrases: 0
Please read carefully and make all the necessary changes as stated. This is will work if installed properly.
PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN! If you like this hack
Click It
https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=70371)
Help & Support
Before asking for support Please make sure you have done all necessary changes! If you still need support please post a reply here.
Please post bugs and errors here. Hope you like, feedback welcomed.
https://vborg.vbsupport.ru/external/2004/12/1.gif (https://www.paypal.com/xclick/business=iovinojr%40msn.com&item_name=Initial+Z+Free+Scripts&no_note=1&tax=0¤cy_code=USD)
sabret00the
10-09-2004, 12:31 PM
nice one would love this for forumdisplay.php
AlexanderT
10-09-2004, 12:32 PM
Ken,
I wouldn't use this unless you consider caching the feed as well. Otherwise, everytime someone access your forum home, you pull the feed again.
If you don't want to reinvent the wheel, I suggest you have a look at something like http://magpierss.sourceforge.net/ . I have been using it to implement feeds and it is one of the nicest php-based parsers around. ;)
Logikos
10-09-2004, 01:17 PM
Thannks alex, i'll look into that, didn't relize that i would have to re caching every time... :(
Velocd
10-09-2004, 02:43 PM
Thannks alex, i'll look into that, didn't relize that i would have to re caching every time... :(
Just create a separate table to hold the data, and on first arrival check for new articles and put them into that table. My articlebot does this, and uses MagpieRSS. Feel free to view or use its source code if you need help.
Logikos
10-10-2004, 12:10 PM
Thanks Velocd, for giving me the permission to look and snip some code ^^. I'll start working at updating this hack tonight.
Toneboy
10-12-2004, 01:44 PM
Ken,
I wouldn't use this unless you consider caching the feed as well. Otherwise, everytime someone access your forum home, you pull the feed again.
Potentially stupid question - why is this big deal? Bandwidth?
How do you know if you are/aren't caching feeds?
Logikos
10-12-2004, 03:23 PM
There will be slight load when going back to your forumhome. I'm using this hack at www.discuss.cc and i don't notice any lag. Though i am working on caching the feed in the next update.
nice hack, I managed to do the samething with carprss and it works nicely.
Erwin
10-15-2004, 03:53 AM
This is a great idea. It would not be too hard to adapt it to show on forumdisplay as well. :)
AnhTuanCool
10-15-2004, 04:04 AM
Please don't mind this stupid question but What is RSS feeds anyway? :ermm:
Logikos
10-15-2004, 05:54 AM
RSS is a format for syndicating news and the content of news-like sites, including major news sites like Wired, news-oriented community sites like Slashdot, and personal weblogs. But it's not just for news. Pretty much anything that can be broken down into discrete items can be syndicated via RSS. Basicly content taking from one site, and added to another. If you wanted to place the world news on your home page, would you search and update articles all the time? Naw, you could use an RSS feed to automaticly grab news and updated on your site. And you do nothing.
AnhTuanCool
10-15-2004, 09:12 PM
Sounds nice, I'll install ya mod now to see how is it looks like, thank you for explaining :)
Erwin
10-16-2004, 12:18 PM
You forgot to say you need to edit the forumhome template to put the variable $rss_news where you want to show the newsfeed. :)
Logikos
10-18-2004, 02:06 AM
Opps thanks Erwin, i'll update the install the second I get home.
Erwin
10-19-2004, 12:17 AM
I expanded the hack so members could choose different newsfeeds or add their own... however, my site is too busy for this hack - the constant fopen of RSS feeds killed my server when we reach our peak over 1,000 users online. :) So I've had to remove the hack. Some kind of cache which updates hourly or so would be ideal.
huuquynh
11-08-2004, 06:46 AM
Yes, I agree with Erwin. You should create a table and put syndication's information there.
dookie
12-04-2004, 03:03 PM
Is it possible to have more than one newsfeed (2 or more different feeds)?
What do I have to do to have more than one feed?
*installs*
Lord Brar
12-04-2004, 03:29 PM
So, are we going to get a version with cache facility, livewire?
dookie
12-08-2004, 02:42 PM
Is it possible to integrate the feature that we can set the number of news to fetch? eg the last x news?
MikeeX
12-10-2004, 10:32 PM
I'm very new at this, but I wanted to place this RSS information somewhere else. I wanted to create my own page, like this:
https://vborg.vbsupport.ru/showthread.php?t=62164&highlight=%24actiontemplates
Then block out mulitple RSS feeds in it. Is this possible? If so, can you get me a head start on how to display that in there. I know I can't use PHP code IN templates, so I'm kind of lost
Thanks so much!
dookie
12-11-2004, 04:42 AM
Seems to be unsupportet.
uninstalled :angry:
Logikos
12-17-2004, 01:50 PM
Unsupported, untill i have internet acess back.
Corriewf
04-21-2005, 04:13 PM
Unsupported, untill i have internet acess back.
So wheres the cache man?
artonex
04-21-2005, 06:24 PM
has anyone tested this hack on vb3.0.7 ?
noppid
04-21-2005, 07:08 PM
I expanded the hack so members could choose different newsfeeds or add their own... however, my site is too busy for this hack - the constant fopen of RSS feeds killed my server when we reach our peak over 1,000 users online. :) So I've had to remove the hack. Some kind of cache which updates hourly or so would be ideal.
OMG! Did I just read that correctly? The Doctor wrote an RSS client with no caching and using fopen? Have you not read the RFC?
I'm appalled! I have been ranting for months that you must not use fopen,open or file_get_contents for RSS!
First off there is an RFC to follow with standards.
Secondly, you are not supposed to hit a feed for every hit at your site.
I'm not counting, you SHOULD have caching and cache for at least one hour on feed hits.
You can get RSS agregators for free, there is no need to re-invent the wheel!
I will not release my code, however this stuff is internet pollution and should not be used in any way shape or form.
Corriewf
04-21-2005, 07:13 PM
Muhahaha I am such a troll. :P
noppid
04-21-2005, 10:24 PM
Muhahaha I am such a troll. :P
Why do you say that?
If one goes around touting a doctorate, they should put out RFC compliant code.
It's healthy to question such actions IMO.
Corriewf
04-22-2005, 02:09 PM
Why do you say that?
If one goes around touting a doctorate, they should put out RFC compliant code.
It's healthy to question such actions IMO.
Just trying to liven things up with a joke thats all.
I believe to do something good we have to do something bad sometimes.
noppid
04-25-2005, 06:39 PM
Just trying to liven things up with a joke thats all.
I believe to do something good we have to do something bad sometimes.
You mean like learn from our mistakes? Cool beans!
Someone could make a nice RSS hack if they did a little reading. The search engines love my news pages. ;)
Allan
05-09-2005, 11:51 AM
Hello has all :)
I would like to use this hack but on the other hand, I would like to show the RSS on a page external, for example by using this hack (https://vborg.vbsupport.ru/showthread.php?t=62164)
An idea ?
Allan
05-10-2005, 09:29 PM
nobody ??
I shall just like posting information RSS on a page external :(
Byron
05-20-2005, 07:26 PM
BUG - It is showing apostrophe " ' " as " ? "
Allan
05-20-2005, 09:26 PM
BUG - It is showing apostrophe " ' " as " ? "
sorry ??
Byron
05-22-2005, 11:50 AM
If there is an apostrophe in the rss title, the script will replace the apostrophe with a "?".
For example:
"You'll" becomes "You?ll"
"He's going home." becomes "He? going home."
Allan
05-22-2005, 11:52 AM
Hello has all :)
I would like to use this hack but on the other hand, I would like to show the RSS on a page external, for example by using this hack (https://vborg.vbsupport.ru/showthread.php?t=62164)
An idea ?
Anybody cannot help me ?
romerom
07-24-2005, 02:51 AM
i can't get this thing to work... i've specified my rss as http://www.southwesthiphop.com/index.rss and have validated it as valid rss 1.0.. i also symlinked it to a .xml file /index.xml in case the mod somehow required that. still, its not showing up at all. running 3.0.7 with just a few (like 3) mods
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.