![]() |
RSS News Feed Hack
My friend made this hack, he owns http://www.liquidpro.net. Check him out.
You may contact him at liquidpro@neo.rr.com. Or you can IM him on AIM at LiquidPro10. An example is shown at http://www.xtreme-forumz.net. Go to the Techno forum under the General category. Then the CNET News sub-forum. RSS News Feed Hack for vB 3.0.0. As long as vBulletin doesn't change the database structure much, this should be good for the next release also, and those to come. Allows you to have a live RSS news feed (such as one from Google or CNET) in a forum. The user that posts it will basically be a bot, which *should* only be used for posting the news, but you can even make it for a regular user. Comments are welcome! Instructons: Note: DON'T FORGET TO MAKE A BACKUP OF EACH FILE BEFORE YOU MODIFY IT! Copy the files to your web server... keep the same directory structure as in the zip file. Run the rss_install.php file to setup the RSS script. If you're upgrading run the rss_upgrade.php file to setup the RSS script. Don't forget to remove all previous modifications (you can find them by searching for "LiquidPro") #### open the /index.php script #### Find this: PHP Code:
PHP Code:
Find this: PHP Code:
PHP Code:
Find this: PHP Code:
PHP Code:
Hack by: Andrew Wickham (http://www.liquidpro.net) Hack for: Xtreme-Forumz (http://www.xtreme-forumz.net) |
Quote:
PHP Code:
|
any chance of a screenshot? your board requires registration to view forums
|
Sounds really kool Xyphenscreenshot would be nice though please, seems a bit silly to me - signing up to a forum, just to view a modification. hehe! we spent all day signing up to boards and waisting everybodies time LOL
:tired: |
when your forum is closed for guests please provide a login for vB.org users or please make screenshots!
Like me many user wount register only to see the hack in action! Greetings Star |
Well i just added a basic link to the external.php rss feed on my forum, had it vailadted first then just used that.
have a look on www.artorg.co.uk/index.php , i just added it to the portal :p |
raxafarian thank you for the error update. This is probably because it's RC3. I notice that it's a single quote that's causing the problem. I'll download RC3 and look into it further. Thank you.
Everyone else: I attached a screen shot of it. Enjoy! |
Would be nice to have it run on RC3...
One more thing: what about the files in the /include/RSS folder? You did not mention anything there. |
You create a folder called RSS in the includes folder, and then upload those files into it. The files in that are the main RSS class files.
And like I said, I'm going to download RC3 tonight and get it working for it also. |
Quote:
Quote:
|
this is a good idea... nice one. Hope this canbe made to work on the Gold version when its released...
|
Quote:
http://p.moreover.com/cgi-local/page?feed=30770&o=rss |
Yea that'd fix it, because on my server it's not having a problem with apostrophe's in the titles. That example you posted isn't a very good news feed. Under the description it has the date and such, where my script is made to have the description as a short version of the article. I'd steer away from using that one, not to mention it doesn't have a pubdate field, so that'd cause some errors with the program.
I designed it with CNET News in mind. |
an excellent looking hack m8 - would it be possible to expand it so that you can have different feeds posting in different forums?
|
Hm, be a little more complicated and I'd have to convert it over to SQL based instead of file-based configuration. However, it could be done... I will look at that for the next version I put out (which will probably be here in the next couple weeks). Thanks for the input.
|
Looks great. I am anxious for it to ready for RC3
|
Got it working just fine, great hack.
1 question though, as posts have been made by the bot they are not upping the forum post count. I setup a new forum just for the rss feed but people will never be able to see when new news arrives unless they physically go into the forum. Is there a fix? |
Well, I could, but it'd slow down your load time for the main page. You'd have to be willing to sacrifice that.
|
by the way... I got that feed working. I had to delete the two RSS entries in the thread table, then reinstall them.
Seems to be working well thanks |
Quote:
|
Great idea. I would think maybe a cron script would be better? You could make it so it would check the feed and make a new post everytime something new came?
I don't know about that I was just thinking out loud maybe I will try and see what I can do. |
LLFan, I mean... that every time someone loaded the main page it would have to access an outside source (the RSS news feed) and check if there's any new updates
|
I'm running vb3 RC3. I get a mysql error due to the apostrope's in tome headlines. If I turn on magic quotes,that conflicts with other programs on my site. Is there a way to get around this? Maybe with .htaccess?
|
Hm, I'm not entirely sure, I don't do much with .htaccess. Maybe there's some work-around for it. I'll look into that.
Also, do you guys mind posting the URLs that you are using it on? I'd like to see it in action as a user, not the creator. |
When does the script now update the RSS feed?
|
It now updates it only when you visit the specified forum. I re-wrote it tonight, and I'm going to release it probably tomorrow evening, v1.1. It has Admin Panel support now too, so it'll be a lot easier.
|
Quote:
Also changing to another feed won't update...I still need to blow those 2 entries away and put them back.... then the new feed works... once. |
If anyone knows a workaround so it can operate with magic quotes turned off, that would be great. Also, the ability to receive image tags would be a nice feature for later as well. Here's a feed from the front of my site that I pipe in via RSS through vbindex and a server side include.
http://www.dphoto.us/forum/index.php...al_camera_news |
What about doing multi feeds for multi forms? For those who want to categorize more feeds..
|
Thanks for all the input guys. And the multi-feeds and multi-forms thing is going to be included in v1.1. I like the idea, that was the original plan but I decided not to do it for some reason. About the <img> tag. You'd have to make sure that your forum allows you to post HTML tags, or it won't work, just for future reference.
|
Quote:
The same happens for me. I installed it yesterday and it got those news: Bewertung Thema / Autor Letzter Beitrag Antworten Hits Free-software guru meets Indian president News-Bot Gestern 20.53 von News-Bot 0 1 Sun urges Eclipse to unify Java world News-Bot Gestern 20.53 von News-Bot 0 1 Dutch judge blocks Lindows over trademark issue News-Bot Gestern 20.53 von News-Bot 0 1 Week in review: Virus king News-Bot Gestern 20.53 von News-Bot 0 1 Lindows offers software for free over P2P News-Bot Gestern 20.53 von News-Bot 0 1 But nothing since then. Maybe instead of making it update when the forum is visited that you can set a cron to do the update like every 15 min. If you write an admin panel it would be great if you could choose like update when the forum is visited OR every xxx min. |
OK, v1.1's official out! It's updated as of right now, support for v1.0 is no longer.
|
*download*
Would it be possible to add the RSS-Bot postings also to the posting counts? |
hmm, no updates?
Seems that I cant get a single update, no matter how often I visit the forum. I entered one rss feed in, checked the forum and it was fine. After entering the second in though, it didn't do anything at all.. I thinks this is (almost) a decent hack, but it needs some other method of updating things. Sure, I could delete and recreate it, but that'd make no sense now. SO, what seems to be the problem here? |
Wolfstream, download the version 1.1. With that the update works when you visit the forum.
AddOn: Some Google RSS Feeds can be found here http://googlenews.74d.com/ Using right now the one from Google Germany: http://wsjb78.com/forums/forumdisplay.php?f=2 |
Quote:
It's not the RSS, it's impossible for every feed I try to actually not work, really. The feeds are great, the hack doesn't work from what I've seen. |
When did you download it? Xyphen added this night (for me) the version 1.1... something like 12h ago...
If you've downloaded your version before that you're still using the old one. :) Do you have in your Admin CP a new Nav entry for the RSS Feeds? If not you're using the old version. |
Again,
I know how to read. The file I'm using IS the latest version but does NOT work, no matter what the author claims. I've yet to see the results from the second feed, and the first just hasn't even left the first day (though it's been less than 6 hours ). |
Ups, wolfstream you're right. It's not updating for me either.
I was sure this morning when I got up that there were more entries than when I installed it this night. |
Guys, make sure you have the bots enabled! If they're not enabled they will not update. It works for me on my forum and on my testing forum. I came up with a fix for the single quotes problem, I will update the main post in a little bit for it.
Also, please note that news updates aren't in the exact order that they are on the news feed, this is due to the XML parsing. Anyways, all news updates that are on the news feed, will be on the forum... just in a different order. If all else fails, disable the rss feed. Then delete all news. Then re-enable it. |
All times are GMT. The time now is 04:51 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|