Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
NEW Modified RSS News Feed Hack Details »»
NEW Modified RSS News Feed Hack
Version: 1.00, by Slapyo Slapyo is offline
Developer Last Online: Apr 2013 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 04-12-2004 Last Update: 06-22-2004 Installs: 146
 
No support by the author.

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 &quot; 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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 04-14-2004, 04:41 AM
Slapyo Slapyo is offline
 
Join Date: Feb 2004
Location: Rancho Cucamonga
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SnowBot
Well the user i set up still has NOT appeared on whois online or posted

No db errors

Nothing, i have rechecked my install / file edits and everything is correct as far as i can see, just nothing is happening.

Any ideas?

Want me to set up an admin login so you can check ?
snowbot, the bot will not appear in the who's online. the bot never actually logs into the system, it just uses the user info to make the post. if you want i can take a look at it for you, no promises that i will find the error.

but you uninstalled it, then reinstalled the latest version correct? just want to make sure of that before i looked at anything. go ahead and PM me the information. then i will get back to you if i find anything. thanks.
Reply With Quote
  #63  
Old 04-14-2004, 04:45 AM
Slapyo Slapyo is offline
 
Join Date: Feb 2004
Location: Rancho Cucamonga
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rocket98
I will try this, thank you Slapyo !!!!

rocket98

----------------------------------------

I am at a complete loss ... I was playing and playing and then I uploaded the attached file and for some reason I got a BBC feed immediately after doing a manual run, no dups nothing just a BBC feed with 30 threads.

I think this was from the original hack. I found it on hotscripts today when i was looking around at all things RSS.

I honestly don't know what is different from your edits to the original hack. No PHP problems to speak of. Not sure if this works for others but i tried it and it seems to go ...

Here is my forum

http://bocastown.com/forum/forumdisplay.php?f=51
rocket98, that appears to be the original script. the problem i found with the original script is that when submitting the post, it is done manually. that way you will not be able to search the threads, similar threads won't work, and post counts will not increase properly.

what are the errors you are getting. if you want, PM me your email address and i will send you the rss_update.php file that you need. i read back and see that you need the one that is compatible with a version of PHP prior to 4.3.0 ... lemme know, i will send it to you.
Reply With Quote
  #64  
Old 04-14-2004, 04:46 AM
Slapyo Slapyo is offline
 
Join Date: Feb 2004
Location: Rancho Cucamonga
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dethfire
I have my cron set to every 20 hours, however once that 20 hours comes around the script seems to run 3 times creating 3 sets of duplicated
what is your feed that you are using? i haven't seen this error before, but that doesn't mean it isn't happening. it should load the rss file once then parse it, that's it.
Reply With Quote
  #65  
Old 04-14-2004, 05:15 AM
rocket98 rocket98 is offline
 
Join Date: Mar 2004
Location: Edmonton
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Slapyo
rocket98, that appears to be the original script. the problem i found with the original script is that when submitting the post, it is done manually. that way you will not be able to search the threads, similar threads won't work, and post counts will not increase properly.

what are the errors you are getting. if you want, PM me your email address and i will send you the rss_update.php file that you need. i read back and see that you need the one that is compatible with a version of PHP prior to 4.3.0 ... lemme know, i will send it to you.
I'm hosted for Free on 1and1. On this particular server they are running php 4.2.3. After a couple of enquiries to support there I'm sad to say "non paying" customers have to put up with what they get for the free accounts.

I still had errors with redeclaring of htmlentities as shown here after following the instructions you provided in the update.

Fatal error: Cannot redeclare unhtmlentities() (previously declared in /homepages/23/d95339147/htdocs/public_html/forum/includes/RSS/rss_update.php:76) in /homepages/23/d95339147/htdocs/public_html/forum/includes/RSS/rss_update.php on line 76

I would like to have this work and do appreciate your efforts.

Thank you
rocket98
Reply With Quote
  #66  
Old 04-14-2004, 08:39 AM
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Location: Knoxville TN
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried to run this and got this error message...

Warning: file(http://www.wizards.com/rss.asp?x=dnd): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /http/forums/includes/RSS/rss_update.php on line 32

Warning: implode(): Bad arguments. in /http/forums/includes/RSS/rss_update.php on line 32

All Done
Reply With Quote
  #67  
Old 04-14-2004, 09:02 AM
mirdin mirdin is offline
 
Join Date: Apr 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Slapyo
Code:
$rss_title = str_replace("&quot;", "\"", $rss_title);
$rss_description = str_replace("&quot;", "\"", $rss_description);
Also had the same issue with &quot; showing up, now I've added these lines, hope that works

Apart from that everything seems to work nicely so far.
Great job!
Reply With Quote
  #68  
Old 04-14-2004, 01:44 PM
Slapyo Slapyo is offline
 
Join Date: Feb 2004
Location: Rancho Cucamonga
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Michael_Morris
I tried to run this and got this error message...

Warning: file(http://www.wizards.com/rss.asp?x=dnd): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /http/forums/includes/RSS/rss_update.php on line 32

Warning: implode(): Bad arguments. in /http/forums/includes/RSS/rss_update.php on line 32

All Done
that rss feed appears to not work for me. when i follow that link i just get a blank page. that might be the cause of your problem. in fact, i went through all of their RSS feed links and none of them would load up for me. the reason it is not working, is more that likely something on their end. none of their rss feeds will load up.
Reply With Quote
  #69  
Old 04-14-2004, 02:31 PM
VodkaFish VodkaFish is offline
 
Join Date: Oct 2003
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this hack for a single rss feed?
Reply With Quote
  #70  
Old 04-14-2004, 02:48 PM
Slapyo Slapyo is offline
 
Join Date: Feb 2004
Location: Rancho Cucamonga
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can set up as many bots/rss feeds as you want.

you could use the same bot over and have it post a different feed in a different forum. or whatever you want.
Reply With Quote
  #71  
Old 04-14-2004, 05:13 PM
Morrus Morrus is offline
 
Join Date: Jan 2002
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Slapyo
you can set up as many bots/rss feeds as you want.

you could use the same bot over and have it post a different feed in a different forum. or whatever you want.
This hack seems to be working fine!

Is there a way to change the formating of the output, though? Rather than a line break and then "View the entire article", can it be set to just append "(Read more...)" at the end of the text (no line breaks)?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:31 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05569 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete