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

Reply
 
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
  #232  
Old 04-03-2005, 03:45 PM
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xenon
3) nope, but in this thread you can find the instructions to exclude them
I read the entire thread... those instructions were for an earlier version I believe.. I can't find the code to replace?
Reply With Quote
  #233  
Old 04-14-2005, 11:05 AM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I saw a similar hack on another forum software and when the user would add
additional text to a post...
Reply With Quote
  #234  
Old 04-14-2005, 11:06 AM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*user posted 2 minutes later

It would put something like that between them.
Is it possible to do that with this hack also?
Reply With Quote
  #235  
Old 04-14-2005, 07:16 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

post seperator can be whatever you want it to be, that's why i added that one into the option array
Reply With Quote
  #236  
Old 04-14-2005, 09:19 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes I saw that, but im stuck on the time display thingy :P

I'm not much of a code so I guess I'm asking what code I would stick
there to produce that

If you could tell me that I would be one happy camper
I just read that getting the times in there would require much modification
I have a phpbb hack that does this and there code is HUGE in comparisson
and many table queries where logs /records are created, obviously to
manage or calculate times bewteen merges.

anyways, if someone could show me how to get the users name
into the line I would be happy.

ex: *JohnBee has added shortly after...
Reply With Quote
  #237  
Old 04-15-2005, 05:49 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your includes/functions_newpost.php, find the following:

PHP 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:
PHP 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:
PHP Code:
                $post['message'] = $doublepost['pagetext'] . $dp_settings['spacer'] . $post['message']; 
and replace by:
PHP Code:
                $post['message'] = $doublepost['pagetext'] . $dp_settings['spacer'] . "$bbuserinfo[username] posted " . ((TIMENOW $doublepost[dateline]) / 60) . " minutes later:\n" $post['message']; 
I don't have this hack installed and i didn't test the above example. So test this first on a testboard.
Reply With Quote
  #238  
Old 04-15-2005, 11:03 AM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WOW!

Dude it works!:thumbsup:
I needs a little formating but WOW! this is exactly like the phpBB hack except its
1000 lines shorter LMAO!

One thing that I noticed is it posts a highly accurate time stamp
like *User posted 1.222343424 mins later.

it doesnt do it all the time but quite often.

WHat kind of text formating can I apply to this, I didn't t see any html in the
newpost.php anywheres so im assuming it uses something else, I noticed the
/n is a cr equivalent or something, so I will research it, I want to make it
smaller and dark blue...

once again thank you for your great support everyone
Reply With Quote
  #239  
Old 04-15-2005, 11:27 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Change:
PHP Code:
((TIMENOW $doublepost[dateline]) / 60
To:
PHP Code:
intval((TIMENOW $doublepost[dateline]) / 60
Reply With Quote
  #240  
Old 04-15-2005, 12:00 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you MarcoH64

The fixed the .2122223332 problem, it seems of of round it off to the minute.
is there a way to round it off to the min.second ?

ex: *User has posted 1 minutes 42 seconds later

or *User has posted 1.23 minutes later

either or would work nicely
Reply With Quote
  #241  
Old 04-15-2005, 12:39 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, change that line to:
PHP Code:
$post['message'] = $doublepost['pagetext'] . $dp_settings['spacer'] . "$bbuserinfo[username] has posted " intval((TIMENOW $doublepost[dateline]) / 60) . " minutes " intval((TIMENOW $doublepost[dateline]) % 60). " seconds later:\n" $post['message']; 
Or:
PHP Code:
$post['message'] = $doublepost['pagetext'] . $dp_settings['spacer'] . "$bbuserinfo[username] posted " round(((TIMENOW $doublepost[dateline]) / 60), 2) . " minutes later:\n" $post['message']; 
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 03:59 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.06098 seconds
  • Memory Usage 2,329KB
  • 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
  • (8)bbcode_php
  • (1)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • 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