Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
RSS News Feed Hack Details »»
RSS News Feed Hack
Version: 1.00, by Xyphen Xyphen is offline
Developer Last Online: Dec 2004 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-28-2004 Last Update: Never Installs: 34
 
No support by the author.

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:
require_once('./includes/functions_forumlist.php'); 
Add below it:

PHP Code:
require_once('./includes/RSS/rss_update.php'); 
#### open the /forumdisplay.php script ####
Find this:

PHP Code:
require_once('./includes/functions_forumdisplay.php'); 
Add below it:

PHP Code:
require_once('./includes/RSS/rss_update.php'); 
#### open the /admincp/index.php script ####

Find this:

PHP Code:
construct_nav_group("$vbphrase[styles] &amp; $vbphrase[templates]"'<hr />'); 
Add below it:

PHP Code:
// Manage Hacks
// by: Andrew Wickham
// LiquidPro Inc.
//
construct_nav_option('RSS News Feed''rss_admin.php''<br />');
construct_nav_group('Hacks');
//
// End Manage Hacks 
You're done, thanks for installing the hack.

Hack by: Andrew Wickham (http://www.liquidpro.net)
Hack for: Xtreme-Forumz (http://www.xtreme-forumz.net)

Show Your Support

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

Comments
  #192  
Old 04-11-2004, 03:52 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry - me again :

Did i understand your rigtht @Slapyo - with your changes to the Code this Hack is automatically posting new News from the Feeds without deleting the new ones ?

Or is it overwriting the old ones ?

And is there a option to delete one of my Feeds in the AdminCP ?
Reply With Quote
  #193  
Old 04-11-2004, 05:03 PM
Slapyo Slapyo is offline
 
Join Date: Feb 2004
Location: Rancho Cucamonga
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@vau7 ... my changes were to the rss_update.php and functions_newpost.php, that's it. i think the original coder had changes in other files. here is the post that includes the file that i downloaded and have been working with.

https://vborg.vbsupport.ru/showpost....&postcount=139

when i get home tonight i will throw together a package that will include everything that i have done and give the install. it will be a complete package.

just the code i have shown will not work just by itself. you have to have everything else installed properly. see the link i posted for the files that i used to install.

@rockergrrl ... that should work actually. i noticed you have 2 $rss_descriptions for each one. i think that's my fault for some code i posted for you. this should work because when inserting the data it uses the url tags to make the link.

PHP Code:
// change <b> tags
$rss_title str_replace("<b>""[b]"$rss_title);
$rss_description str_replace("</b>""[/b]"$rss_description);

// change <i> tags
$rss_title str_replace("<i>""[i]"$rss_title);
$rss_description str_replace("</i>""[/i]"$rss_description); 
@redlabour ... my changes in code only change the way the actual post is made. instead of manually inserting the post (original), my code uses vB's built in function to insert the post enabling searching, similiar threads, and correct post counts.

if you installed the code properly there is a link in the admincp to HACKS which has RSS News Bot under that. you can add, edit, or delete a bot. if you don't want to delete it, you can just turn it off. however, this is all part of the original code. i make no changes to the way the bot collects the data, or admincp changes, just how the data is posted.
Reply With Quote
  #194  
Old 04-11-2004, 05:25 PM
rockergrrl's Avatar
rockergrrl rockergrrl is offline
 
Join Date: Oct 2001
Location: Michigan
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oy....

Can't get it to work.. even updated threads... no go... :ermm:

I can't ge the &nbsp problem fixed either.....

And then changing the bold and italics tags it puts ".&lt;br&gt;&lt;i&gt;" in the posts. :ermm:

Thanks again for all your help, I greatly appreciate it!

Screens...
Reply With Quote
  #195  
Old 04-11-2004, 05:30 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Slapyo - no in the Admin CP you can only edit the Feeds - there is no "Delete" Funktion.

And sorry - i have to ask again (i know i have written it a little bit confusing before !) :

If the Hack is working correctly does the robot post the News and overwrite them if there are new ones or does he add all of them - means old and new News. I can?t know it by now because it did only worked one time with no more update of the News.
Can somebody tell me this ? (Sorry - my english is a little bit untrained - i work on it again !
Reply With Quote
  #196  
Old 04-11-2004, 06:33 PM
Slapyo Slapyo is offline
 
Join Date: Feb 2004
Location: Rancho Cucamonga
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh, ok i though there was a way to delete a bot in there...wasn't sure.

the way it works is this. when the bot grabs the news it will check all the news articles. if there is a new one, it will skip that news article. sometimes i have noticed that with Yahoo! news i get repeated titles, but the content of the article is different, so they are different posts. but it should not repeat an article, it will just goto the next one.

new news, will be new posts and the old news will be kept, no posts are deleted. but no repeat posts should be made.
Reply With Quote
  #197  
Old 04-11-2004, 06:51 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That was something i understand no definitely !! Thanx ...
Reply With Quote
  #198  
Old 04-11-2004, 10:36 PM
Slapyo Slapyo is offline
 
Join Date: Feb 2004
Location: Rancho Cucamonga
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, here it is. i just ran it on my server and it worked fine. there are a couple things...

1 - might be a cleaner/neater way to convert the ASCII to normal characters
2 - might not convert all the ASCII to normal characters

so you may end up with like &apos; or &nbsp; or &#010 .... whatever it may be ... if someone wants to look at the code and see if they could clean it up that would be great. that code is in /includes/RSS/rss_update.php ... it's towards the bottom.

i have it running on my forums that i just started up ... you can see it here, http://www.sportsbabble.net
Reply With Quote
  #199  
Old 04-12-2004, 12:33 AM
Host Visions Host Visions is offline
 
Join Date: Jan 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if anyone would help me get these RSS feeds running on my vb3 I will gladly pay you funds via paypal! If interested, please PM me here.
Reply With Quote
  #200  
Old 04-12-2004, 05:28 PM
mirdin mirdin is offline
 
Join Date: Apr 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Slapyo
ok, here it is. i just ran it on my server and it worked fine. there are a couple things...
Great work! Thanks!

I have one minor issue though.
I've set the user id in rss_admin, but the threads show a different user id as the poster.

EDIT:
Actually it seems to be a random user id every time the rss feeds are posted...
Reply With Quote
  #201  
Old 04-12-2004, 06:28 PM
Slapyo Slapyo is offline
 
Join Date: Feb 2004
Location: Rancho Cucamonga
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mirdin
Great work! Thanks!

I have one minor issue though.
I've set the user id in rss_admin, but the threads show a different user id as the poster.

EDIT:
Actually it seems to be a random user id every time the rss feeds are posted...
my problem use to be that it would post the news as whoever the person was that triggered the cron script. but i fixed that, and have had other users, and visitors trigger the script and it always posts as my bot.

after thinking about your problem some, it sounds like the problem that i had before. did you make the changes in your functions_newpost.php? it should change the build_new_post function and then change the global variables just below that in the function.
Reply With Quote
Reply


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 12:18 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
  • Page Generation 0.05064 seconds
  • Memory Usage 2,330KB
  • 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
  • (7)bbcode_php
  • (2)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