Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Topic started by: CerebralJam on March 07, 2009, 04:34:49 PM

Title: Request for mod to allow users to hide their profile stats from viewers
Post by: CerebralJam on March 07, 2009, 04:34:49 PM
We were asked about this, this morning as it is felt invasive of privacy.  Although the results are fairly innocuous, nonetheless individuals ought to have the right to disallow people seeing their posting habits in the same way as they can hide their online status.

It makes no sense to say this person is offline and then show the whole world their most active times of being around.

Is there a possibility that you can build this to allow users to enjoy the freedom of roaming without being tracked by anyone other than website owner/administrators?

Thank you.
Title: Re: Request for mod to allow users to hide their profile stats from viewers
Post by: Major Truth on March 10, 2009, 10:23:38 AM
This is already a part of the regular forum features.

Here is where the option is located.....

Admin Panel
   Members
      Permissions
         Permissions by Membergroup
            General Permissions
               Member Profiles
                  View profile summary and stats
                     Own Profile
                     Any Profile
Title: Re: Request for mod to allow users to hide their profile stats from viewers
Post by: CerebralJam on April 09, 2009, 06:53:19 PM
Thank you for replying and sorry it took me so long to get back to you.

I have seen this and if I uncheck either of these options, not only does it switch off the stats, it switches off access to the profile - is it possible to separate the two so that only the stats are turned off and not all the other information?
Title: Re: Request for mod to allow users to hide their profile stats from viewers
Post by: JBlaze on April 09, 2009, 07:41:58 PM
This will make it so that only admins can see users posts and stats.

/Themes/{forum_theme}/Profile.template.php
Code (find) Select
<td class="windowbg2" colspan="2">';
if (!$context['user']['is_owner'] && $context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $context['member']['id'], '">', $txt[688], '.</a><br />
<br />';
echo '
<a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=showPosts">', $txt[460], ' ', $txt[461], '.</a><br />
<a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=statPanel">', $txt['statPanel_show'], '.</a><br />
<br />
</td>
</tr>


Code (replace with) Select
<td class="windowbg2" colspan="2">';
if (!$context['user']['is_owner'] && $context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $context['member']['id'], '">', $txt[688], '.</a><br />
<br />';
        if (!$context['user']['is_admin'])
echo '
<a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=showPosts">', $txt[460], ' ', $txt[461], '.</a><br />
<a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=statPanel">', $txt['statPanel_show'], '.</a><br />';
        echo '
<br />
</td>
</tr>


NOTE: this is for 1.1.8
Title: Re: Request for mod to allow users to hide their profile stats from viewers
Post by: CerebralJam on April 18, 2009, 10:34:46 AM
Thank you for this - but I am not using 1.1.8.

I am on 2 RC1.