vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How can I remove IP Search from ModCP NavBar? (https://vborg.vbsupport.ru/showthread.php?t=265465)

Sage Knight 06-19-2011 03:02 PM

How can I remove IP Search from ModCP NavBar?
 
I'm aware that we can restrict IP address viewing, but still I want to go a step ahead and remove the IP Search option Navigation from the ModCP templates. Could anyone please help me on this?

LifesGreatestGift 06-19-2011 03:09 PM

Open file /modcp/index.php

Find:

Code:

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

Replace with:

Code:

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


Sage Knight 06-19-2011 04:05 PM

Novice questions sir; I have to edit the file via FTP? Or is via The AdminCP/Styles & Templates/

HMBeaty 06-19-2011 04:07 PM

You would edit it via ftp

Sage Knight 06-19-2011 04:09 PM

I see thank you, last question for the day, where else I'll need to edit the templates so that none of the moderators can even see any sort of IP addresses options?

HMBeaty 06-19-2011 04:12 PM

You don't have to edit ANY templates. Just change their usergroup options so they can't view a users ip address

Sage Knight 06-19-2011 04:14 PM

I'm aware of that, but my mods will moan for no reason, so that's why;D

HMBeaty 06-19-2011 04:20 PM

So you would rather edit the templates vs turning the option off for them to view it?!

Sage Knight 06-19-2011 04:30 PM

Call me crazy but both;P

It's actually due to site policy and also due to the fact we have a lot of staff shuffles. Our admins could view IPs anyways as they're more trustworthy.

LifesGreatestGift 06-19-2011 04:31 PM

You only need to use ftp to remove the option in modcp, everything else can be done with templates, but unless you use conditionals, it will remove it from admins as well. Best option is to disable it with permissions.


All times are GMT. The time now is 10:04 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.01080 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)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