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
  #402  
Old 10-26-2005, 10:13 AM
garrynewman garrynewman is offline
 
Join Date: Mar 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, it seems to be working just fine. This fix will only work on new posts that are added to the forum. So if you get repeats just delete the OLD threads and you won't get any more (Or start from new).

in includes/class_ffrss.php
find the function "function post_thread($title, $message, $feed)"
and after global $vbulletin;

add:
Code:
		$dupehash = md5($feed['feed_forum'] . $title . $message . $feed['feed_user'] . 'thread');

		if ($prevpost = $vbulletin->db->query_first("
			SELECT posthash.threadid
			FROM " . TABLE_PREFIX . "posthash AS posthash
			WHERE posthash.userid = " . $feed['feed_user'] . " AND
				posthash.dupehash = '" . $vbulletin->db->escape_string($dupehash) . "'"))
		{
			return;
		}
then at the bottom of the function after $ThreadDM->save();

add:

Code:
		$vbulletin->db->query_write("
			INSERT INTO " . TABLE_PREFIX . "posthash
			(userid, threadid, dupehash, dateline)
			VALUES
			(" . intval($feed['feed_user']) . ", " . intval($ThreadDM->fetch_field('threadid')) . ", '" . $dupehash . "', " . TIMENOW . ")
		");
then, and I don't know whether this is 100% needed but..

replace the whole function get_dateline()

with

Code:
	function get_dateline()
	{
		$this->dateline = TIMENOW + 1;
		return $this->dateline;
	}
(in my test this prevented it from adding another invalid posthash)
Reply With Quote
  #403  
Old 10-26-2005, 11:03 AM
Vierie Vierie is offline
 
Join Date: Apr 2005
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DjTaz
Zero , Thanks a million for this great hack

... i have a feed on my boards 3.0.7 and it works great , but this hack on my test boards doesnt seem to want to let the same feed work ... any chance you can let me know what the problem is ?

http://www.ireland.com/feeds/rss/breaking/irish.rss

Thanks
That's an rdf-feed. You'll need that workaround: https://vborg.vbsupport.ru/showpost....&postcount=306
Reply With Quote
  #404  
Old 10-26-2005, 12:44 PM
skizzy203 skizzy203 is offline
 
Join Date: Nov 2004
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TyleR
didnt work for the first few days, but has been working lately..only "bug" per-say is that characters are being displayed awkward..such as: WP: Lawmaker’s Abramoff ties under scrutiny

it sometimes does it in the description aswell.
I need a fix for this too, I read as far back as I could and didn't see anything that targeteted this problem. Is there anyone that knows what the deal is on the quotation (") and apostrophe (') charecters being replaced with garbage?

A fix for that would soothe my headache.
Reply With Quote
  #405  
Old 10-26-2005, 02:17 PM
b6gm6n's Avatar
b6gm6n b6gm6n is offline
 
Join Date: Aug 2002
Location: UK
Posts: 691
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by garrynewman
OK, it seems to be working just fine. This fix will only work on new posts that are added to the forum. So if you get repeats just delete the OLD threads and you won't get any more (Or start from new).
No errors, seems to work ok, im actually pulling an RSS feed of my photopost gallery installation, the feed gives various information about new uploads, uploader, thumbnail, comments etc... and is generated on the fly when a new upload is in, pulls them ok and works a treat, but although my cron log says it's run the 'cron_ffrss.php' i have rarely had an update, i hope this may fix that

-b6
Reply With Quote
  #406  
Old 10-26-2005, 09:46 PM
slamdog slamdog is offline
 
Join Date: Jul 2002
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

after trying all the fixes i'm still getting dupes from avn but not the bbc or sky news.

thanks to all who have helped/tried to fix so far.

the actual setup was a breeze, worked first time on gold.
Reply With Quote
  #407  
Old 10-28-2005, 02:20 AM
nailerpa nailerpa is offline
 
Join Date: Aug 2005
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't seem to get this to work. Can someone please post a screen shot of what the Navbar edit looks like exactly? Much appreciated!

Quote:
Originally Posted by Carl Anderson
@Dream


One other thing someone was asking how not to exclude these posts in new posts or todays posts - do this.. if you have rss feeds in 16 15 and 23

just add &exclude=6,15,23 to the end of the do=getnew url and it'll exlude the forums with the forumids 6, 15 and 23.

Thanks Zero another great hack...
Reply With Quote
  #408  
Old 10-28-2005, 08:36 AM
chairman miaow chairman miaow is offline
 
Join Date: May 2005
Location: Engerland
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by slamdog
after trying all the fixes i'm still getting dupes from avn but not the bbc or sky news.

thanks to all who have helped/tried to fix so far.

the actual setup was a breeze, worked first time on gold.
Same here - got Sky and BBC feeds working fine now without duplicates....but the cron job doesn't appear to be updating the feeds still...
Reply With Quote
  #409  
Old 10-28-2005, 09:36 AM
Vierie Vierie is offline
 
Join Date: Apr 2005
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nailerpa
I can't seem to get this to work. Can someone please post a screen shot of what the Navbar edit looks like exactly? Much appreciated!
The code for "New Posts" is
PHP Code:
search.php?do=getnew 
. If you want to exclude certain forums, you have to change that to
PHP Code:
search.php?do=getnew&exclude=x,
x and y being the numbers of the forums you want to exclude.
With "Today's Posts" it's normally
PHP Code:
search.php?do=getdaily 
. You have to change that to
PHP Code:
search.php?do=getdaily&exclude=x,
.

Just look for these words in your navbar template and change them.
Reply With Quote
  #410  
Old 10-28-2005, 05:15 PM
b6gm6n's Avatar
b6gm6n b6gm6n is offline
 
Join Date: Aug 2002
Location: UK
Posts: 691
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, i'm not sure if it's this mod or the rss feed from my photopost gallery but the feed does not update via cron, it is being run according to my logs, if i manually click 'update feed' i get nothing also... BUT if i alter the 'Feed Read Direction' from newest first to newest last it'll update the feed...weird huh? either way it's a bug which stops this great hack from being totally automatic!

One which although good, is the crippled leg of my forum!
( i may have to amputate the duff leg )

Are there any other hacks along these lines?

-b6
Reply With Quote
  #411  
Old 10-28-2005, 08:56 PM
nailerpa nailerpa is offline
 
Join Date: Aug 2005
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ugh...I'm just not getting it...still not working. Does this look right?

<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily&exclude=97,98" accesskey="2">$vbphrase[todays_posts]</a></td>

Quote:
Originally Posted by Vierie
The code for "New Posts" is
PHP Code:
search.php?do=getnew 
. If you want to exclude certain forums, you have to change that to
PHP Code:
search.php?do=getnew&exclude=x,
x and y being the numbers of the forums you want to exclude.
With "Today's Posts" it's normally
PHP Code:
search.php?do=getdaily 
. You have to change that to
PHP Code:
search.php?do=getdaily&exclude=x,
.

Just look for these words in your navbar template and change them.
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 02:07 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.05179 seconds
  • Memory Usage 2,343KB
  • 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
  • (3)bbcode_code
  • (1)bbcode_html
  • (8)bbcode_php
  • (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
  • (2)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