Avatar Online Status Border Color
#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


Messages In This Thread
Avatar Online Status Border Color - by Flawless - 2017-05-19, 06:09 PM
RE: Avatar Online Status Border Color - by eNvy - 2017-05-21, 03:01 AM
RE: Avatar Online Status Border Color - by doylecc - 2017-05-21, 07:30 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)