Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
306 views
in Q2A Core by

QA instalation with Wordpress in a /qa directory

When I access the user page from the user list http://leakygutresearch.com/qa/users which works OK

it generates the correct url to the user page http://leakygutresearch.com/qa/user/martin

when I acces it from the questions page http://leakygutresearch.com/qa/questions

or the individual question page http://leakygutresearch.com/qa/26/what-are-the-qualifications-of-those-answering-questions

it resolves to http://leakygutresearch.com/user/martin which gives me a 404 error

I have experimented a lot with htaccess with no success probably due to server (or my knowledge) limitations.

Is there some other place (database , php files or elsewhere) where the correction could be made?

Q2A version: 1.5.2
by
this function in qa-app-format.php needs to be rewritten in order to include "qa/" at the beginning of the usershtml. Can anyone help?

    function qa_who_to_html($isbyuser, $postuserid, $usershtml, $ip=null, $microformats=false)
/*
    Return array of split HTML (prefix, data, suffix) to represent author of post
*/
    {
        if (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }
       
        if (isset($postuserid) && isset($usershtml[$postuserid])) {
            $whohtml=$usershtml[$postuserid];
            if ($microformats)
                $whohtml='<SPAN CLASS="vcard author">'.$whohtml.'</SPAN>';

        } elseif ($isbyuser)
            $whohtml=qa_lang_html('main/me');

        else {
            $whohtml=qa_lang_html('main/anonymous');
           
            if (isset($ip))
                $whohtml=qa_ip_anchor_html($ip, $whohtml);
        }
           
        return qa_lang_html_sub_split('main/by_x', $whohtml);

Please log in or register to answer this question.

Welcome to the Q&A site for Question2Answer.

If you have a question about Q2A, please ask here, in English.

To report a bug, please create a new issue on Github or ask a question here with the bug tag.

If you just want to try Q2A, please use the demo site.

Categories

...