2014-01-08, 10:07 AM
So I added this to reputation.php:
and this to member.php
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
Thanks.
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
Thanks.