Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Doublepost Prevention Details »»
Doublepost Prevention
Version: 3.8.005, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.8.x Rating:
Released: 01-30-2009 Last Update: 06-12-2009 Installs: 855
Uses Plugins Auto-Templates
Translations  
No support by the author.

As of 24 Nov 2017 this modification has been withdrawn.

This is an updated version of the popular modification, previously released by Xenon. It is released with his kind permission.

Basically, if member posts in a thread where they were the previous last poster, then if the conditions are met, their new post will be auto-merged into the previous post instead of creating a new "double" post.

A number of options are provided ;

Time Limit - if more than xxx minutes have passed since the last post, no merge is done.

Timestamp Spacer - if enabled, a timestamped spacer is added between the old post text and the new post text.

Post Timestamp Update - if enabled the newly merged post will have its post time updated to the new time, otherwise it retains the time of the original post.

Spacer Colour - allows you to set the colour of the spacer between merged posts.

Usergroup exceptions - Allows you to exempt certain usergroups from the doublepost merges.

Forum exceptions - Allows you to exempt certain forums form the doublepost merges.

All settings are located in vBulletin Options > Doublepost Prevention.


To install just unzip the XML and import into vB using the ACP Product Manager.


History:

v3.8.001 : First Release for vB 3.8.
v3.8.002 : Phrased the post separater.
v3.8.003 : Added JS Template - removing need to edit quick reply javascript file.
v3.8.004 : Updated spacer options.
v3.8.005 : Updated timestamp spacer to fix issue with large merge times.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
s2lo7

Comments
  #252  
Old 09-01-2009, 09:50 PM
ricardoNJ ricardoNJ is offline
 
Join Date: Sep 2008
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sorry. This mod was uninstalled.
Reply With Quote
  #253  
Old 09-01-2009, 09:57 PM
yamahapaul's Avatar
yamahapaul yamahapaul is offline
 
Join Date: Aug 2008
Location: UK
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
This was was only released 7 months ago
Even so, its still pretty cool and will save me a massive headache as one of my users spreads one post over two or three and merging them was getting tedious (I only found it by seeing it in use on here by the way) incidentally, there's no problems on 3.8.4 in case anyone is wondering..
Reply With Quote
  #254  
Old 09-01-2009, 11:38 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ricardoNJ View Post
I'm sorry. This mod was uninstalled.
I don't blame you. If that happened to my forum, I'd be sorry this mod was uninstalled too.
Reply With Quote
  #255  
Old 09-02-2009, 09:16 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ricardoNJ View Post
I'm sorry. This mod was uninstalled.
Im sure it was. I dont suppose you care to mention why ?

(Since you never bothered to post the error you mentioned, Im not expecting an answer)
Reply With Quote
  #256  
Old 09-03-2009, 10:02 PM
ricardoNJ ricardoNJ is offline
 
Join Date: Sep 2008
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
Im sure it was. I dont suppose you care to mention why ?

(Since you never bothered to post the error you mentioned, Im not expecting an answer)
Oh I forgot it. Because I found this other: https://vborg.vbsupport.ru/showthrea...ght=doublepost
Reply With Quote
  #257  
Old 09-05-2009, 12:54 AM
JoomlaCommunity JoomlaCommunity is offline
 
Join Date: Sep 2008
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Raug View Post
Nice update since I use long times as well, but is there a way to add the actual date of the original post and addition to the phrase?
Same request here...
Quote:
Originally Posted by Paul M View Post
Not really sure what you mean.
If the actual (first) post was say on August 15 at 15.00 and the new post is August 20 at 13.00 the phrase now shows:

......Post added at 13:00 ......... Previous post was at 15:00 ............

What we would like is:

.......... Post added at 13:00 .......... Previous post was on August 15 at 15:00 ....
Reply With Quote
  #258  
Old 09-05-2009, 03:54 AM
ricardoNJ ricardoNJ is offline
 
Join Date: Sep 2008
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ricardoNJ View Post
I have a "Database error"
Quote:
Importando Producto, Por Favor Espera...

[:]

Please remember to Mark as Installed at vBulletin.org

Install Information


