• Page 1 of 1
  • 1
uCause Community » Trash & Archives » Other » Completely Hide The Admin/User Bar (Simple Code)
Completely Hide The Admin/User Bar
ParadoxDate: Saturday, 2011-08-13, 10:27 AM | Message # 1
Haunter
Group: Senior Members
Messages: 468
Awards: 6
Reputation: 11
Status: :-(
Version 1

Technically you should have this in a header section but in the $GLOBAL_AHEADER$ part of your site paste the following code with jQuery enabled to hide the admin/user bar for all users.

Code
<script type="text/javascript">
$(document).ready(function(){
$("#puzadpn").hide();
$("#uzadpn").hide();
$(".cuzadpn").hide();
});
</script>


Important: The use of this code and the hiding of the uCoz admin/user bar is discouraged due to the fact that both contain important functions and management commands for the site. I advise only to use this code if you are an experienced user with the uCoz system.




Version 2

Pretty much the same except I have put in a conditional operator so that all groups excluding the administrator will lose access to the menu bar.

Code
<?if($USER_GROUP$ != "4")?>
<script type="text/javascript">
$(document).ready(function(){
$("#puzadpn").hide();
$("#uzadpn").hide();
$(".cuzadpn").hide();
});
<?endif?>


Important: The use of this code and the hiding of the uCoz admin/user bar is discouraged due to the fact that both contain important functions and management commands for the site. I advise only to use this code if you are an experienced user with the uCoz system.

tags-zB11Completely, Hide, The, Admin/User, Bar


Request Terminated_
 
0 Thanked you For This Useful Post:
SirDarknight(Tonmoy)Date: Saturday, 2011-08-13, 11:11 AM | Message # 2
Member
Group: Senior Members
Messages: 894
Awards: 10
Reputation: 15
Status: :-(
Paradox, Why anyone will hide their admin bar?

Please Give Me A Award or + Rep If My Post Helps You

Please Give Me A Award or + Rep If You Like my Scripts
 
0 Thanked you For This Useful Post:
ParadoxDate: Saturday, 2011-08-13, 11:51 AM | Message # 3
Haunter
Group: Senior Members
Messages: 468
Awards: 6
Reputation: 11
Status: :-(
A good question SirDarknight (Tonmoy) and one I can't answer for others, but on my site I developed a custom admin/user bar so the uCoz one wasn't needed.

Request Terminated_
 
0 Thanked you For This Useful Post:
AnimorphDate: Monday, 2011-08-15, 0:20 AM | Message # 4
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
SirDarknight(Tonmoy), alot of big websites hide it, Specially for theri co staff members so thy can't access their File manager and private files , , its all about security reasons. so thanks paradox for sharing this
 
0 Thanked you For This Useful Post:
SirDarknight(Tonmoy)Date: Monday, 2011-08-15, 9:30 AM | Message # 5
Member
Group: Senior Members
Messages: 894
Awards: 10
Reputation: 15
Status: :-(
Animorph, They can easily stop co-staffs from accessing to File Manager by changing user group permissions

Attachments: 7413856.png(35.0 Kb)


Please Give Me A Award or + Rep If My Post Helps You

Please Give Me A Award or + Rep If You Like my Scripts
 
0 Thanked you For This Useful Post:
AnimorphDate: Monday, 2011-08-15, 12:56 PM | Message # 6
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
SirDarknight(Tonmoy), I know , but it is still useful if you want your staff to have certain permissions but not access your CP.
 
0 Thanked you For This Useful Post:
uCause Community » Trash & Archives » Other » Completely Hide The Admin/User Bar (Simple Code)
  • Page 1 of 1
  • 1
Search:


"Making uCoz web designs simple and easy to use"
- uCause Developers