Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Prevent Doubleposting Details »»
Prevent Doubleposting
Version: 1.0, by Xenon Xenon is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 09-19-2005 Last Update: 01-15-2007 Installs: 877
Uses Plugins
 
No support by the author.

When a User posts into a thread where he already has the lastpost, no new post will be added. The lastpost of him will be edited and the new text is put after his first message.
This will be done until the old post is older than 24 hours (you can change this timespan yourself)

Nothing more to say about that, it's the quite same as my vb3.0 version.

This Mod should run with 3.6 as well


** Please make sure you ENABLE this product after you install it - it is disabled by default. **

For vb 3.8 there are two alternative updates ;

https://vborg.vbsupport.ru/showthread.php?t=203705
https://vborg.vbsupport.ru/showthread.php?t=204177

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
inphoenix

Comments
  #12  
Old 09-20-2005, 11:45 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, I think i'll play around a bit with this when I got time ... want this a Plugin only
Reply With Quote
  #13  
Old 09-20-2005, 11:48 AM
nexialys
Guest
 
Posts: n/a
Default

oh, on my side i have added :
$vbulletin->options['doublepost_automerge_timespan'] = number of minutes prefered
$vbphrase[posting_doublepost_msg] = Automerge Double Posting

... good to have if you don't like to edit your hacks all the time!

permission would be good too... "bypass per usergroup.." ... and per forum...

anyway, i'm god, i can do that myself.. lol
Reply With Quote
  #14  
Old 09-20-2005, 11:54 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nexialys
oh, on my side i have added :
$vbulletin->options['doublepost_automerge_timespan'] = number of minutes prefered
$vbphrase[posting_doublepost_msg] = Automerge Double Posting

... good to have if you don't like to edit your hacks all the time!

permission would be good too... "bypass per usergroup.." ... and per forum...

anyway, i'm god, i can do that myself.. lol
When you get the bypass for admins and mods please let me know. I have this line but I don't think it's right for 3.5.

PHP Code:
 AND !in_array($bbuserinfo['usergroupid'], array(5,6,7)) 
Kirby, if you get it going as a plug-in, please let me know.
Reply With Quote
  #15  
Old 09-20-2005, 12:03 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yay I have been waiting for this thanks man!
Reply With Quote
  #16  
Old 09-20-2005, 12:05 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Bob: it's

PHP Code:
AND !in_array($vbulletin->userinfo['usergroupid'], array(5,6,7)) 


and right now it is not possible as plugin only without adding a bunch of code, and i admit i was too lazy to do so
Reply With Quote
  #17  
Old 09-20-2005, 12:15 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, sir.

You got the right idea, Stefan. Make the boar you used as a testboard do the plug-in. LOL
Reply With Quote
  #18  
Old 09-20-2005, 12:20 PM
nexialys
Guest
 
Posts: n/a
Default

ok, i'll be VERY generous here, and release a hack already for this tool...

a Per Forum Activation of the Automerge...

i add the prod in the html tag here... to set Per Forum if the Automerge is active or not, and here is the modification for the hack itself:

in the hack, FIND:
PHP Code:
    if ($type != 'thread' 
and REPLACE BY:
PHP Code:
if ($foruminfo['force_automerge'] AND $type != 'thread' 
HTML Code:
<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="force_automerge" title="Force Automerge of Doubleposts" description="Force Automerge of Doubleposts" version="1.0.0" active="1">
	<codes>
		<code version="1.0.1">
			<installcode><![CDATA[$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD force_automerge SMALLINT( 3 ) UNSIGNED NOT NULL DEFAULT '1'");
$db->query_write("UPDATE " . TABLE_PREFIX . "forum SET force_automerge = 1");]]></installcode>
			<uninstallcode><![CDATA[$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum DROP force_automerge");]]></uninstallcode>
		</code>
	</codes>
	<templates>
	</templates>
	<plugins>
		</plugin>
		<plugin active="1">
			<title>Force Automerge of Doubleposts</title>
			<hookname>forumadmin_edit_form</hookname>
			<phpcode><![CDATA[print_yes_no_row($vbphrase['force_automerge_in_this_forum'], 'forum[force_automerge]', $forum['force_automerge']);]]></phpcode>
		</plugin>
		<plugin active="1">
			<title>Force Automerge of Doubleposts</title>
			<hookname>forumdata_start</hookname>
			<phpcode><![CDATA[$this->validfields['force_automerge'] = array(TYPE_INT, REQ_NO);]]></phpcode>
		</plugin>
	</plugins>
	<phrases>
		<phrasetype name="Control Panel Global" fieldname="cpglobal">
			<phrase name="force_automerge_in_this_forum"><![CDATA[Force Automerge of Doubleposts in this Forum?]]></phrase>
		</phrasetype>
	</phrases>
	<options>
	</options>
</product>
so Xenon, you know what to do with this...
Reply With Quote
  #19  
Old 09-20-2005, 12:23 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what I get when I click on your xml link. What gives, buddy? LOL



Quote:
The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. End tag 'plugin' does not match the start tag 'plugins'. Error processing resource 'https://vborg.vbsupport.ru/attachme...

</plugin>----^


Reply With Quote
  #20  
Old 09-20-2005, 12:29 PM
nexialys
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Boofo
This is what I get when I click on your xml link. What gives, buddy? LOL
bah, no biggy, some don't like xml files.. lol

post updated...
Reply With Quote
  #21  
Old 09-20-2005, 12:33 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nexialys
bah, no biggy, some don't like xml files.. lol

post updated...
The file saved fine as a "save target as" right click. Just messing with 'ya.
Reply With Quote
Reply

Thread Tools

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 08:35 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.08182 seconds
  • Memory Usage 2,309KB
  • 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
  • (1)bbcode_html
  • (4)bbcode_php
  • (4)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
  • (3)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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