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)

Smiry Kin's 05-29-2006 04:14 PM

Quote:

Originally Posted by Xenon
erm, wasn't that what you wanted?
excluding admins will of course stop the hack to work for you.

admins are not excluded.

Nathan2006 05-29-2006 04:28 PM

Quote:

Originally Posted by Smiry Kin's
admins are not excluded.

That can be changed to what you need :)

vBulletin Options > Doublepost Preventing > Additional Condition (experts only)

And add this line in that box at the bottom:

Code:

!in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))
as 5,6,7, are the usergroups you want to exclude;)

Smiry Kin's 05-29-2006 04:30 PM

Quote:

Originally Posted by Nathan2006
That can be changed to what you need :)

vBulletin Options > Doublepost Preventing > Additional Condition (experts only)

And add this line in that box at the bottom:

Code:

!in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))
as 5,6,7, are the usergroups you want to exclude;)

i dont want to exclode any one... nothing is in that box. it just stoped working..

Nathan2006 05-29-2006 04:35 PM

Quote:

Originally Posted by Smiry Kin's
i dont want to exclode any one... nothing is in that box. it just stoped working..

That might be down to another hack you have installed after
the double posting hack? that might stop this one working.

The products that you have installed after this if you
disable them 1 by 1 and check to see if it works you may find the problem :)

mgs 05-30-2006 07:59 AM

I haven't read all posts in this topic. Just ignore me if I'm incorrect|this suggestion was already proposed.

From my point of view in the following code
Code:

if ($doublepost['userid'] == $vbulletin->userinfo['userid'] AND $doublepost['attach'] == 0)
a little addition should be made
Code:

if ($doublepost['userid'] == $vbulletin->userinfo['userid'] AND  $doublepost['parentid'] == $parentid AND $doublepost['attach'] == 0)
This one prevents doubleposting "blank shots" if user answers to the different posts.

Kirk Y 05-31-2006 07:02 PM

Would someone mind posting up the file edits version of this? I'd rather do hard-coded modifications than deal with the AJAX issue. Thanks if anyone has it.

Smiry Kin's 05-31-2006 11:21 PM

Quote:

Originally Posted by acidburn0520
Would someone mind posting up the file edits version of this? I'd rather do hard-coded modifications than deal with the AJAX issue. Thanks if anyone has it.

thats what im after, =-/

Boofo 05-31-2006 11:55 PM

Quote:

Originally Posted by mgs
I haven't read all posts in this topic. Just ignore me if I'm incorrect|this suggestion was already proposed.

From my point of view in the following code
Code:

if ($doublepost['userid'] == $vbulletin->userinfo['userid'] AND $doublepost['attach'] == 0)
a little addition should be made
Code:

if ($doublepost['userid'] == $vbulletin->userinfo['userid'] AND  $doublepost['parentid'] == $parentid AND $doublepost['attach'] == 0)
This one prevents doubleposting "blank shots" if user answers to the different posts.

I'm confused as to what your addition does here. ;)

mgs 06-01-2006 04:46 AM

Quote:

Originally Posted by Boofo
I'm confused as to what your addition does here. ;)

Joking?

Boofo 06-01-2006 06:34 AM

Quote:

Originally Posted by mgs
Joking?

Didn't see a smilie, so I thought it was for real. :(


All times are GMT. The time now is 04:59 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.01841 seconds
  • Memory Usage 1,744KB
  • 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
  • (6)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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