View Full Version : Hiding IP address
control1110
09-11-2007, 03:14 AM
Hi, is there a way to hide ip address of certain users. Like certain administators. I don't want my moderators to see my ip but I want them to see others.
ZomgStuff
09-11-2007, 03:31 AM
It's just a simple if condition.
<if condition="is_member_of($bbuserinfo, X)">
Whatever the code is to show IP.
</if>
X being the usergroup ID of administrators.
control1110
09-11-2007, 04:02 AM
wouldn't that only show the ip of the "X" user group then?
Weapon-x
09-11-2007, 12:34 PM
wouldn't that only show the ip of the "X" user group then?
If the person is member of X user group it will show IP addresses to only that user group.
control1110
09-11-2007, 01:41 PM
ok thank you. now does anyone know what the show ip code is so I can find it to add that to it?
Thank you
arindra
09-11-2007, 01:45 PM
look into postbit_ip template
Atakan KOC
09-11-2007, 01:59 PM
You can also use the search option in templates.
control1110
09-22-2007, 12:59 AM
well im at another speed bump here I want my moderators to still see ip's but I want to hide the ip of a few users like myself and my other webmasters.
Dismounted
09-22-2007, 05:08 AM
<if condition="is_member_of($bbuserinfo, X) AND !in_array($post['userid'], array(Y))">
Where X is a comma-separated list of usergroup ids that will see IPs and Y is a comma-separated list of user ids that IPs cannot be viewed.
control1110
09-22-2007, 06:47 AM
thank you. its all working as expected
ok this code works great but I just noticed that it still shows the ip under the who's online page. So I go to the who's online template and try to paste this code in there and it doesn't work. Any suggestions?
Thank You
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.