Topic: Hide my IP's users
Hi, thanks a lot for PunBB, I love it ![]()
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 ![]()
See ya'
Unfortunately no one can be told what PunBB is - you have to see it for yourself.
You are not logged in. Please login or register.
Hi, thanks a lot for PunBB, I love it ![]()
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 ![]()
See ya'
The IPs are not visible to non admins/moderators
is it possible to hide it from mods then? how?
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.
Last edited by SiCo (2009-05-31 22:31:04)
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']);Maybe this topic will help you.
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?
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.