vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Turn Off IP's (https://vborg.vbsupport.ru/showthread.php?t=202721)

Daisyboo 01-22-2009 03:05 PM

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!

Dismounted 01-23-2009 04:07 AM

Is there any reason you want to do this? Only staff should have access to viewing IPs.

Daisyboo 01-23-2009 07:29 AM

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.

Dismounted 01-23-2009 08:40 AM

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">
Your mods can always check all the IPs of a user through the Mod CP.

Daisyboo 01-23-2009 09:09 AM

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>

srkrocks 01-23-2009 10:17 AM

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.. ;)

Daisyboo 01-23-2009 10:50 AM

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.

Dismounted 01-23-2009 10:58 AM

Find:
Code:

$post[iplogged]
Replace With:
Code:

<if condition="$thread['forumid'] == 166">$post[iplogged]</if>

srkrocks 01-23-2009 10:59 AM

you need to remove the $post[iplogged]

--------------- Added [DATE]1232715668[/DATE] at [TIME]1232715668[/TIME] ---------------

oh he told you how to do!

;)

Daisyboo 01-23-2009 11:18 AM

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
  • Page Generation 0.01204 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete