Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
1.9k views
in Q2A Core by
I want to show login user total points after his name into the header. Can anyone please tell me how can I do that?

1 Answer

+4 votes
by
selected by
 
Best answer

Put this in your qa-theme.php file:

        function logged_in()
        {
            $this->content['loggedin']['suffix'] = @$this->content['loggedin']['suffix'].' ('.qa_lang_html_sub('main/x_points',number_format(qa_get_logged_in_points())).')' ;
            
            $this->output_split(@$this->content['loggedin'], 'qa-logged-in', 'DIV');
        }

by
glad to hear :)
by
Sir, when I open my homepage without login it shows as (0 point) can i remove this.
by
May be NoahY will help you or i will get back to you as soon as I will check.
...