• 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

How would I disable showing the offline status? Only show online or invisible?

Somewhere in this thread is a link to css styling... I added the following to extra.css template:

Code:
.UserOnline, .UserOffline, .UserOnlineInvisible
    {
        font-family: arial black;
        text-transform: uppercase;
        text-shadow: 0px 1px 1px #000000;
        font-size: 11px;
        color: #ffffff;
        background: @primaryLight url('@imagePath/xenforo/gradients/category-23px-light.png') repeat-x top;
        padding: 1px 5px;
        margin: -5px;
        border: 1px solid @primaryLight;
        border-radius: 3px;
        border-top-right-radius: 0px;
        display: block;
        float: inherit;
        position: relative;
        box-shadow: 1px 1px 3px rgba(0,0,0, 0.25);
    }

        .UserOnline span, .UserOffline span, .UserOnlineInvisible span
        {
            background-color: @primaryLight;
            border-top-right-radius: 3px;
            position: absolute;
            top: -4px;
            right: -1px;
            width: 5px;
            height: 4px;
        }

.UserOffline {display: none !important;}

The very last line is code that will disallow the showing of offline status :)

J.
 
To get the green dot I posted above, just empty the span like so: <span class="userOnline"></span>

Hi Brogan,

I´m playing around with xF now for a few days, to get familiar with it. Are you referring to line 42
Code:
    <template title="message_user_online" version_id="3" version_string="1"><![CDATA[<span class="user{$userStatus.class}">{$userStatus.text}</span>]]></template>
?

I´ve changed that to your <span class="userOnline"></span> and added the EXTRA.css part. What happens is, that all users are marked with a green dot as Online - and for sure, I´m the online one who is. Have I missed something..?

Regards,
Marv.
 
I don't actually use this add-on.

If you follow the instructions in my post and assuming the add-on hasn't changed significantly, they should still work.

You definitely shouldn't be editing the .xml file though, which is what it appears you are doing.
 
Oups, heck - better to revert it back than. But may be you can remember how you did that trick? Was a nice one to show a discret status indicator without disturbing the visitor to much.

Edit: never mind, I´ve read on beyond page 4 now.
 
It doesn't work for version 1.1 :(

Code:
Fatal error: Class 'Asp_OnlineStatus_Model_AspPost' not found in /home/a9307059/public_html/library/XenForo/Application.php(396) : eval()'d code on line 1

EDIT: I don't know how, but now is working. Sorry
 
Installed and works but shows everyone online when I know for a fact they aren't (my other accounts for example.)
 
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;
}
When I log out the dot does not disappear. How come?
 
Top Bottom