1 (edited by nibez 2006-09-16 10:29)

Topic: How do i disable so moderators cant see ip adresses.

How could i make so moderators cant view members ip adresses.

Re: How do i disable so moderators cant see ip adresses.

find this around line 246 in viewtopic.php

        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>';

            if ($cur_post['admin_note'] != '')
                $user_info[] = '<dd>'.$lang_topic['Note'].': <strong>'.pun_htmlspecialchars($cur_post['admin_note']).'</strong>';
        }
    }
    // If the poster is a guest (or a user that has been deleted)
    else
    {
        $username = pun_htmlspecialchars($cur_post['username']);
        $user_title = get_title($cur_post);

        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>';

chang to this:

        if ($pun_user['g_id'] < PUN_GUEST)
        {
            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>';

            if ($cur_post['admin_note'] != '')
                $user_info[] = '<dd>'.$lang_topic['Note'].': <strong>'.pun_htmlspecialchars($cur_post['admin_note']).'</strong>';
        }
    }
    // If the poster is a guest (or a user that has been deleted)
    else
    {
        $username = pun_htmlspecialchars($cur_post['username']);
        $user_title = get_title($cur_post);

        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>';

Then to profile.php, line 1192 or there about you see this:

                <div class="inform">
                    <fieldset>
                        <legend><?php echo $lang_profile['User activity'] ?></legend>
                        <div class="infldset">
                            <p><?php echo $lang_common['Registered'] ?>: <?php echo format_time($user['registered'], true); if ($pun_user['g_id'] < PUN_GUEST) echo ' (<a href="moderate.php?get_host='.pun_htmlspecialchars($user['registration_ip']).'">'.pun_htmlspecialchars($user['registration_ip']).'</a>)'; ?></p>

change it to this:

                <div class="inform">
                    <fieldset>
                        <legend><?php echo $lang_profile['User activity'] ?></legend>
                        <div class="infldset">
                            <p><?php echo $lang_common['Registered'] ?>: <?php echo format_time($user['registered'], true); if ($pun_user['g_id'] == PUN_ADMIN) echo ' (<a href="moderate.php?get_host='.pun_htmlspecialchars($user['registration_ip']).'">'.pun_htmlspecialchars($user['registration_ip']).'</a>)'; ?></p>
echo "deadram"; echo; fortune;

3

Re: How do i disable so moderators cant see ip adresses.

Oh got damn Thanks alot it worked perfect!

Re: How do i disable so moderators cant see ip adresses.

big_smile

echo "deadram"; echo; fortune;