View Full Version : Online status conditional?
Sychev_S
29 Jan 2007, 00:37
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?
Mr Chad
29 Jan 2007, 02:31
yes your looking for a usergroup conditional. or if not guest
Sychev_S
29 Jan 2007, 03:38
hm, not to registered users, but to Online Registered users.
darnoldy
29 Jan 2007, 05:24
hm, not to registered users, but to Online Registered users.Okay, I'm confused-- if a person is not online, how would they see the content?
Sychev_S
29 Jan 2007, 06:57
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.
darnoldy
29 Jan 2007, 17:06
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?$userinfo[onlinestatus] should work for what you want.
Sychev_S
29 Jan 2007, 17:59
but how do I set it to online/offline?
I tried $userinfo[onlinestatus]==1 , it doesnt seem to work. Is there any other way?
Offline.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Online.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Invisible.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Sychev_S
30 Jan 2007, 01:43
hm thanks but this doesnt seem to work in memberinfo...only postbit
Should go in the 'postbit_onlinestatus' template. It's best to edit that template and just leave the memberinfo and postbit templates alone.
Sychev_S
03 Feb 2007, 21:25
yeah but when i try to use conditionals for gender it doesnt work in 'postbit_onlinestatus" template.
Of course it won't. You never mentioned anything about pix for gender in this thread. This was for online status, wasn't it?
Sychev_S
03 Feb 2007, 21:39
yeah, sorry I thought I was replying to the other thread.
http://www.vbulletin.org/forum/showthread.php?t=137893
vBulletin® v3.6.12, Copyright ©2000-2013, Jelsoft Enterprises Ltd.