Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
in Q2A Core by
Hi Everybody!

How can I change the home page listing? I want to show the user name on the answered list items (xy answered z hours ago in the w category BY USERNAME), but ONLY if this list item is an answer event, the questions are anonymous, so no user name is visible.

I tried in the qa-theme.php file with this:

    function post_meta($post, $class, $prefix=null, $separator='<br/>')


        foreach ($order as $element)
            switch ($element) {
                case 'what':
                    $this->post_meta_what($post, $class);
                case 'when':
                    $this->post_meta_when($post, $class);
                case 'where':
                    $this->post_meta_where($post, $class);

            if($post['raw']['type'] == 'A' || $post['raw']['type'] == 'C'){
                $this->post_meta_who($post, $class);



... but this is only working is I click on a question, not for the index page.

Can someone help me out, please? :)

Thank you very much!
Q2A version: 1.6.3

Please log in or register to answer this question.