vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Unable to use forum conditional in header or threadbit (https://vborg.vbsupport.ru/showthread.php?t=239386)

LifesGreatestGift 03-30-2010 02:51 AM

Unable to use forum conditional in header or threadbit
 
I want to use the following conditional

<vb:if condition="$forum[forumid] != x"></vb:if>

to disable the viewing of notices in a specific forum so I open up template "navbar" and add it around the notices code and it does not work. Any ideas?

<vb:if condition="$forum[forumid] != 159">

<vb:if condition="$show['notices']">
<form action="profile.php?do=dismissnotice" method="post" id="notices" class="notices">
<input type="hidden" name="do" value="dismissnotice" />
<input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" />
<input type="hidden" name="url" value="{vb:raw return_link}" />
<ol>
{vb:raw notices}
</ol>
</form>
</vb:if>

</vb:if>

ForumsMods 03-30-2010 03:04 AM

For forums:
HTML Code:

<vb:if condition="$foruminfo['forumid'] != '159'">
</vb:if>


For Threads:
HTML Code:

<vb:if condition="$threadinfo['forumid'] != '159'">
</vb:if>


LifesGreatestGift 03-30-2010 04:20 AM

Thank you, could never figure out why I couldnt get variables to work. :)

--------------- Added [DATE]1269927611[/DATE] at [TIME]1269927611[/TIME] ---------------

Thanks to you my Tutorial section finally looks how I want it to :)

http://thewindows7site.com/forum/forums/159-Tutorials


All times are GMT. The time now is 02:35 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.01040 seconds
  • Memory Usage 1,714KB
  • 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
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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