Avatar Online Status Border Color
#1
Out of curiosity, is this possible to accomplish without the use of a plugin? https://community.mybb.com/thread-101355.html
Reply
#2
You could do most of the styling without a plugin, but you need PHP (plugin, core edit or PHP in templates) to find out the online status of the user.
Btw. you can find the latest version of the OSA plugin for MyBB 1.8 here:
http://doylecc.altervista.org/en/osava.html
Reply
#3
(2017-05-19, 06:47 PM)doylecc Wrote: You could do most of the styling without a plugin, but you need PHP (plugin, core edit or PHP in templates) to find out the online status of the user.
Btw. you can find the latest version of the OSA plugin for MyBB 1.8 here:
http://doylecc.altervista.org/en/osava.html

postbit_classic template

{$post['onlinestatus']}

Gives you the user status based on three templates: postbit_away, postbit_offline and postbit_online

With that in mind you can make postbit avatars borders with colors based on user status, without php in templates, plugins or core edits.
I don't give support on PM.
Reply
#4
(2017-05-21, 03:01 AM)eNvy Wrote: postbit_classic template

{$post['onlinestatus']}

Gives you the user status based on three templates: postbit_away, postbit_offline and postbit_online

With that in mind you can make postbit avatars borders with colors based on user status, without php in templates, plugins or core edits.

Well, I'm officially getting old because this is exactly how the plugin used to do it in earlier versions and I just had forgotten it. There was still PHP required since the avatar dimension setting is not available in the $post['onlinestatus'] templates.
But if you can live without {$useravatar['width_height']}, you can actually do it without PHP.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)