Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
616 views
in Q2A Core by
Rather than a separate field, I  would like to change the title to start with the author name.  I can get the userid by editing the qa-feed.php <title> output to include $question['ouserid'] but how do I get the author name rather than the id?
related to an answer for: Author name in RSS?

1 Answer

+2 votes
by

                        $userid = $question['ouserid'];
                        if (QA_FINAL_EXTERNAL_USERS) {
                            $handles=qa_get_public_from_userids(array($userid));
                            $handle=@$handles[$userid];
                        }
                        else {
                            $useraccount=qa_db_select_with_pending(
                                qa_db_user_account_selectspec($userid, true)
                            );
                            $handle=@$useraccount['handle'];
                        }

by
Thank you once again, NoahY. I needed to add

require_once QA_INCLUDE_DIR.'qa-app-users.php';

after the if() line, and it works perfectly.
...