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)

Gio Takahashi 01-11-2004 11:37 PM

Thanks, that worked.

Taco John 01-12-2004 09:39 PM

Quote:

Originally Posted by Zelda-King
If you doublepost, the doublepost is inserted into the previous post as an edit. Thereby, it counts as an edit on a new line rather than as a new post.



Oh that's GENIUS.

I'm installing this one for sure after the next release... Genius, I tell you...

Xenon 01-12-2004 11:10 PM

I've uploaded a new version.

Now there is a variable included so you can define yourself, wether the post's date will be altered or not :)

The Keeper 01-13-2004 10:16 AM

I think one of my users has spotted a bug. If someone posts, then deletes their post, then posts again then the new text is appended to a deleted post, and thus it's not visible. Is there something you can add in to check if the post it is about to be added to is deleted or not?

Xenon 01-13-2004 03:20 PM

d'oh.
yesterday i reported a quite similar vb3 bug and now i made it myself....

thx, i've fixed it :)

The Quibbler 01-13-2004 06:21 PM

I've already installed it, and I'd rather not do the whole thing over again, so could you tell me what needs to be changed to fix that error?

Xenon 01-13-2004 07:57 PM

it's just the very first query:
PHP Code:

        // doublepost check
        
if ($type != 'thread' AND $doublepost $DB_site->query_first("
            SELECT postid, pagetext, post.userid 
            FROM " 
TABLE_PREFIX "post 
            LEFT JOIN " 
TABLE_PREFIX "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
            WHERE threadid = 
$threadinfo[threadid]
                AND dateline > " 
. (TIMENOW 3600) . "
                AND visible = 1 AND deletionlog.primaryid IS NULL
            ORDER BY dateline DESC 
            LIMIT 1
        "
) AND $doublepost['userid'] == $bbuserinfo['userid']) 


cka 01-14-2004 02:11 PM

Ahh nice... I believe I'll install this. Beats macgyvering one up on my own. :p

PET 01-17-2004 07:32 PM

This is a DIVINE one ! thanx

NTLDR 01-17-2004 07:56 PM

I've just got round to installing this one and I love it, such a simple idea, yet so usefull. Something I should have added to my board along time ago ;)


All times are GMT. The time now is 10:37 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.01242 seconds
  • Memory Usage 1,740KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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