Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Hide some access in modcp Details »»
Hide some access in modcp
Version: 1.00, by albrens albrens is offline
Developer Last Online: May 2015 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.x Rating:
Released: 01-16-2010 Last Update: Never Installs: 8
Re-useable Code Code Changes  
No support by the author.

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

Screenshots

File Type: jpg Screen shot 2010-01-17 at 5.44.44 AM.jpg (52.5 KB, 0 views)
File Type: jpg Screen shot 2010-01-17 at 5.38.13 AM.jpg (51.0 KB, 0 views)
File Type: jpg Screen shot 2010-01-17 at 5.46.13 AM.jpg (51.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-17-2010, 07:57 AM
steve1966 steve1966 is offline
 
Join Date: Dec 2007
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #3  
Old 01-20-2010, 01:55 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

thanxxx

installed
________
Volcano vaporizer
Reply With Quote
  #4  
Old 01-26-2010, 03:11 AM
albrens albrens is offline
 
Join Date: Jun 2006
Location: AU
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by steve1966 View Post
thanks
welcome steve1966

Quote:
Originally Posted by Dr.osamA View Post
مشكوور اخوي ياسر

thanxxx

installed
العفو عزيزي

welcome Dr.osamA
Reply With Quote
  #5  
Old 01-26-2010, 04:05 AM
as7apcool as7apcool is offline
 
Join Date: Feb 2009
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks 4 this work
Reply With Quote
  #6  
Old 02-17-2011, 07:38 AM
Nocturnal222 Nocturnal222 is offline
 
Join Date: Dec 2006
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 02-19-2011, 08:09 AM
Merenguista's Avatar
Merenguista Merenguista is offline
 
Join Date: Sep 2010
Location: Morocco
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

شكرا أخي ..
Reply With Quote
  #8  
Old 03-07-2011, 02:19 AM
Nocturnal222 Nocturnal222 is offline
 
Join Date: Dec 2006
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how about removing ip search on mod panel?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:19 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.04162 seconds
  • Memory Usage 2,298KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (14)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (3)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete