vb:if statements, checking if users logged in

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dha12oks
    New Member
    • Jul 2009
    • 4

    vb:if statements, checking if users logged in


    Hey,

    Well first off let me say forgive me if this has been posted in the past, I had searched on Google countless times and couldn't find what I am after, I am currently in the process of integrating a website template into my newly installed VB5 forums, and I am having problems finding the vb:if statement to whether or not if the users logged in or not, could someone point it out for me on the default VB5 template that comes installed?

    If not then provide me some tutorials on how to get around distinguishing vb:if statements?

    Thanks in advance.
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73976

    #2
    Code:
    <vb:if condition="$user OR $user['userid'] > 0">stuff </vb:if>
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • glennrocksvb
      Former vBulletin Developer
      • Mar 2011
      • 4011
      • 5.7.X

      #3
      It depends on which templates you are in. Sometimes $userInfo variable is used sometimes it's not available at all and you have to call api to get user info.

      Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

      Comment

      Related Topics

      Collapse

      Working...