vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Prevent Doubleposting (https://vborg.vbsupport.ru/showthread.php?t=59916)

Xenon 01-07-2004 10:00 PM

Prevent Doubleposting
 
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.

Zelda-King 01-08-2004 08:17 PM

Oh yes! I've been waiting for this one. Thanks a lot!

Kentaurus 01-08-2004 08:31 PM

Quote:

Originally Posted by Xenon
Ok, this is a portover of my old vb2 Hack.
On vb3 it has slightly increased, but has also new functionality regarding attachments.

So waht does this hack if anybody doesn't know it already:
When a User posts to 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 the old post is older than 1 hour (you can change this timespan yourself:))

Enjoy, and don't forget to click install :)

Great hack, this is a must-to. Makes users who want to flood a single thre... err make a lot of posts in one single thread angry, though.

Zelda-King 01-08-2004 08:43 PM

I'm about to check this myself but one of my admins made the following observation: "if you post, then someone else does, it adds you next post to your post two above".

EDIT: Yep! I notice that too. I'm going to install it afresh just in case...

EDIT 2: Yeah, still a problem.

DuffMan 01-08-2004 08:56 PM

Thanks for releasing this! I'm going to wait until that issue Zelda-King mentioned has been resolved before I install.

Kentaurus 01-08-2004 08:57 PM

Quote:

Originally Posted by Xenon
Ok, this is a portover of my old vb2 Hack.
On vb3 it has slightly increased, but has also new functionality regarding attachments.

So waht does this hack if anybody doesn't know it already:
When a User posts to 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 the old post is older than 1 hour (you can change this timespan yourself:))

Enjoy, and don't forget to click install :)

Xenon, just installed it and noticed that if you use the parsed post cache then your post doesn't appear (it uses the post_parsed text and not the post one). It makes it appear as if it didn't work

I added this code and after that it works fine. I don't know yet if there is a better way to do it.

Code:

// delete the parsed post
$DB_site->query("DELETE FROM post_parsed WHERE postid='".$doublepost['postid']."'");

The issue that Zelda told about is still there, I have tested and confirmed it also

Xenon 01-08-2004 09:19 PM

gahh, didn't think of the parsecache.

ok, both little bugs have been fixed.

Kentaurus 01-08-2004 09:30 PM

Quote:

Originally Posted by Xenon
gahh, didn't think of the parsecache.

ok, both little bugs have been fixed.

Yet another thing:

$tpye != 'thread'

isn't it

$type != 'thread' ? :)

Xenon 01-08-2004 09:44 PM

:p

i guess you are right ;)
well it doesn't change anything, it is just to optimize it a bit ;)

sabret00the 01-08-2004 09:50 PM

thanks xenon, this was a must have for my community :D you're awesome :D


All times are GMT. The time now is 11:18 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.01512 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete