1

Topic: Hide my IP's users

Hi, thanks a lot for PunBB, I love it smile

So I just would like to don't show the IP of my users, how can I do (I didn't found in the Admin Panel)

Thanks a lot and excuse my bad english, I'm french smile

See ya'

2

Re: Hide my IP's users

The IPs are not visible to non admins/moderators

Re: Hide my IP's users

is it possible to hide it from mods then? how?

4 (edited by SiCo 2009-05-31 22:31)

Re: Hide my IP's users

Create a plugin and add this to the manifest file

<!--
/**
* Disable IP display for admin and mods
*/ -->
<hook id="vt_row_pre_display"><![CDATA[
            
      unset($forum_page['author_info']['ip']);
            
]]></hook>

All it does is simply unset the array key that contains the IP before it is displayed on the page.

Re: Hide my IP's users

To hide IP from moderators you can use this code in hook "vt_row_pre_display":

if (isset($forum_page['author_info']['ip']) && $forum_user['g_id'] != FORUM_ADMIN)
    unset($forum_page['author_info']['ip']);

Re: Hide my IP's users

Maybe this topic will help you.

7

Re: Hide my IP's users

Slavok wrote:

To hide IP from moderators you can use this code in hook "vt_row_pre_display":

if (isset($forum_page['author_info']['ip']) && $forum_user['g_id'] != FORUM_ADMIN)
    unset($forum_page['author_info']['ip']);

You mean that FORUM_ADMIN is the Moderators group id?

Re: Hide my IP's users

"FORUM_ADMIN" is the id of administrator's group.