• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Online Status Indicator within Threads

This is mine -

Code:
<span class="userOnline"></span>

Try this:

HTML:
<span class="user{$userStatus.class}"></span>

That will require you to set different classes for userOnline, userOffline, and userOnline-Invisible (I think that last one is right, I'm at work right now).
 
See my post here for the ribbon: http://xenforo.com/community/threads/show-user-is-online.8236/page-7#post-127330

For the dot do this:
message_user_online
Code:
<span class="user{$userStatus.class}"></span>

EXTRA.css
Code:
/* Online indicator */
.userUserOnline {
position: absolute;
right: 3px;
top: 3px;
height: 6px;
width: 6px;
border-radius: 3px;
background-color: #009900;
}

.userUserOnlineInvisible {
position: absolute;
right: 3px;
top: 3px;
height: 6px;
width: 6px;
border-radius: 3px;
background-color: #CC0000;
}
 
Grrrrrreat thanks Brogan. I don't follow the other thread as I don't use the ribbons.

I wish this was all a plugin!
 
Grrrrrreat thanks Brogan. I don't follow the other thread as I don't use the ribbons.

I wish this was all a plugin!

Next version, I think, is going to have a default implementation that looks a little bit better than what's presented.

The problem is, control freaks people are always going to want to change it. ;)
 
Next version, I think, is going to have a default implementation that looks a little bit better than what's presented.

The problem is, control freaks people are always going to want to change it. ;)

I like what is presented just fine Arik. I think you've done a good job with this. Just needed a bit of help fine-tuning it is all. :)
 
Next version, I think, is going to have a default implementation that looks a little bit better than what's presented.

The problem is, control freaks people are always going to want to change it. ;)
True.
You're never going to be able to please everyone.

Personally I think the add-on works great and now caters for all statuses and is in synch with the forum status permissions. Thanks for your work on it.

I tried the ribbon indicator but found it overkill which is why I just have a small green dot for online, a red dot for hidden and nothing for offline.
It's discreet but noticeable at the same time.
 
True.
You're never going to be able to please everyone.

Personally I think the add-on works great and now caters for all statuses and is in synch with the forum status permissions. Thanks for your work on it.

I tried the ribbon indicator but found it overkill which is why I just have a small green dot for online, a red dot for hidden and nothing for offline.
It's discreet but noticeable at the same time.
I completely agree. It's perfect the way it is.

Now if we could just make it a plugin. :p
 
To get the green dot I posted above, just empty the span like so: <span class="userOnline"></span>

And then add your custom css to EXTRA.css like this:
HTML:
.userOnline {
position:absolute;
right:3px;
top:3px;
height:6px;
width:6px;
border-radius:3px;
background-color: #009900;
}

Like the green dot but please explain to a n00bish one the comment "just empty the span like so: <span class="userOnline"></span>"
 
Literally as it is posted Rob, just enter the css with nothing in the span (i.e. empty):
<span class="userOnline"></span>

So don't have any text stating Online for example: <span class="userOnline">Online</span>
 
A question with this. I imported an old board that had some old users whose accounts were set to 'Guests'. They show as online now if you see one of their posts. Any way around this?
 
A question with this. I imported an old board that had some old users whose accounts were set to 'Guests'. They show as online now if you see one of their posts. Any way around this?

We can likely find a way around it. What do you want the experience to be?
 
I would prefer them not to show online at all. The problem is that since there's Guests online and their accounts are Guest accounts, they show online.
 
Back
Top Bottom