The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
NEW Modified RSS News Feed Hack Details »» | |||||||||||||||||||||||||
Hack originally posted by: Xyphen - RSS News Feed Hack
Modified by: wolfstream - Modified RSS News Feed Hack I am posting this up as a new hack because of the major changes made to how the script works. Also, I didn't want people to get confused as to which one to download since there were 3 different versions on the original post. Xyphen released the original version, then wolfstream modified the script and corrected some errors. After that, I modified wolfstreams version to change how posts were inserted. Now the post count will increase, posts will be able to be searched, and similiar threads will work. RSS News Feed Hack for vB 3.0.x. 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! Support provided through this thread. Latest Version: - 1.26 - for PHP 4.3.0 & above - 1.26a - for PHP prior to 4.3.0 vBulletin Versions: - 3.0.0 - 3.0.1 PHP Versions: - > 4.3.0 - < 4.3.0 Installation Overview: - Files to edit: (2) /admincp/index.php, /includes/functions_newpost.php - Files to upload: (4) rss.php, admincp/rss_admin.php, includes/RSS/class.RSS.php, includes/RSS/rss_update.php - Queries to run: (4) in rss_install.php History: Version 1.26 (23 June 2004 - Slapyo, Natch) - listing of bot's more intuitive (Natch) - hopefully fixed duplicate problem (Slapyo) - stripped html tags from title and description (Slapyo) Version 1.25 (12 May 2004 - Slapyo) - fix for " showing up - logs action in scheduled task log if turned on Version 1.24 (20 April 2004 - Slapyo) - posts now deleted with delete_thread function - post counts updated when using delete all news Version 1.23 (14 April 2004 - Slapyo) - added ability to delete bots - cleaned up includes - fix for PHP versions prior to 4.3.0 calling html_entity_decode() Version 1.22 (13 April 2004 - Slapyo) - duplicate posts problem fixed - fix for problem with ' appearing as \' Version 1.21 (12 April 2004 - Slapyo) - bot will not be subscribed to posts now Version 1.2 (11 April 2004 - Slapyo) - posts now inserted with build_new_post function Version 1.1 (28 March 2004 - wolfstream) - file edits taken down to 1 - cron script included Version 1.0 (28 January 2004 - Xyphen) - original release Common RSS Feeds: - Yahoo! - CNET.com - BBC - Wired News - The Register - Ars Technica - All Headline News Show Your Support
|
Comments |
#192
|
||||
|
||||
I have a display problem when it comes to showing TITLES of threads created from the RSS from scifi.com
http://www.scifi.com/scifiwire/rss/index.xml The threads titles appear like this: 'Potter' Designer Talks Challenges THE ORGINAL TEXT IS: 'Potter' Designer Talks Challenges Now I fixed my display problems in the thread with replacement for "'" to " ' " and those are showing fine.. however the thread titles are not.. What can I do to fix this? Aceman Link to my news forum: http://www.scifi-meshes.com/forums/f...splay.php?f=90 |
#193
|
||||
|
||||
I'm a duffis.. I fixed it buy using the code you placed eariler:
$rss_title = str_replace("'", "'", $rss_title); $rss_description = str_replace("'", "'", $rss_description); |
#194
|
||||
|
||||
I'm getting duplicated threads when the rss runs on the hour. I checked the (scifi.com) rss link and it DOES have a pubdate.
<pubDate>Wed, 12 May 2004 12:26:39 EST</pubDate> Yet I still have duplicates?? Any suggestions. |
#195
|
|||
|
|||
newest version: 1.25 (PHP > 4.3.0) and 1.25a (PHP < 4.3.0)
this update fixes the problems with " and it also will insert into the scheduled task log if you have it turned on ... atleast it should. heh, of course any problems let me know. files changed are: rss.php and rss_update.php ... so if you want to make the changes yourself, or just upload those 2 files ... that's fine. in rss.php FIND: Code:
?> Code:
log_cron_action('RSS News Feed Posted', $nextitem); Code:
// Setup the thread Code:
$rss_title = str_replace(""", "\"", $rss_title); $rss_description = str_replace(""", "\"", $rss_description); $rss_title = str_replace("'", "'", $rss_title); $rss_description = str_replace("'", "'", $rss_description); |
#196
|
|||
|
|||
Quote:
" != " ' != ' so it thinks it's a new title and it then posts. could you please check in phpMyAdmin and see if it is storing the data for the title with the " or ' .... unfortunately i have not seen this in my news articles yet so i can't verify this. |
#197
|
||||
|
||||
I'm not sure if this was the fix YET.. but I did notice something about code..
Code:
// filter out the old items while($rss_thread_data = $DB_site->fetch_array($rss_query)) { for($j = count($rss_allItems) - 1; $j >= 0; $j--) { if($rss_thread_data[title] == $rss_allItems[$j][TITLE] && $rss_thread_data[rss_date] == $rss_allItems[$j]['pubDate']) { $rss_allItems[$j][OLD] = true; } } } Aceman ***UPDATE*** This did NOT fix my duplication problem. I'm getting ALOT of duplicated threads.. help me! |
#198
|
||||
|
||||
Quote:
New "Mobile Console" Plays PC Games Does this help? is their a fix? Certain threads ARE still duplicating.. and I reuploaded your files to my server again to make sure it wasn't something I'd screwed up. I'm using 1.25 as my version of PHP is higher then 4.3.0. Aceman |
#199
|
|||
|
|||
ya ok, then it is what i think it is and this should be fixed by my update i am hoping. i made it fix the titles with " and ' in them instead of having " or ' they will have " and ' .... here is the problem:
New "Mobile Console" Plays PC Games does not equal New "Mobile Console" Plays PC Games when compared to each other the " and ' are not converted to " or ' ... or vice versa. the literal strings do not match each other even though to me and you they are the same. let it run for a little bit on the new 1.25 and let me know if this fixes the problem with the multiple posts. |
#200
|
|||
|
|||
any ideas why the thread and post count isnt updating in subforums?
|
#201
|
|||
|
|||
it should. the newest version takes care of that. make sure you have the latest version. it updates on mine and i am running the same version i have uploaded here, no changes.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|