vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Prevent Doubleposting (https://vborg.vbsupport.ru/showthread.php?t=96602)

Smoothie 01-01-2007 06:52 PM

Quote:

Originally Posted by Err0r1 (Post 1148417)
Is this working for anyone on 3.6.4?

I've installed, but nothing happens upon double posting.

Maybe it's because I've installed beebi's mod: https://vborg.vbsupport.ru/showpost....&postcount=618

It's working for me.

TrIn@dOr 01-04-2007 09:10 AM

Thanks, nice.

Where can i find the sentence, "Doublepost will be merged" ?, i need to translate it!

Wild-Wing 01-06-2007 04:01 PM

ok im confused whats with post var where theres no sql

MeMySelfNi 01-09-2007 11:22 PM

I was looking all over the place for this

*installed*

Nik_s3 01-10-2007 08:32 PM

Sorry... I'm using 3.6.4 versione. Is there someone that could explain to me what is the exact procedure to install this modification?

Thank you

Nik_s3 01-11-2007 11:07 AM

Up....

SCRIPT3R 01-15-2007 06:29 PM

Quote:

Originally Posted by Nik_s3 (Post 1155748)
Sorry... I'm using 3.6.4 versione. Is there someone that could explain to me what is the exact procedure to install this modification?

Thank you

Quote:

Originally Posted by Nik_s3 (Post 1156146)
Up....

Quote:

Originally Posted by beebi (Post 1117689)
to get it work fine with 3.6.x
find
PHP Code:

    // we are here, so we may have a doublepost -> do more exact checkings
    
$doublepost $vbulletin->db->query_first("
        SELECT post.*
        FROM " 
TABLE_PREFIX "post AS post
        LEFT JOIN " 
TABLE_PREFIX "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
        WHERE threadid = 
$threadinfo[threadid]
            AND dateline > " 
. (TIMENOW $vbulletin->options['xen_dp_timespan'] * 60) . "
            AND visible = 1 AND deletionlog.primaryid IS NULL
            AND postid <> 
$post[postid]
        ORDER BY dateline DESC
        LIMIT 1
    "
); 


replace it with
PHP Code:

        // we are here, so we may have a doublepost -> do more exact checkings
        
$doublepost $vbulletin->db->query_first("
                SELECT post.*
                FROM " 
TABLE_PREFIX "post AS post
                LEFT JOIN " 
TABLE_PREFIX "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
                WHERE threadid = 
$threadinfo[threadid]
                        AND post.dateline > " 
. (TIMENOW $vbulletin->options['dp_timespan'] * 60) . "
                        AND post.visible = 1 AND deletionlog.primaryid IS NULL
                        AND post.postid <> 
$post[postid]
                ORDER BY post.dateline DESC
        "
); 


there ya go. ;)

Bubble #5 01-16-2007 03:14 PM

Quote:

Originally Posted by Xenon (Post 776744)

PHP Code:

AND !in_array($vbulletin->userinfo['usergroupid'], array(5,6,7)) 


We added this to the 'conditionals' section of the hack, but we're getting a bunch of parsing errors and admins are still getting automerged :(

Quote:

Parse error: syntax error, unexpected T_LOGICAL_AND in /home/imnotimk/public_html/forum/includes/functions_newpost.php(524) : eval()'d code(9) : eval()'d code on line 1
Is this a 3.6.4 problem, or did we add the wrong code to the conditionals section?

Xenon 01-16-2007 03:18 PM

remove the AND in front ;)

that was in an old version iirc, regarding that the post is on page one ^^

Bubble #5 01-16-2007 03:52 PM

Thank you Xenon, I fully appreciate your help :)

One other quick question while I have your attention. At the beginning of the thread there is a post that makes this hack 3.6.x compatible. It basically just changed 'AND dateline' to 'AND post.dateline'. However now I see additional code being posted above in beebi post. In your opinion what is the advantage (if any) to using beebis code VS. just adding "AND post.dateline"?


All times are GMT. The time now is 03:16 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.02280 seconds
  • Memory Usage 1,757KB
  • 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
  • (3)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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