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)

bada_bing 04-16-2008 02:30 AM

Quote:

Originally Posted by bada_bing (Post 1491355)
So if all my forums I want to exlude are subforums how can I exlude the main forum which also include all the subforums below it?

Can you post the code do this with exampe of exluding forums 83,129 and also to exclude mods from this hack...

Thanks

Any help with this Boofo?

Boofo 04-16-2008 02:40 AM

!in_array($threadinfo['forumid'], array(83,129)) AND !can_moderate()

Alfa1 04-16-2008 11:44 AM

Somehow this doesn't work:
!in_array($threadinfo['forumid'], array(125,142,152,156,164,165,166,174,176,190,192, 196,209,211,212,213,214,215,21 6,217, 218,219,220,221,223,224,225,226,228,229,237,238,23 9,240,241,242,243,244,245,246, 247,248,249,250,251,252,253,254,255,256,257,258,25 9,260,261,262,263,264,265,266, 267,268,269,270,271,272,273,277,278,279)) AND !can_moderate()

While on my development forum this does work:
!in_array($threadinfo['forumid'], array(6,8,9))

The forumID's are the ID's I want to exclude

Alfa1 04-16-2008 11:58 AM

Please delete this post. I would really like to know if anyone knows the answer to the question above.

bada_bing 04-16-2008 05:08 PM

Quote:

Originally Posted by Boofo (Post 1491777)
!in_array($threadinfo['forumid'], array(83,129)) AND !can_moderate()

Boofo I have tried your listed code and it does not work, If I try and double post in either forum or subforum under forum id 83 or 129 it still merges in those forums???

bada_bing 04-16-2008 05:22 PM

Awe never mind got it thanks I used this

!in_array($threadinfo['forumid'], array(83,129)) AND !can_moderate()

I was missing the )

bada_bing 04-16-2008 05:40 PM

OK Another glitch as this works to exclude all subforms also uner the forumid with version 3.6.9 cant get it to work with 3.5.x as I have to add all the subforum ID's to exclude them???? Any reason why?

KURTZ 04-17-2008 02:24 PM

Quote:

Originally Posted by Noctavia (Post 1484326)
After reading back the past 10 pages, it seems there is still no reply to making the merged text read:

--------------- Added 6 April 2008 at 7:17pm ---------------

Anyone managed to get that working?

unfortunately i think not ... maybe Bobby can give us a hand ...? :P

bada_bing 04-17-2008 02:36 PM

Quote:

Originally Posted by bada_bing (Post 1492332)
OK Another glitch as this works to exclude all subforms also uner the forumid with version 3.6.9 cant get it to work with 3.5.x as I have to add all the subforum ID's to exclude them???? Any reason why?

Hey Boofo any ideas?

Alfa1 04-17-2008 07:24 PM

Quote:

Originally Posted by Noctavia (Post 1484326)
After reading back the past 10 pages, it seems there is still no reply to making the merged text read:

--------------- Added 6 April 2008 at 7:17pm ---------------

Anyone managed to get that working?

No but we do have:

Quote:

Alfa1 added 0 Minutes and 12 Seconds later...
BTW: I have this hack working now.

When activating this hack does it only process new posts or old ones as well?
Would rebuilding post or thread cache cause old double posts to be merged?


All times are GMT. The time now is 05: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.01822 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
  • (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