Panel
PowerQA is a state of the art discussion software that makes online discussions fun. It's simple, fast, and powerful.
Fighter
webmaster
+1 vote
Notice 794 views

Role badge added

Thanks Vabells for your excellent plugin. I added "role badge" in Base theme. This badge is added below post avatar in question list OR question page.  Please confirm with clearing browser's cache.

This is equipped as core feature. Your plugin will have the sense to strengthen this feature.

image

by webmaster asked Oct 11, 2015 in Themes

2 Comments

Some suggestions on role badge in core
If  special users turn off their avatar, their roll is not displayed.
I tried

public function owner_avatar($post) {
        if (isset($post['post_avatar']) || $post['post_avatar'] == null) {
            if($post['raw']['level'] >= QA_USER_LEVEL_EXPERT)
                $this->output('<div class="qa-owner-avatar qa-owner-role qa-owner-role-'.$post['raw']['level'].'">');
            else
                $this->output('<div class="qa-owner-avatar"">');
            $this->output(
                $post['post_avatar'],
                '</div>'
            );
        }
    }
it worked so maybe you should add it in core?
> If special users turn off their avatar, their roll is not displayed.
Yes. Since role badge is dependent on avatar, when Avatar is not displayed is not also display role badge. So, your plugin is useful.

Please log in or register to add a comment.

Please log in or register to answer this question.

1 Answer

Expert
Vanbells
+1 vote
This feature has been tested and it works perfect!

Now my plugin will be easy to make
by Vanbells answered Oct 11, 2015

Please log in or register to add a comment.

Welcome to PowerQA. PowerQA is a new discussion software (not OSS). Here is a community for PowerQA developers. Current stable version is V1.9.4. It is enhanced day by day.

Statistics

  • 338 questions
  • 276 answers
  • 480 comments
  • 100 users

Post types

...