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.
Try to edit askbot/skins/default/templates/user_profile/user_stats.html, replacing
{% include "user_profile/users_questions.html" %}
<a name="answers"></a>
by
{% include "user_profile/users_questions.html" %}
{% if request.user == view_user or request.user|can_moderate_user(view_user) %}
<a name="answers"></a>
and
<br/>
<a name="votes"></a>
by
<br/>
{% endif %}
<a name="votes"></a>
I haven't tested it, but normally it'll do what you want.
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2012-08-08 16:08:25 -0500
Seen: 47 times
Last updated: Aug 09 '12
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.