Back to vBulletin 4.x Template Modifications

Hide some access in modcp
Mod Version: 1.00, by albrens

vB Version: 4.0.x Rating: (2 votes - 5.00 average) Installs: 8
Released: 17 Jan 2010 Last Update: Never Downloads: 0
Not Supported Code Changes Re-usable Code  

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

Download

No files for download.

Screenshots

Click image for larger version
Name:	Screen shot 2010-01-17 at 5.44.44 AM.jpg
Views:	214
Size:	52.5 KB
ID:	110180   Click image for larger version
Name:	Screen shot 2010-01-17 at 5.38.13 AM.jpg
Views:	164
Size:	51.0 KB
ID:	110181   Click image for larger version
Name:	Screen shot 2010-01-17 at 5.46.13 AM.jpg
Views:	152
Size:	51.9 KB
ID:	110182  

Similar Mods

ModCP Access Mask 1.00 vBulletin 3.5 Add-ons
AdminCp & ModCp Access From Anywhere vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024