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
Duplicate Post checker for Inferno RSS Forum Feeds Technology v1.6 Details »»
Duplicate Post checker for Inferno RSS Forum Feeds Technology v1.6
Version: 1.00, by flup flup is offline
Developer Last Online: Nov 2021 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 11-11-2007 Last Update: Never Installs: 0
Re-useable Code Code Changes  
No support by the author.

Credits go to Zero Tolerance for making this hack available for vB 3.5.0 a while back I just added 2 lines of code which must be enough to keep the doubles away

Inferno RSS Forum Feed Technology v1.6:
https://vborg.vbsupport.ru/showthread.php?t=94510

------------------------------------------------------------------------------------------

I noticed a lot of users where complaining about the doublepost being made by the RSS feed reader. As there are still alot of users who have installed this hack, underwhich myself, I have made a slight modification for this hack which checks the new posts for titles in the database.

It's a fairly easy modification and it might not be the perfect solution to this problem, but at least it keeps the double posts away.

What does it do?
This mod checks for posts with the same title in the forum where the feed is directed to (so a a feed which is posted in the forum with ID 3 will only check for duplicate titles in the forum with ID 3).

What to do?
Open the /includes/class_ffrss.php file and find the function: post_thread() and replace it with this new post_thread function:

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();
			
		}
		
	}
Hopefully it works for everyone

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 11-12-2007, 03:04 PM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please let me know wether this solution works.. as far as I can see it works like a charm on my forums.
Reply With Quote
  #3  
Old 11-13-2007, 08:46 AM
Xeder Xeder is offline
 
Join Date: Oct 2007
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't even find /includes/class_ffrss.php :/
Help?
Reply With Quote
  #4  
Old 11-13-2007, 09:21 PM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you have installed the Inferno RSS Forum Feed Technology mod properly, and you have uploaded all files to the correct directories in:

Code:
forumdirectory/includes/
You will find the class_ffrss.php file.. might need a little search, but it definitly should be there otherwise the whole Inferno RSS mod couldn't work.
Reply With Quote
  #5  
Old 03-15-2009, 12:12 AM
legion! legion! is offline
 
Join Date: Oct 2006
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm does this work for 3.8 i kinda need this
Reply With Quote
  #6  
Old 05-09-2010, 07:51 PM
MedellinStyle MedellinStyle is offline
 
Join Date: Oct 2007
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this works with 4.xx ??
Reply With Quote
  #7  
Old 02-28-2013, 06:32 PM
Naijasite's Avatar
Naijasite Naijasite is offline
 
Join Date: Mar 2012
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does it work with 4.2.0
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 04:44 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.04634 seconds
  • Memory Usage 2,258KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete