Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[v1.6] Inferno RSS Forum Feeds Technology Details »»
[v1.6] Inferno RSS Forum Feeds Technology
Version: 1.6, by Zero Tolerance Zero Tolerance is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 08-16-2005 Last Update: 10-04-2005 Installs: 277
DB Changes Uses Plugins
Additional Files  
No support by the author.

This hack was made purely by request, and the fact IPB will have a similar system as default functionality, i wouldn't like them to have a upper hand to vbulletin

v1.5 Updates:
- Auto detect RSS settings system
- Forum stats rebuilt correctly (last post info)

v1.6 Updates:
- Various bug fixes

Description:
This once added to your forum allows you to connect to any RSS feed you desire, once set up the system will automatically post data from the RSS feed into threads within a specified forum.

Previews are available at the bottom, and an FAQ is built into the admin controls since I know not everyone will understand how to set up the options. Also an example to use a BBC UK News rss feed is below

Example BBC UK News Feed:
Feed Name: BBC UK News
Feed Location: http://newsrss.bbc.co.uk/rss/newsonl...t_page/rss.xml
Feed Prefix: [BBC UK News]
Feed From User: Assign users username of your own choice
Feed Forum: Choose a forum you want threads to be posted into
Feed Read Direction: Newest First
Parent RSS Tag Name: channel
Items RSS Tag Name: item
Thread Title RSS Tag Name: title
Thread Post RSS Construct:
HTML Code:
[b]Published:[/b] {XML[pubDate]}

{XML[description]}
[url={XML[link]}]Read More...[/url]
Note: After adding a new feed i suggest clicking update for that feed, this will manually update that singular feed specified, the cron job included will automatically update all feeds, best not to have it update them all from the start otherwise it could execute a lot of queries. Further more I highly recommend you do not have lots of feeds unless your server can with-stand it.

Enjoy

- Zero Tolerance

Show Your Support

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

Comments
  #592  
Old 08-06-2007, 06:46 AM
BlackxRam BlackxRam is offline
 
Join Date: Aug 2003
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thats because vb already has RSS functionality, this hack is out of date.

you can search any category for new posts seperately by adding &f=forumid

forumid being the number for example

www.site.com/forums/search.php?do=getnew&f=10

So you can search seperate categories by adding the above links on your forums.. not sure if there is a hack somewhere for this.
Reply With Quote
  #593  
Old 11-11-2007, 07:07 PM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I might have found a solution for the duplicate posts thing.. I replaced the post_thread() function with the following code:

Code:
		function post_thread($title, $message, $feed)
	{
		global $vbulletin;

		$getThread = $vbulletin->db->query("SELECT threadid FROM " . TABLE_PREFIX ."thread WHERE title = '" . mysql_real_escape_string($title) . "' AND forumid = '" . mysql_real_escape_string($feed['feed_forum']) . "'");
		$ThreadNums = $vbulletin->db->num_rows($getThread);

		if($ThreadNums < 1) {
	
			$this->ItemsAdded++;
	
			$newpost['title']   = $title;
			$newpost['message'] = $message;
			$smilie             = true;
			$foruminfo          = fetch_foruminfo($feed['feed_forum']);
	
			$ThreadDM =& datamanager_init('Thread_FirstPost', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
	
			$ThreadDM->set_info('forum', $foruminfo);
			$ThreadDM->set_info('thread', $newpost);
			$ThreadDM->setr('allowsmilie', $smilie);
			$ThreadDM->setr('userid', $feed['feed_user']);
			$ThreadDM->setr('title', $newpost['title']);
			$ThreadDM->setr('pagetext', $newpost['message']);
			$ThreadDM->setr('forumid', $feed['feed_forum']);
			$ThreadDM->setr('dateline', $this->get_dateline());
			$ThreadDM->set('visible', 1);
			$ThreadDM->registry->options['floodchecktime'] = 0; // Disable flood check in memory...
			$ThreadDM->pre_save();
	
			if (sizeof($ThreadDM->errors) > 0)
			{
				$ThreadDM->errors = array();
			}
	
			$ThreadDM->save();
			
		}
		
	}
Please not that it only checks on the title.. so each post with the same title will be seen as a duplicate post and not be added to the forums. I think it works for me.. I tested it on some RSS feeds which are updated since the last cronjob and it added 1/3/4 items and not all 20 items which are on the list.
Reply With Quote
  #594  
Old 11-12-2007, 09:05 AM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One little change made to this piece of code.. added 'mysql_real_escape_string() over the $title var.. to prevent quotes from splitting the query in two resulting in a mysql-error.
Reply With Quote
  #595  
Old 12-09-2007, 08:21 PM
angusv angusv is offline
 
Join Date: Dec 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This doesn't work with 3.6.8 - is there an update or a similar mod for 3.6.x?
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 07:21 PM.


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.08890 seconds
  • Memory Usage 2,250KB
  • Queries Executed 19 (?)
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
  • (1)bbcode_html
  • (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
  • (2)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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