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
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
  #192  
Old 12-19-2005, 08:17 AM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone help me apply this feature to this MOD?

Taken previously from the "3.0.x Prevent Double Posting"
Quote:
In your includes/functions_newpost.php, find the following:
Code:
 // we are here, so we may have a doublepost -> do more exact checkings
            $doublepost = $DB_site->query_first("
                SELECT postid, pagetext, post.title, post.userid, post.attach
and replace by:
Code:
 // we are here, so we may have a doublepost -> do more exact checkings
            $doublepost = $DB_site->query_first("
                SELECT postid, pagetext, post.title, post.userid, post.attach, post.dateline AS dateline
Then find:
Code:
 $post['message'] = $doublepost['pagetext'] . $dp_settings['spacer'] . $post['message'];
and replace by:
Code:
 $post['message'] = $doublepost['pagetext'] . $dp_settings['spacer'] . "$bbuserinfo[username] posted " . ((TIMENOW - $doublepost[dateline]) / 60) . " minutes later:\n" . $post['message'];
I compared the code but I just can't seem to figure out how to apply these changes. Basically I want output simillar to this.

JohnBee added 9 Minutes later...

Instead of the standard merge. All other things work very nicely btw!
Reply With Quote
  #193  
Old 12-19-2005, 08:43 AM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay update, I got the time etc. to display but I cannot get the username to appear, anyone know why:
Code:
"$bbuserinfo[username] posted "
Doesnt work?
Reply With Quote
  #194  
Old 12-19-2005, 09:48 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

$bbuserinfo is now $vbulletin->userinfo
Reply With Quote
  #195  
Old 12-19-2005, 09:49 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 mentalrz
hack works fine except on quick reply , i have to refresh to view the post .. how do i solve this?.
by actually reading the posts above yours .........
Reply With Quote
  #196  
Old 12-19-2005, 10:00 AM
Rickie3's Avatar
Rickie3 Rickie3 is offline
 
Join Date: Nov 2004
Location: Australia/Tasmania
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanyou so much for this hack,the double posting was getting out of hand on my board
*installed*
Reply With Quote
  #197  
Old 12-19-2005, 10:00 AM
MentaL's Avatar
MentaL MentaL is offline
 
Join Date: Jan 2003
Posts: 550
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
Not, not correct - Quick Reply works with AJAX as normal for any post that is not a "double post". What the fix does is refresh the page when a double post merge happens.

If I could reproduce it then I could probably fix it - I just don't get that error on our test or live forums. Maybe someone has a test forum I could have access to that does have the error, so I can try and pinpoint the problem ?
http://forum.ragezone.com

sign up and double post somewhere, i dont get an error but the page does not update unless refreshed.

Quote:
by actually reading the posts above yours .........
silly me
Reply With Quote
  #198  
Old 12-19-2005, 10:16 AM
Rickie3's Avatar
Rickie3 Rickie3 is offline
 
Join Date: Nov 2004
Location: Australia/Tasmania
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mentalrz
http://forum.ragezone.com

sign up and double post somewhere, i dont get an error but the page does not update unless refreshed.

silly me
i think this is what he means
https://vborg.vbsupport.ru/showpost....&postcount=123

@me puts glasses on and reads posts
Reply With Quote
  #199  
Old 12-19-2005, 10:30 AM
AWI's Avatar
AWI AWI is offline
 
Join Date: Dec 2005
Location: Midwest
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, thanks :nervous:
Reply With Quote
  #200  
Old 12-19-2005, 02:03 PM
Mudvayne's Avatar
Mudvayne Mudvayne is offline
 
Join Date: Dec 2005
Location: /dev/null/
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by biggazillakilla
Wow, that message is really hard to understand.

You are asking Xenon to link to Kirby's hack, but you don't link to it? Can you at least link to what you ask someone else to link to?
.. https://vborg.vbsupport.ru/showpost....&postcount=157
u don hav to modify any code.. just upload the product.. kieby post it in this thread.. & i'm using it now.. working fine.. & abt linking? either xenon can link kirby's auto marged post product.xml.. or kirby should open a new thread.. coz it 'll b easy to find it.. infact u don hav to read 157 post :banana:

Note: sorry my english :nervous:
Reply With Quote
  #201  
Old 12-19-2005, 02:21 PM
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 mentalrz
http://forum.ragezone.com

sign up and double post somewhere, i dont get an error but the page does not update unless refreshed.
I was referring to the timestamp update error in the fix I use. I don't get one, some people seem to.
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 07:06 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.06437 seconds
  • Memory Usage 2,324KB
  • 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
  • (5)bbcode_code
  • (7)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
  • (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
  • (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