Prevent DoublePosts

Installing : Version 3.8.005 ; Revision 1.7

( Replacing : Version 3.8.005 ; Revision 1.7 )



Database Error Database error
The arteforos.com database has encountered a problem.
Please try the following:

* Load the page again by clicking the Refresh button in your web browser.
* Open the www.arteforos.com home page, then try to open another page.
* Click the Back button to try another link.

The www.arteforos.com forum technical staff have been notified of the error, though you may contact them if the problem persists.

We apologise for any inconvenience.
I had this Database problem.
Reply With Quote
  #259  
Old 09-05-2009, 10:02 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JoomlaCommunity View Post
Same request here...

If the actual (first) post was say on August 15 at 15.00 and the new post is August 20 at 13.00 the phrase now shows:

......Post added at 13:00 ......... Previous post was at 15:00 ............

What we would like is:

.......... Post added at 13:00 .......... Previous post was on August 15 at 15:00 ....
Are you sure you have the latest version installed, it was updated to do that in the 3.8.005 release.
Reply With Quote
  #260  
Old 09-05-2009, 10:03 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ricardoNJ View Post
I had this Database problem.
There is nothing I can tell you unless you post the actual database error. However, this mod does not make any database changes.
Reply With Quote
  #261  
Old 09-05-2009, 10:01 PM
JoomlaCommunity JoomlaCommunity is offline
 
Join Date: Sep 2008
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
Are you sure you have the latest version installed, it was updated to do that in the 3.8.005 release.
Yes we updated to the latest version, and were hoping the update would provide a date in the phrase.
However the date is only shown if you choose not to Update the timestamp of a doublepost.
Problem then is, the new post will not show up at the list of unread posts.

We want to update the timestap of a doublepost and see the date of the previous post in the phrase.

In the meanwhile I dugg into it myself and found a solution.
I modified 'Prevent DoublePost 2 newpost_complete' , the code for pdp_spacer1.

this :
Code:
if ($vbulletin->options['pdp_spacer'] == 1)
		{
			$pdptime = TIMENOW;
			$prevtime = $doublepost['dateline'];
			if ($vbulletin->options['pdp_bumpthread'])
			{
				$spacer = construct_phrase($vbphrase['pdp_spacer1'],
					vbdate($vbulletin->options['timeformat'],$pdptime),
					vbdate($vbulletin->options['timeformat'],$prevtime),
					vbdate('d',$pdptime) != vbdate('d',$prevtime) ? vbdate($vbulletin->options['dateformat'],$pdptime)." " : "",
					vbdate('d',$pdptime) != vbdate('d',$prevtime) ? vbdate($vbulletin->options['dateformat'],$prevtime)." " : ""
				);
			}
into:

Code:
if ($vbulletin->options['pdp_spacer'] == 1)
		{
			$pdptime = TIMENOW;
			$prevtime = $doublepost['dateline'];
			if ($vbulletin->options['pdp_bumpthread'])
			{
				$spacer = construct_phrase($vbphrase['pdp_spacer1'],
					vbdate($vbulletin->options['timeformat'],$pdptime),
                                        vbdate($vbulletin->options['timeformat'],$prevtime),
                                        vbdate($vbulletin->options['dateformat'],$pdptime),
                                        vbdate($vbulletin->options['dateformat'],$prevtime),
					vbdate('d',$pdptime) != vbdate('d',$prevtime) ? vbdate($vbulletin->options['dateformat'],$pdptime)." " : "",
					vbdate('d',$pdptime) != vbdate('d',$prevtime) ? vbdate($vbulletin->options['dateformat'],$prevtime)." " : ""
				);
			}
The phrase wil now show:
---------- Post added 5 september 2009at 23:37 ---------- Previous post was 2 oktober 2008at 02:48 ----------

Additional you have to add two spaces after {3} and {4} in the phrase


Code:
---------- Post added {3} at {1} ---------- Previous post was {4} at {2} ----------

Hope this helps, maybe it can be added to the plugin?
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:49 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.05491 seconds
  • Memory Usage 2,331KB
  • 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
  • (11)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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
  • (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
  • 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