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
  #312  
Old 10-06-2005, 11:18 PM
HC. HC. is offline
 
Join Date: Mar 2004
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

fixed after playing around a bit
Reply With Quote
  #313  
Old 10-07-2005, 12:21 AM
ixian's Avatar
ixian ixian is offline
 
Join Date: Oct 2001
Location: Denver, CO
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This script has the passed variables error that PHP 5.0.4 "fixed" and is also present in 5.0.5, resulting in the following error:

Code:
Fatal error: Only variables can be passed by reference in /path-snipped-by-ixian/htdocs/forums/includes/class_ffrss.php on line 371
The line in question is:

Code:
$ThreadDM->setr('dateline', $this->get_dateline());
Which is invalid in 5.0.4/5 and presumably future versions. I've tried a couple fixes but I am missing something - can anyone figure it out?
Reply With Quote
  #314  
Old 10-07-2005, 03:24 AM
eMike eMike is offline
 
Join Date: Nov 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amazing hack but i seem to have a problem with the links.
Every feed posted returns the link with the tags (as shown below)

http://<br />http://www.someurl.com/feed.rss<br />

I use this code in the "Thread Post RSS Construct" window
Code:
Published: {XML[pubDate]}

{XML[description]}
[urI={XML[link]}]Read More...[/url]
How can I fix this ?
Reply With Quote
  #315  
Old 10-07-2005, 04:58 AM
ManagerJosh's Avatar
ManagerJosh ManagerJosh is offline
 
Join Date: Feb 2002
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
[urI={XML[link]}]Read More...[/url]
I see URI and not URL
Reply With Quote
  #316  
Old 10-07-2005, 05:25 AM
eMike eMike is offline
 
Join Date: Nov 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Was wondering how long it would take for someone to notice

Point was - the code is identical to the creators example. vB translates that bbcode into a link and hides the code behind the output.

Original problem still unsolved
Reply With Quote
  #317  
Old 10-07-2005, 09:28 AM
garrynewman garrynewman is offline
 
Join Date: Mar 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having a problem with duplicates now
Reply With Quote
  #318  
Old 10-07-2005, 09:36 AM
ManagerJosh's Avatar
ManagerJosh ManagerJosh is offline
 
Join Date: Feb 2002
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by garrynewman
I'm having a problem with duplicates now
Posted earlier about it:
https://vborg.vbsupport.ru/showpost....&postcount=289
Reply With Quote
  #319  
Old 10-07-2005, 12:42 PM
Gizmo5h1t3's Avatar
Gizmo5h1t3 Gizmo5h1t3 is offline
 
Join Date: Aug 2005
Location: ROCHDALE LANCS UK
Posts: 650
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by garrynewman
I'm having a problem with duplicates now
rofl...welcome to this thread mate...heh heh

join the club.
Reply With Quote
  #320  
Old 10-07-2005, 03:40 PM
ixian's Avatar
ixian ixian is offline
 
Join Date: Oct 2001
Location: Denver, CO
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, thanks to The Geek, coder extraordinare of such addons as Geek Article System and Geek Mark, I got the variables problem fixed with PHP 5.0.5 and here's the thing - it might take care of the duplicate post problem some of you are experiencing as well.

In a nutshell, PHP 5.0.4 and above "fixed" a bug with passing variables as part of a string. You aren't supposed to be able to do that and in fact in a lot of cases it won't work if you do, but PHP previously wouldn't report an error message when it happened. Now it does and in fact stops the script from running further. This has caused some consternation as a lot of scripts which previously "worked" ended up breaking because of this fix, but in fact it's really a good thing long term since it exposes errors in code people never realized were there.

Case in point, this script: With PHP 5.0.5 the class_ffrss.php file errors out with the message I posted earlier. The string in question is on line 371:
Code:
$ThreadDM->setr('dateline', $this->get_dateline());
Which as you can plainly see is passing a variable as part of the string itself, which is a no no. You will also note that said string has to do with getting the date of the RSS feed it is about to post, which I suspect is the root cause of the double-posting a lot of you have been seeing - the string above will produce no error with PHP versions lower than 5.0.4 but neither will it work correctly.

To fix this error, replace line 371 shown above with:
Code:
$dateline = $this->get_dateline();
$ThreadDM->setr('dateline', $dateline);
The above will work whether you have PHP 5.0.5 or not, remember the "bug" has always been there, new versions of PHP just bother to point it out.

This works just fine for me and as an added bonus I have yet to see a duplicate post, although I can't guarentee this is the fix for that issue.

And be sure to thank The Geek and vote for his hacks because that guy is a genius.
Reply With Quote
  #321  
Old 10-07-2005, 04:06 PM
Gizmo5h1t3's Avatar
Gizmo5h1t3 Gizmo5h1t3 is offline
 
Join Date: Aug 2005
Location: ROCHDALE LANCS UK
Posts: 650
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

edited the file as mentioned, gonna test it for dupes.....

works so far...
forcing a feed update pulls zero new posts....

il try later, and post back here....
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 03: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.05253 seconds
  • Memory Usage 2,317KB
  • 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
  • (6)bbcode_code
  • (1)bbcode_html
  • (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
  • (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