Page 1 of 11
uCoz Community » uCoz Modules » Forum » User status used with Image
User status used with Image
mihai1928
Posts: 5
Reputation: 0

Message # 1 | 1:14 AM
<?if($USER_STATUS$='Online')?>

Is this correct?
I want to use this conditional to show an image next to the user's name, green if he's online and red if he's offline.
But for some reason it does not show. Is this the correct code?
Xayaan
Posts: 558
Reputation: 13

Message # 2 | 10:37 AM
mihai1928, Yes, The conditional operator for showing Offline and Online status is correct. However, It is set to text form of representation. You need to link it to an picture, for example a picture of a red dot or a green dot to show it as a picture. This can be done by editing the CSS. On which section do you want the online status to be seen?

Click here for replacing the offline/online on forum.

My Skype : xayan123 | My Twitter : @Officialxayaan
uID : - Zayaan Ibrahim | Need a professional design? Check out my Portfolio
Zobos
Posts: 2
Reputation: 0

Message # 3 | 8:44 PM
I have the theme times pick.

When I use the code:

<?If ($USER_STATUS$ = 'Online')?><Div class = "status block"><img src = "image online"></ div><?Else?><Div class = "status block"><img src = "image offline"></ div><?endif?>

Then it does not work ... he is ALWAYS the oflline attend. and if I remove the offline part, it displays nothing.

.nd with me there in the CSS template to participate .statusonline and not so on. so I wonder how that can go.
Post edited by Zobos - Wednesday, 2016-05-11, 8:51 PM
Sunny
Posts: 9296
Reputation: 456

Message # 4 | 11:59 AM
Zobos, user's status isn't updated immediately. Did you try to wait for 10-15 minutes?
I'm not active on the forum anymore. Please contact other forum staff.
Zobos
Posts: 2
Reputation: 0

Message # 5 | 1:37 PM
hmm, no not
I just thought if you're online anyway, once the online sign displays
but it was from the outset ONLY the offline character, and when I removed the else part NOTHING has been displayed
uCoz Community » uCoz Modules » Forum » User status used with Image
Page 1 of 11
Search: