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'
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.3 troubleshooting → 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'
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.
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?
PunBB Forums → PunBB 1.3 troubleshooting → Hide my IP's users
Powered by PunBB, supported by Informer Technologies, Inc.