The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
A specific user or all non-logged-in users?
|
#3
|
|||
|
|||
Basically I want to execute if it is a guest
|
#4
|
|||
|
|||
Code:
<vb:if condition="$show['guest']">JS Code</vb:if> |
#5
|
||||
|
||||
Or
Code:
<vb:if condition="$vbulletin->userinfo['userid'] == '0'">JS Code</vb:if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|