1 ladyease Apr 01, 2008 17:31
3 ladyease Apr 02, 2008 03:51
<?php
// ---------------------------- TOOLBAR INCLUDED HERE ----------------------------
require $skins_path.'_toolbar.inc.php';
// ------------------------------- END OF TOOLBAR --------------------------------
echo "\n";
if( is_logged_in() )
switch( $current_User->group_ID )
{
case 1 :
echo '<div id="skin_wrapper" class="skin_wrapper_loggedin">';
}
else
{
echo '<div id="skin_wrapper" class="skin_wrapper_anonymous">';
}
echo "\n";
?>
I came up with this, but it only just allows the admin to see the div class skin_wrapper_loggedin, and doesn't actually disable to toolbar for other users.
4 yabba Apr 02, 2008 08:49
<?php
if( is_logged_in() )
{
switch( $current_User->group_ID )
{
case 1 :
// ---------------------------- TOOLBAR INCLUDED HERE ----------------------------
require $skins_path.'_toolbar.inc.php';
// ------------------------------- END OF TOOLBAR --------------------------------
break;
}
}
?>
¥
5 ladyease Apr 02, 2008 21:54
As always ¥åßßå, you did good. I figured that the case: 1 should go at the top but wasn't sure it would see the required toolbar file.
Thanks again!!
http://www.beatease.com/web-design.php/b2evolution-hacks/display-toolbar-for-administrators-only
6 tilqicom May 25, 2008 11:02
that worked pretty well (:, thanks ¥åßßå, that toolbar doesnot actually look fine in ie and also my users are not able to do a thing, just subscrp and profile, as i already have those links somewhere else i didnt need the toolbar for users , ty cheers ;)
This is from _html_header.inc.php:
I think you can do something with this code ... B)
Good luck