vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   conditional needed to stop banner from showing on forum (https://vborg.vbsupport.ru/showthread.php?t=115802)

GoTTi 05-16-2006 08:52 PM

conditional needed to stop banner from showing on forum
 
how would i stop a banner from showing on a certain forum id #?

it should be a conditional right?

i will have the banner in the header template. please help. thanks.

Dr.Viggy 05-16-2006 09:01 PM

Quote:

<if condition="is_member_of($bbuserinfo, 2,9,10,11)">
where the numbers are the usergroups you want to see it.
then input the code for your banner and end it with
Quote:

</if>
after re-reading your request i realized that you wanted to choose by forum ID not but usergroup. i'm not 100%sure on that one, but something similar
"is_member_of" will be changed and instead of $bbuserinfo it will be $forumid

sorry about that.

GoTTi 05-17-2006 04:05 PM

can u explain that please. gimme a working example of the code im trying to get here

Dr.Viggy 05-17-2006 08:07 PM

the code i gave you is to make a conditional for usergroups, not for forum IDs. i don't know the code to use for forum IDs. with my code you can choose to make something show up for certain groups if you want. for instance, paid members on my site don't see google ads, but free users do. i can give you a more indepth example if you think that's the route you want to take

Dan 05-17-2006 09:09 PM

As Dr. Viggy said the numbers in
Code:

<if condition="is_member_of($bbuserinfo, 2,9,10,11)">
Represent the usergroup numbers, those usergroups would be the only ones to see what is inbetween the <if>'s. If you need to find out the usergroup numbers you can easily find them in the usergroup manager where it'll show you the numbers.


All times are GMT. The time now is 11:48 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.00995 seconds
  • Memory Usage 1,718KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete