vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Hide some access in modcp (https://vborg.vbsupport.ru/showthread.php?t=233314)

albrens 01-16-2010 10:00 PM

Hide some access in modcp
 
1 Attachment(s)
Hello,

There are some access in modcp. So, I'll explain how to hide?

I'll explain it is:
  • [Edit Reputation]
  • [View Profile]

Or hide some things from the View Profile:
  • Email
  • Birth day
  • IP Address
  • Usergroup Options
  • Invisible

Open file:
modcp/user.php

1- [Edit Reputation]

Find This
Code:

$caneditreputation = iif(can_moderate(0, 'caneditreputation') AND $vbulletin->options['reputationenable'], true);
Replace with This
Code:

//$caneditreputation = iif(can_moderate(0, 'caneditreputation') AND $vbulletin->options['reputationenable'], true);

2- [View Profile]
If you want to hide the full is no need to modify the steps from 3 to 7

Find This
Code:

$canviewprofile = can_moderate(0, 'canviewprofile');
Replace with This
Code:

//$canviewprofile = can_moderate(0, 'canviewprofile');
3- Email

Find This
Code:

print_input_row($vbphrase['email'], 'user[email]', $user['email'], 0);
Replace with This
Code:

//print_input_row($vbphrase['email'], 'user[email]', $user['email'], 0);
4- Birth day

Find This
Code:

print_time_row($vbphrase['birthday'], 'birthday', $user['birthday'], 0, 1);
Replace with This
Code:

//print_time_row($vbphrase['birthday'], 'birthday', $user['birthday'], 0, 1);
5- IP Address

Find This
Code:

print_input_row($vbphrase['ip_address'], 'user[ipaddress]', $user['ipaddress']);
Replace with This
Code:

//print_input_row($vbphrase['ip_address'], 'user[ipaddress]', $user['ipaddress']);
6- Usergroup Options

Find This
Code:

print_table_header($vbphrase['usergroup_options']);
        print_chooser_row($vbphrase['primary_usergroup'], 'user[usergroupid]', 'usergroup', $user['usergroupid']);
        print_membergroup_row($vbphrase['additional_usergroups'], 'membergroup', 0, $user);
        print_table_break('', $INNERTABLEWIDTH);

Replace with This
Code:

//print_table_header($vbphrase['usergroup_options']);
//        print_chooser_row($vbphrase['primary_usergroup'], 'user[usergroupid]', 'usergroup', $user['usergroupid']);
//        print_membergroup_row($vbphrase['additional_usergroups'], 'membergroup', 0, $user);
//        print_table_break('', $INNERTABLEWIDTH);

invisible 7-

Find This
Code:

print_yes_no_row($vbphrase['invisible_mode'], 'options[invisible]', $user['invisible']);
Replace with This
Code:

//print_yes_no_row($vbphrase['invisible_mode'], 'options[invisible]', $user['invisible']);

Good luke :)

Yasser Suliman

steve1966 01-17-2010 07:57 AM

thanks

Dr.osamA 01-20-2010 01:55 AM

?????? ???? ????

thanxxx

installed
________
Volcano vaporizer

albrens 01-26-2010 03:11 AM

Quote:

Originally Posted by steve1966 (Post 1957978)
thanks

welcome steve1966 :)

Quote:

Originally Posted by Dr.osamA (Post 1960799)
مشكوور اخوي ياسر

thanxxx

installed

العفو عزيزي

welcome Dr.osamA :)

as7apcool 01-26-2010 04:05 AM

thanks 4 this work

Nocturnal222 02-17-2011 07:38 AM

is this working on vb 4.1.0 lvl2?
I was wondering if i can modify the search ip address.. like they cannot search ip address of the admins... Possible?

Merenguista 02-19-2011 08:09 AM

شكرا أخي ..

Nocturnal222 03-07-2011 02:19 AM

how about removing ip search on mod panel?


All times are GMT. The time now is 01:14 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.01665 seconds
  • Memory Usage 1,735KB
  • 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
  • (14)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