Topic: prevent moderators to see ip?

How do I prevent my moderators to se the users ip?

2 (edited by Craig 2007-01-15 00:59)

Re: prevent moderators to see ip?

In viewtopic.php, find:

if ($pun_user['g_id'] < PUN_GUEST || $pun_user['g_global_moderation'])

(There should be two instances)
Change both to:

if ($pun_user['g_id'] < "2"

Quick browse through, but I think that should do it :S

3 (edited by guardian34 2007-01-15 04:08)

Re: prevent moderators to see ip?

I think Craig has the right idea, but 'g_global_moderation' is not in the standard viewtopic.php file?

Open: viewtopic.php

Find:

        if ($pun_user['g_id'] < PUN_GUEST)
        {
            $user_info[] = '<dd>IP: <a href="moderate.php?get_host='.$cur_post['id'].'">'.$cur_post['poster_ip'].'</a>';

Replace with:

        if ($pun_user['g_id'] == PUN_ADMIN)
        {
            $user_info[] = '<dd>IP: <a href="moderate.php?get_host='.$cur_post['id'].'">'.$cur_post['poster_ip'].'</a>';

Edit: Like Craig said, this appears twice; Just above and below this comment:

    // If the poster is a guest (or a user that has been deleted)