![]() |
detecting if the user is logged in
I have some java script that I would like to add into the site. However I would like that script to only be called if the user is not logged in.
Is there an easy way to do that? |
A specific user or all non-logged-in users?
|
Quote:
|
Code:
<vb:if condition="$show['guest']">JS Code</vb:if> |
Or
Code:
<vb:if condition="$vbulletin->userinfo['userid'] == '0'">JS Code</vb:if> |
All times are GMT. The time now is 12:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|