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
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:
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