Hi all,
I followd the suggestion in that question
how-to-disable-the-viewing-of-user-profiles
to show user profiles to registered users only.
I'm on 1.8.5 and it seem that the plugin is not fully functional (any more?).
I allready put an issue on github but wanted to place the question here too.
What is working:
What ist not working:
I guess the error is in function qa_page_routing(). $l_routing does not (or: no longer?) have entries 'users' or 'user/' so overriting has no effect.
Any idea how to fix that issue?
Thanks!
There are a few things to note.
1. The plugin that is linked in the link you posted in your question is this one: https://github.com/Kuddus95/lock-user-profile. The link you are posting in your comment is this one: https://github.com/pedjas/q2a-hide-users-list. That's why I said the behavior you mentioned in the question can't be achieved with the original plugin.
2. You seem to be using an unreleased version of Q2A. You downloaded the code from the dev branch in the repository. You should use either the master branch or navigate to https://github.com/q2a/question2answer/releases and download the latest one.
Download the right version of Q2A and install it again. Then make all tests again.
3. I believe you will still face one more issue. I'd remove function qa_get_avatar_blob_url() and replace it with the function below:
function qa_get_user_avatar_source($flags, $email, $blobId) { return qac_approved_user() ? qa_get_user_avatar_source_base($flags, $email, $blobId) : null; }
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.