vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Hide Admin IP (https://vborg.vbsupport.ru/showthread.php?t=304760)

Dave 01-20-2015 03:40 PM

Quote:

Originally Posted by woodmj (Post 2533530)
Hi, I was just wondering if there was a way to use this code to hide the Admin's IP in Who's Online?

That script wont work for the who's online script.
You should hook into online_complete with something like:

PHP Code:

$hide_user_ids = array(123); 

foreach(
$onlinebits as $key=>$val){
    if(
in_array($val['userid'], $hide_user_ids)){
        
$onlinebits[$key]['host'] = '1.1.1.1';
        
$onlinebits[$key]['host_encoded'] ='1.1.1.1';
    }



woodmj 01-20-2015 05:01 PM

Thanks Dave. Works great :-)

Vaira 02-02-2015 11:21 AM

Quote:

Originally Posted by Justinphx (Post 2529100)
Thanks Ozzy. I was just looking into that this afternoon and thought that would do the trick. As always, thanks for the assistance. Works like a charm.

It doesn't work here! The first post at a new thread always gets the real IP, the second post not....do I have to change the code somewhere? I have used the same code @ threaddata_presave

Update: It works when using the hook location :threadfpdata_presave :)

zorcocuq 04-10-2015 08:16 PM

Thank you @semprot

ukdalai 06-13-2015 04:03 PM

ok so you can replace the ip with a dummy, but can you stop it adding the ip completely for an array of users say:
Code:

$hide_user_ids = array(1, 2, 3);
so, i dont want the ip displayed for any posts for admins, or given users

Craig

ukdalai 06-14-2015 09:49 AM

i have it working, but i think the ip will still be shown in modcp, is there a way to just not log ip's for given users.

Craig

the one 12-01-2015 07:16 AM

This works but when i view whosonline i can still see my normal ip address.

I dont want to turn off who can view ip address for super moderators but how do i hide my ip address from them

cheers


All times are GMT. The time now is 06:37 AM.

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.01216 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_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
  • (7)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