Not Solved [How To?] Add border to user's avatar based on their title
Not Solved
Hello! Can someone advise if there is a way to add custom colored borders to user's avatar based on their title? 
Let's say I have a member with 0 posts and their title is Newbie so their border is gray, another member with 50 posts called Active Poster - has a red border. I need to show those colored borders on index, postbit, and custom PHP pages. 

I have tried playing with template conditionals by creating a code something like 

<if $mybb->user['title'] != Newbie then> 
<img class="avatarborder" src="{$mybb->user['avatar']}" alt="">


.avatarborder { border: 5px solid #555; }


I am not sure if I am using the correct variables, but it doesn't seem like it's working? I specifically want to display different color borders based on user's titles by their posts/posted threads activity. Also, any advice would be appreciated.

Forum Jump:

Users browsing this thread: 1 Guest(s)