If condition help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • IdleHearts
    Member
    • May 2008
    • 33
    • 3.7.x

    If condition help

    I want to show certain field only to that member when he signs in and not others

    What conditional should i use

    <if condition="$memberinfo[userid] == $bbuserinfo[userid]"> </if>

    i used this but can get it work correctly
    Last edited by IdleHearts; Thu 16 Oct '08, 10:54am.
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    Did you really compare a value to itself? That will also be true.

    What template are you using?

    In general, in templates:
    $bbuserinfo[userid] is the userid of the person logged in.
    $userinfo[userid] is the userid of the user who's profile you are looking at
    $post[userid] is the userid of the person who made the post

    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

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