Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

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

Version: 3.0.6 Rating:
Released: 01-07-2004 Last Update: 02-05-2005 Installs: 288
Code Changes  
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, attachments will be added to the old post as well.
This will be done until the old post is older than 1 hour (you can change this timespan yourself)
by changing $do_bump in the script, you can define wether the post's time will be altered or not.

Enjoy, and don't forget to click install

Notice: If you have installed the Proxy ip to real ip conversion or Proxy Detector v3.1 Hack, then you should probably take a look at this post.

Show Your Support

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

Comments
  #182  
Old 01-09-2005, 02:11 AM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome work on that Xenon, I had something like this going, but this is much better, much more optimized, and well it works and it works good!

Regards,
Reply With Quote
  #183  
Old 01-09-2005, 02:00 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

glad to hear Arunan

@Baptizer: i think i answered it already within the thread, but short again: you can change the \n\n in
PHP Code:
$post['message'] = $doublepost['pagetext'] . "\n\n" $post['message']; 
to add custom text between the posts as well.
Reply With Quote
  #184  
Old 01-09-2005, 10:03 PM
Baptizer Baptizer is offline
 
Join Date: Nov 2001
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xenon
glad to hear Arunan

@Baptizer: i think i answered it already within the thread, but short again: you can change the \n\n in
PHP Code:
$post['message'] = $doublepost['pagetext'] . "\n\n" $post['message']; 
to add custom text between the posts as well.

THanks a bunch! Any way to get the time of the double post to display using the post viewers timezone? I am guessing not, correct?
Reply With Quote
  #185  
Old 01-10-2005, 01:08 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nope, that's not possible, at least not without adding extram fields to the post table (or creating something like a doublepost log)
Reply With Quote
  #186  
Old 01-23-2005, 02:50 PM
eblivion eblivion is offline
 
Join Date: Sep 2004
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed the mod and didn't notice any code excluding administrators and moderators from the restriction. How can I prevent it from blocking admins & moderators?
Reply With Quote
  #187  
Old 01-23-2005, 03:45 PM
Mechanical Mind's Avatar
Mechanical Mind Mechanical Mind is offline
 
Join Date: Sep 2004
Location: USA
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In this thread here: https://vborg.vbsupport.ru/showthrea...0603post600603
I posted twice in a row, and because it has the hack to show the first thread at the beginning of every page, it didn't merge my posts. It let me post at the end of one page and at the beginning of another???

Just an observation. I don't even have this hack installed.

UPDATE...

Xenon clarifies this below. It is not a bug.
Reply With Quote
  #188  
Old 01-23-2005, 03:59 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have excluded the release forums from the automerge
Reply With Quote
  #189  
Old 01-25-2005, 10:43 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I put a separator to separate a first post and a second post when they both show up in the same post?
Reply With Quote
  #190  
Old 01-26-2005, 03:43 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

as i said, you can put everything between the \n\n

this is already a seperator, put in some dashes or whatever
Reply With Quote
  #191  
Old 01-26-2005, 04:14 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xenon
as i said, you can put everything between the \n\n

this is already a seperator, put in some dashes or whatever
I can't seem to put HTML in there. It just outputs <hr /> as &lt;hr /&gt;
Reply With Quote
  #192  
Old 01-26-2005, 04:24 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

of course you can't

the seperator will become part of the post, and if you don't allow html in posts, you cannot use it
Reply With Quote
  #193  
Old 02-06-2005, 03:04 AM
TCattitude's Avatar
TCattitude TCattitude is offline
 
Join Date: Oct 2004
Location: Chile
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by eblivion
I installed the mod and didn't notice any code excluding administrators and moderators from the restriction. How can I prevent it from blocking admins & moderators?
After upgrade to 3.0.5/3.0.6 i have the same thing here.
Before, admins (i don't know if mods or supermods too) were not affected by the anti-doublepost.

And now... works for admins too.
Anything wrong?
Obviously, i applied the hack again after upgrade.

How exclude admins?
Reply With Quote
  #194  
Old 02-06-2005, 05:33 PM
FASherman's Avatar
FASherman FASherman is offline
 
Join Date: Aug 2002
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone every included the mod to this hack to update the editlog table? These forums are using it so I know it must exist.
Reply With Quote
  #195  
Old 02-06-2005, 06:27 PM
FASherman's Avatar
FASherman FASherman is offline
 
Join Date: Aug 2002
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay, okay...i figured it out myself.

FIND
PHP Code:
//Update forum if postdate has changed.
if ($dp_settings['dobump'])
{
    
$DB_site->query("
     UPDATE " 
TABLE_PREFIX "forum
     SET lastpost = " 
TIMENOW ",
     lastposter = '" 
addslashes($post['postusername']) . "',
     lastthread = '" 
addslashes($threadinfo['title']) . "',
     lastthreadid = 
$threadinfo[threadid],
     lasticonid = " 
iif($threadinfo['pollid'], -1$threadinfo['iconid']) . "
     WHERE forumid = 
$foruminfo[forumid]
    "
);

AFTER THAT, ADD:
PHP Code:
//Now lets update the editlog
$reason "Automerged Doublepost";
$lastedit $DB_site->query_first("
     SELECT postid, userid, username, dateline, reason 
     FROM " 
TABLE_PREFIX "editlog 
     WHERE postid = 
$post[postid]
"
);
if (
$lastedit['postid']) {
    
$DB_site->query("
     UPDATE " 
TABLE_PREFIX "editlog
     SET postid = 
$lastedit[postid],
     userid = 
$bbuserinfo[userid],
     username = '" 
addslashes($post['postusername']) . "',
     dateline = " 
TIMENOW ",
     reason = '" 
addslashes($reason) . "'
     WHERE postid = 
$post[postid]
    "
);
} else {
    
$DB_site->query("
     INSERT INTO " 
TABLE_PREFIX "editlog
     (postid, userid, username, dateline, reason)
     VALUES (
$post[postid]$bbuserinfo[userid]
     '" 
addslashes($post['postusername']) . "',
     " 
TIMENOW ",'" addslashes($reason) . "')
    "
);

Reply With Quote
  #196  
Old 02-06-2005, 07:24 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@FASherman: well, here on vb.org there are often some more features in my hacks than in the released version, as i don't release every single change immediatelly

but i have uploaded the newest version now, which adds the editlog text
Reply With Quote
 


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 09:03 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05578 seconds
  • Memory Usage 2,370KB
  • Queries Executed 30 (?)
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
  • (4)bbcode_php
  • (3)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
  • (1)pagenav_pagelinkrel
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete