vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Mini-Hack: Remove Search IP Addresses Option from Mod CP (https://vborg.vbsupport.ru/showthread.php?t=60050)

Erwin 01-10-2004 10:00 PM

Mini-Hack: Remove Search IP Addresses Option from Mod CP
 
This is a simple hack requested by Cerebro here:
https://vborg.vbsupport.ru/showpost....52&postcount=6

Too simple really.

Open modcp/index.php:

Find:

PHP Code:

  construct_nav_option($vbphrase['search_ip_addresses'], 'user.php?do=doips'); 

And DELETE it.

Done! :)

FleaBag 01-11-2004 02:08 PM

Simple but effective! Never liked the idea of Mods having access to IP's anyway. :)

Mike Gaidin 01-11-2004 03:19 PM

It didn't work for me. I received a parse error.

Erwin 01-11-2004 09:24 PM

Quote:

Originally Posted by Mike Gaidin
It didn't work for me. I received a parse error.

You didn't copy everything in that window. :) You need to delete the ; bits too. It should work.

the3jams 01-25-2004 06:29 PM

Doesn't that just remove the link for ip searching? They would still be able to do ip searches if they know to run user.php?do=doips.

duncan99 01-26-2004 12:35 PM

To do the way people used to.

In the modcp/index.php find :

PHP Code:

if (can_moderate(0'canviewips'))
    {
        
$canuser true;
        
construct_nav_option($vbphrase['search_ip_addresses'], 'user.php?do=doips');
    }
    if (
$canuser)
    {
        
construct_nav_group($vbphrase['users']);
        
construct_nav_spacer();
    } 

Replace with this :
PHP Code:

if (can_moderate(0'canviewips'))
    {
        
$canuser true;
        
//construct_nav_option($vbphrase['search_ip_addresses'], 'user.php?do=doips');
    
}
    if (
$canuser)
    {
        
//construct_nav_group($vbphrase['users']);
        
construct_nav_spacer();
    } 

Thats it ! Hope this help.


All times are GMT. The time now is 07: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.02563 seconds
  • Memory Usage 1,727KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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