Announcement

Collapse
No announcement yet.

vb:if statements, checking if users logged in

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

  • 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.

  • #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 - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.

    Comment


    • #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.

      GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

      Comment

      Related Topics

      Collapse

      Working...
      X