Announcement

Collapse
No announcement yet.

how do I make a condition..

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • how do I make a condition..

    does something like <if condition="$hide['guest']"> exist?

    Like, I want to hide something inside a template from a guest?

  • #2
    One way is to use this variable:

    $bbuserinfo[userid] > 0

    Code:
    <if condition="$post['field1'] AND $bbuserinfo[userid] > 0">Name: $post[field1]<br /><br /></if>

    Comment


    • #3
      Code:
      <if condition="$bbuserinfo[userid]"> The user who is browsing is a guest</if>

      Comment


      • #4
        PHP Code:
        <if condition="$show['member']">hide something from a guest</if> 
        www.vbulletin-tr.com

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X