View Full Version : Online status conditional?
Sychev_S
01-28-2007, 11:37 PM
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
01-29-2007, 01:31 AM
yes your looking for a usergroup conditional. or if not guest
Sychev_S
01-29-2007, 02:38 AM
hm, not to registered users, but to Online Registered users.
darnoldy
01-29-2007, 04:24 AM
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
01-29-2007, 05:57 AM
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
01-29-2007, 04:06 PM
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
01-29-2007, 04:59 PM
but how do I set it to online/offline?
I tried $userinfo[onlinestatus]==1 , it doesnt seem to work. Is there any other way?
da420
01-29-2007, 06:16 PM
Offline.
<if condition="$onlinestatus==0">
Online.
<if condition="$onlinestatus==1">
Invisible.
<if condition="$onlinestatus==2">
Sychev_S
01-30-2007, 12:43 AM
hm thanks but this doesnt seem to work in memberinfo...only postbit
da420
02-03-2007, 08:01 PM
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
02-03-2007, 08:25 PM
yeah but when i try to use conditionals for gender it doesnt work in 'postbit_onlinestatus" template.
da420
02-03-2007, 08:27 PM
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
02-03-2007, 08:39 PM
yeah, sorry I thought I was replying to the other thread.
https://vborg.vbsupport.ru/showthread.php?t=137893
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.