MyBB Community Forums

Full Version: Reputation only viewable by user and admins
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I added this to reputation.php:

if($uid != $mybb->user['uid'] && $mybb->user['usergroup'] != 4)
{
    error_no_permission();
} 

and this to member.php

if($memprofile['uid'] == $mybb->user['uid'] || $mybb->user['usergroup'] == 4)
{
    $details = "[<a href=\"reputation.php?uid={$memprofile['uid']}\">{$lang->reputation_details}</a>]";
} 

The member.php part works as a normal member can't see the [Details] link in a members profile. However, as a normal member, I can still view other people's reputation comments. Is the code wrong?

Nevermind, used some different code and it seems to have worked Smile

Thanks.
i would love to know the answer to this