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

When I use q2a as an standalone installation, clciking on username takes me to the following link:

sitename/index.php?qa=user&qa_1=username

But when I use it with wordpress integration, it takes to

sitename/user/username

And give a 404 error message.

I tried to change my .htaccess file as described in this question, but no change.

Q2A version: 1.6.2

1 Answer

+2 votes
by
 
Best answer

Solved this by editing qa-external-users-wp.php file in qa-include folder.

 

function qa_get_logged_in_user_html($logged_in_user, $relative_url_prefix)
{
    $publicusername=$logged_in_user['publicusername'];
        
    return '<a href="'.htmlspecialchars($relative_url_prefix.'index.php?qa=user&qa_1='.urlencode($publicusername)).
        '" class="qa-user-link">'.htmlspecialchars($publicusername).'</a>';
}

by
Really thank you !
by
But problem exists yet in questions list! When clicking on user name who asks a question . See Qa.qtips.ir
...