Ask Your Question

How to make answers private on user's profile

asked 2012-08-08 16:08:25 -0600

kintali's avatar

Askbot shows the following information on the user's profile : questions, answers, votes, tags, badges. In my website (TrueShelf) all the answers are private. I want to make the list of answers on the profile page private i.e., only the user (say user A) can see his list of answers. If the user is not A then he should only see the questions, votes, tags and badges. But not answers.

  • How to make the answers list private on the user profile page ?
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-08-09 02:57:57 -0600

bgenevaux's avatar

Try to edit askbot/skins/default/templates/user_profile/user_stats.html, replacing

{% include "user_profile/users_questions.html" %}
<a name="answers"></a>


{% include "user_profile/users_questions.html" %}
{% if request.user == view_user or request.user|can_moderate_user(view_user) %}
<a name="answers"></a>


<a name="votes"></a>


{% endif %}
<a name="votes"></a>

I haven't tested it, but normally it'll do what you want.

edit flag offensive delete link more


Awesome. Thanks.

kintali's avatar kintali  ( 2012-08-10 01:55:23 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2012-08-08 16:08:25 -0600

Seen: 239 times

Last updated: Aug 09 '12