How to show online status beside username on profile as a circle?

Dominik L Posted in Technical Support 1 month ago

is there a hook or something to check the online status of a user so I can show the online status beside username?

Replies
German Michael Zülsdorff Replied 1 month ago

Sorry, forgot the screenshot.
Accomplished by just 3 CSS changes:

 $('.ossn-profile .profile-photo').css({"padding":"0px","border-width":"3px","border-color":"#20c997"});

enter image description here

German Dominik L Replied 1 month ago

Thank you :)

German Michael Zülsdorff Replied 1 month ago

Have a look into the file OssnUser.php .
There's a function isOnline on line 891 to retrieve the member's online state.
And since you're using the Eighteen Male component anyway,
I would think of simply calling isOnline inside of ExtendProfile.php and change the color of the member's photo border accordingly.