Conditional Syntax help please

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Budget101
    Senior Member
    • Jul 2008
    • 343
    • 3.7.x

    [Forum] Conditional Syntax help please

    I would like to add a conditional that is for a specific forum id AND a Usergroup Id, but I cannot seem to get the correct syntax.

    How do I combine them into a single condition?
    Code:
    <vb:if condition="$forum[forumid] == X">
    <vb:if condition="is_member_of($bbuserinfo, 1 )">
    Thanks!
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    Assuming the $forum variable is registered for use in that template....

    <vb:if condition="$forum[forumid] == X AND is_member_of($bbuserinfo, 1 )">

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools &lt;- awesome site for html/css help

    Comment

    Related Topics

    Collapse

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