how do i do a condition - IF USER = ADMIN THEN...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tmanran123
    Member
    • Nov 2009
    • 91
    • 4.1.x

    [Forum] how do i do a condition - IF USER = ADMIN THEN...

    i just want to write a message if the user is admin:

    Code:
    <vb:if condition="THE USER IS THE ADMIN">
    
         Hello my favorite admin! Whats up!
    
    </vb:if>

    Thanks!
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    ARe you looking for a specific admin users, or all admin users?

    Comment

    • tmanran123
      Member
      • Nov 2009
      • 91
      • 4.1.x

      #3
      well i only have one admin - me

      but i guess i'd like to make it visible to all admins.

      Comment

      • HMBeaty
        Senior Member
        • Mar 2005
        • 1105
        • 4.2.5

        #4
        HTML Code:
        <vb:if condition="is_member_of($bbuserinfo, 6)">Hello my favorite admin! Whats up!</vb:if>
        "Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time!"
        "It's important to only think about what you desire, not what you fear to achieve your ultimate goal!!"
        "When doors close, tear down the walls. Never give up!"

        Comment

        • tmanran123
          Member
          • Nov 2009
          • 91
          • 4.1.x

          #5
          cool thanks!

          Comment

          • HMBeaty
            Senior Member
            • Mar 2005
            • 1105
            • 4.2.5

            #6
            No problem
            "Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time!"
            "It's important to only think about what you desire, not what you fear to achieve your ultimate goal!!"
            "When doors close, tear down the walls. Never give up!"

            Comment

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