vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Prevent Doubleposting (https://vborg.vbsupport.ru/showthread.php?t=40145)

Xenon 06-21-2002 10:00 PM

Prevent Doubleposting
 
This is why i really want a Mini-Hack section here, please Chen ;)

What this hack does:
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.
This would not be done, if he has an attachment in his new post or the old post is older than 1 hour (you can change this timespan yourself :))

Known bugs: None :)

Hope someone can use it, i do :)

Believe this hack includes just 1!! codehack.

darker1 06-22-2002 11:24 AM

sweet. been looking for something like this.

Chris M 06-22-2002 11:39 AM

Sweet hack!!

Satan

Xenon 06-22-2002 11:41 AM

thanx you 2 :)

ups, have seen one line is double in the attachment, delete one of the eval lines *gg*

have corrected it here :)

Chris M 06-22-2002 12:05 PM

Ok thanks:)

Satan

Link14716 06-22-2002 01:18 PM

Cool...

*Runs to install*
;)

MrLister 06-22-2002 02:57 PM

This is great, I'll just modify it a bit to be different per forum.

Xenon 06-22-2002 03:52 PM

feel free to do so, and please post the modifications here, who know who can use them else :)

Velocd 06-22-2002 07:18 PM

Excellent hack Xenon, this is truly userful ;)

One request: Can you make it so when the user does double post, and his post is merged with the first post, that on the bottom it will state:

Last edited by ... on 06-22-02 at 01:27 PM

This would be more useful, because in some ways if a user wants to add-on to their original post by bypassing the "edited by", all they would have to do is double post. This stops them though.

Logician 06-22-2002 07:20 PM

very nice idea Xenon. :)

May I suggest an improvement? Maybe you can add another query to $action=="newreply" section to check if he is the last poster to the thread. If he is, he can be pre-warned in the screen he writes his message that his last message will be replaced with this one.

This will add an extra query to newreply.php but it can save the user from losing his last message in the thread especially when the hack is new in the board.


All times are GMT. The time now is 08:11 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.01222 seconds
  • Memory Usage 1,724KB
  • 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)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