vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Proper conditional syntax. (https://vborg.vbsupport.ru/showthread.php?t=107495)

sdp777 02-09-2006 12:09 AM

Proper conditional syntax.
 
I have a permission level access for my staff on my site. Any respective post displays for those who have permission on my home page, at www.vizdepot.com, however, I want to also conditionalize its display with a color so its more easily recognizable to my moderators.

This is something like what I am after but its not the proper syntax. Any advice would be appreciated.

<if forumid=['6']><font color="#FF0000">$thread[threadtitle]</font></if>

Guest190829 02-09-2006 01:30 AM

Code:

<if condition="is_member_of($userinfo, x)"><span style="color: blah">$thread[threadtitle]</if>
Replace x with the usergroupid of your moderators, and replace blah with an appropriate color or hex color code.

sdp777 02-09-2006 02:11 AM

Thanks Danny, I ended up figuring it out with the forum id...

Code:

<if condition="$thread[forumid] == 6"><font color="#FF0000"></if>$threadtitle<if condition="$thread[forumid] == 6"></font></if>


All times are GMT. The time now is 04:47 AM.

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.03304 seconds
  • Memory Usage 1,716KB
  • 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_code_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