vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Hide administrators IP address (https://vborg.vbsupport.ru/showthread.php?t=216485)

whisperswansea 06-18-2009 06:48 PM

Hide administrators IP address
 
Is it possible to hide admin IP address from who's online?

Thank you

Outbackmark 06-18-2009 09:18 PM

Go to your whoisonline template and find
Code:

        <if condition="$show['ip']"><td class="thead">$vbphrase[ip_address]</td></if>
and replace it with
Code:

<if condition="$bbuserinfo['usergroupid'] == '6'"><td class="thead">$vbphrase[ip_address]</td></if>
This should remove the entire IP field for all except Admin. If your Admin usergroup is not 6 change it in the second line of code.

whisperswansea 06-19-2009 04:16 AM

many thanks...much appreciated

Outbackmark 06-19-2009 04:39 AM

Pleasure!

algert 06-19-2009 05:50 AM

Quote:

Originally Posted by Outbackmark (Post 1832214)
Go to your whoisonline template and find
Code:

        <if condition="$show['ip']"><td class="thead">$vbphrase[ip_address]</td></if>
and replace it with
Code:

<if condition="$bbuserinfo['usergroupid'] == '6'"><td class="thead">$vbphrase[ip_address]</td></if>
This should remove the entire IP field for all except Admin. If your Admin usergroup is not 6 change it in the second line of code.

Hey mate i tried this, and i made a new mod account an check who's online but it still show my(admin acc)'s IP addres. :S

Outbackmark 06-19-2009 06:39 AM

That will teach me to post without coffee!!
Also open the whoisonlinebit template
Find
Code:

<if condition="$show['ip']">
Replace with
Code:

<if condition="$bbuserinfo['usergroupid'] == '6'">
And you are done.

algert 06-20-2009 07:36 AM

Quote:

Originally Posted by Outbackmark (Post 1832495)
That will teach me to post without coffee!!
Also open the whoisonlinebit template
Find
Code:

<if condition="$show['ip']">
Replace with
Code:

<if condition="$bbuserinfo['usergroupid'] == '6'">
And you are done.

Thanks but this is certainly not what i was looking for, I was looking for something which disable only admin's IP for mods/smods, but they can view the rest, this thing disables all ip address for mods/smods in whos online but admin can view it in whos online.

but thanks anyway

raja811 06-20-2009 10:27 AM

thank you


All times are GMT. The time now is 11:02 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.02109 seconds
  • Memory Usage 1,723KB
  • 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
  • (8)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete