MyBB Community Forums

Full Version: Stop Others Viewing Reputation Comments
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I don't mind people viewing how many reputation points another member has, but I was wondering if there was a way to stop people viewing other members reputation comments. I'd like it so only administrators or super moderators could view reputation comments aswell as the member who received the reputation and comment. If I use the below code, will this work in 1.8:

Open reputation.php:

    // If we don't have any reputations display a nice message.
        eval("\$reputation_votes = \"".$templates->get("reputation_no_votes")."\";");

if($mybb->usergroup['cancp'] != "yes" && $mybb->user['uid'] != $mybb->input['uid'])
    $reputation_votes = '<tr>
    <td class="trow1" style="text-align: center;">You are not allowed to view comments.</td>
    $multipage = '';

This code worked in 1.6, but I was wondering if it's OK to use in 1.8. If I use this code, would this allow only administrators, super moderators and the member themselves view reputation comments?
well, it should also work in 1.8 without any issues ..
(2014-09-06, 04:27 AM).m. Wrote: [ -> ]well, it should also work in 1.8 without any issues ..

I shall give it a try and let you know here if I have any issues.