Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

show green backcolor for avatar of online user

Ads
lion Offline referral

Posts: 122
Joined: May 2014
Reputation: 0

#1
Member
Hello
How can I add green backcolor for avatar of a online user ?
or black backcolor for an offline user
seo123 Offline referral

Posts: 427
Joined: Mar 2014
Reputation: 16

#2
Senior Member
What template are you talking about? I mean where does this avatar show?

I guess you are talking about postbit template right?

You can use this template conditional.

PHP Code:
<div><if ($post['lastactive'] > (TIME_NOW $mybb->settings['wolcutoff']) && $post['invisible'] != && $post['lastvisit'] != $post['lastactive']) then>online<else>offline</if></div

Replace online with code that will show whenever user is online.
Replace offline with code that will show if the user is offline.
lion Offline referral

Posts: 122
Joined: May 2014
Reputation: 0

#3
Member
Wow
Thank you very much
+1 rep
dude Offline referral

Posts: 134
Joined: Mar 2014
Reputation: 1

#4
Member
Hi what is this for a website?
marcus_avrelius Offline referral

Posts: 2,424
Joined: May 2013
Reputation: 102

#5
Support Team
(06-08-2014 06:59 PM)dude Wrote:  Hi what is this for a website?

This code is called "template conditional" and is used in MYBB forum script that has this plugin installed to show or hide stuff using PHP conditional expressions.

@lion don't forget to remove <div></div> from the code Wink Good job @SEO123





User(s) browsing this thread: 1 Guest(s)