![]() |
Turn Off IP's
Is it or can it be possible to turn off the IP button in one forum? Or hide the button or stop it being clickable?
I really could do with this! Thanks! |
Is there any reason you want to do this? Only staff should have access to viewing IPs.
|
Yep they do, but I have an anon forum and I want to stop ips showing in that forum, otherwise its not really anon :)
So wondered if there was a way of stopping the button showing or being clickable in just that forum. |
Hiding the button is a trivial task. Just edit the postbit tempalte and add a conditional around the button.
Code:
<if condition="$thread['forumid'] == X"> |
Ooh fantastic!
Could you give me a little help in what code I am looking for please? I've found this bit of code but not sure where to add it. $post[iplogged] <if condition="$show['inlinemod']"> <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" /> </if> |
just add underneath it it should work if I am not wrong! even if you are wrong you will know you are wrong that way you learn lol.. ;)
|
Hmmm I'm not doing it right as its still showing.
Here's what my code looks like now... $post[iplogged] <if condition="$show['inlinemod']"> <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" /> </if> <if condition="$thread['forumid'] == 166"> </if> I also added it in my postbit_legacy in case but its still showing. |
Find:
Code:
$post[iplogged] Code:
<if condition="$thread['forumid'] == 166">$post[iplogged]</if> |
you need to remove the $post[iplogged]
--------------- Added [DATE]1232715668[/DATE] at [TIME]1232715668[/TIME] --------------- oh he told you how to do! ;) |
Sorry, I must be doing something wrong! Its still showing,
Here's my code now... <if condition="$thread['forumid'] == 166">$post[iplogged]</if> <if condition="$show['inlinemod']"> <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" /> </if> |
All times are GMT. The time now is 10:06 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|