The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Let's say in memberinfo I want to show certain picture if user is online and certain picture if user is offline. Is it possible to do that with "if" conditionals?
|
|
#2
|
||||
|
||||
|
yes your looking for a usergroup conditional. or if not guest
|
|
#3
|
|||
|
|||
|
hm, not to registered users, but to Online Registered users.
|
|
#4
|
|||
|
|||
|
Okay, I'm confused-- if a person is not online, how would they see the content?
|
|
#5
|
|||
|
|||
|
Sorry I think I confused myself there. First post edited.
Let's say in memberinfo I want to show certain picture if user is online and certain picture if user is offline. Is it possible to do that with "if" conditionals? something like <if $userinfo[onlinestatus]==1> or something like that. |
|
#6
|
|||
|
|||
|
$userinfo[onlinestatus] should work for what you want.
|
|
#7
|
|||
|
|||
|
but how do I set it to online/offline?
I tried $userinfo[onlinestatus]==1 , it doesnt seem to work. Is there any other way? |
|
#8
|
|||
|
|||
|
Offline.
Code:
<if condition="$onlinestatus==0"> Code:
<if condition="$onlinestatus==1"> Code:
<if condition="$onlinestatus==2"> |
|
#9
|
|||
|
|||
|
hm thanks but this doesnt seem to work in memberinfo...only postbit
|
|
#10
|
|||
|
|||
|
Should go in the 'postbit_onlinestatus' template. It's best to edit that template and just leave the memberinfo and postbit templates alone.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|