Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: Rain Forest on December 15, 2014, 04:26:17 PM

Title: [SMF 2.0.8] Online/offline 'dot' in avatar?
Post by: Rain Forest on December 15, 2014, 04:26:17 PM
I'd like to know the changes I have to make to see an Online/offline dot in the avatar in topic view.

E.g. You can see from here (http://www.deviantart.com/art/Dashboard-Online-Tool-353066107).
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fcb3IQjA.png&hash=9192e0d397ee167f2c80de2dd85d8365b83c11fb)

Also, I found out that @{dhayzon} is using it on his SMF forums Light white bright Theme  (http://www.simplemachines.org/community/index.php?topic=531170.0)
Link to his forums click (http://club-dhayzone.net/index.php/topic,10.msg21)

If anyone could help me out, please :)
Title: Re: [SMF 2.0.8] Online/offline 'dot' in avatar?
Post by: Burke ♞ Knight on December 15, 2014, 04:33:46 PM
Quote from: .Elephant on December 15, 2014, 04:26:17 PM
Also, I found out that @{dhayzon} is using it on his SMF forums Light white bright Theme  (http://www.simplemachines.org/community/index.php?topic=531170.0)
Link to his forums click (http://club-dhayzone.net/index.php/topic,10.msg21)

If anyone could help me out, please :)

Well, if you found someone that has it, why not ask them?
Title: Re: [SMF 2.0.8] Online/offline 'dot' in avatar?
Post by: Hristo on December 15, 2014, 05:32:32 PM
Reminds me of Suki's On / Off Avatar Frame mod http://www.simplemachines.org/community/index.php?topic=284589.0 but apparently it is no longer available.
Title: Re: [SMF 2.0.8] Online/offline 'dot' in avatar?
Post by: Mstcool on December 16, 2014, 03:14:28 AM
^ She moved all her mods to her github account (or something like that), so it might still be there. :P
Title: Re: [SMF 2.0.8] Online/offline 'dot' in avatar?
Post by: Hristo on December 16, 2014, 04:36:09 AM
Yes, but I could not find it there too unless I miss something.
https://github.com/MissAllSunday?tab=repositories
Title: Re: [SMF 2.0.8] Online/offline 'dot' in avatar?
Post by: Deaks on December 17, 2014, 08:31:30 PM
http://missallsunday.com/index.php?topic=38.0

like that one?
Title: Re: [SMF 2.0.8] Online/offline 'dot' in avatar?
Post by: Suki on December 17, 2014, 08:40:45 PM
http://missallsunday.com/Downloads/OnOffAvatar.zip

It may or may not be what you are looking for.  Adding a dot on people's avatars depending on their online status should be easy enough to do, a source edit to inject some custom css code.
Title: Re: [SMF 2.0.8] Online/offline 'dot' in avatar?
Post by: Rain Forest on December 25, 2014, 02:23:55 PM
Quote from: ♞ Burke Knight ♞ on December 15, 2014, 04:33:46 PM
Quote from: .Elephant on December 15, 2014, 04:26:17 PM
Also, I found out that @{dhayzon} is using it on his SMF forums Light white bright Theme  (http://www.simplemachines.org/community/index.php?topic=531170.0)
Link to his forums click (http://club-dhayzone.net/index.php/topic,10.msg21)

If anyone could help me out, please :)

Well, if you found someone that has it, why not ask them?

I did but he refuses to give me the answer :)
Title: Re: [SMF 2.0.8] Online/offline 'dot' in avatar?
Post by: Antes on December 25, 2014, 07:00:28 PM
Open Display.template.php

Code (Find) Select
', $message['member']['avatar']['image'], '
Code (Add Before) Select
', $modSettings['onlineEnable'] ? '<img src="'. $message['member']['online']['image_href'].'" alt="'. $message['member']['online']['text'].'" class="dot_avatar" />' : '','

Open Index.css
Code (Add to End) Select
.dot_avatar {position: absolute;}