Log in

View Full Version : Mini Mods - Hide some access in modcp


albrens
01-16-2010, 10:00 PM
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
$caneditreputation = iif(can_moderate(0, 'caneditreputation') AND $vbulletin->options['reputationenable'], true);


Replace with This

//$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
$canviewprofile = can_moderate(0, 'canviewprofile');

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

3- Email

Find This
print_input_row($vbphrase['email'], 'user[email]', $user['email'], 0);

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

4- Birth day

Find This
print_time_row($vbphrase['birthday'], 'birthday', $user['birthday'], 0, 1);

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

5- IP Address

Find This
print_input_row($vbphrase['ip_address'], 'user[ipaddress]', $user['ipaddress']);

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

6- Usergroup Options

Find This
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
//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
print_yes_no_row($vbphrase['invisible_mode'], 'options[invisible]', $user['invisible']);

Replace with This
//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 (http://twitter.com/vaporizer)

albrens
01-26-2010, 03:11 AM
thanks

welcome steve1966 :)

مشكوور اخوي ياسر

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?