The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[v1.6] Inferno RSS Forum Feeds Technology Details »» | |||||||||||||||||||||||||||
[v1.6] Inferno RSS Forum Feeds Technology
Developer Last Online: Nov 2023
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] Enjoy - Zero Tolerance Show Your Support
|
Comments |
#402
|
|||
|
|||
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; } 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 . ") "); replace the whole function get_dateline() with Code:
function get_dateline() { $this->dateline = TIMENOW + 1; return $this->dateline; } |
#403
|
|||
|
|||
Quote:
|
#404
|
|||
|
|||
Quote:
A fix for that would soothe my headache. |
#405
|
||||
|
||||
Quote:
-b6 |
#406
|
|||
|
|||
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. |
#407
|
|||
|
|||
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:
|
#408
|
|||
|
|||
Quote:
|
#409
|
|||
|
|||
Quote:
PHP Code:
PHP Code:
With "Today's Posts" it's normally PHP Code:
PHP Code:
Just look for these words in your navbar template and change them. |
#410
|
||||
|
||||
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 |
#411
|
|||
|
|||
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:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|