Solution to get EXTRA-PATH (clean) urls to function »

Display Toolbar for administrators only

Leave a comment »

Similar to the hack on my site to display info to a selected group or user, this is how to code your skins _html_header.inc file to display the toolbar for administrators only. Thanks again to ¥åßßå.

Code:

<body>
 
<?php
if( is_logged_in() )
{
  switch( $current_User->group_ID )  
  {
     case 1 :
      // ---------------------------- TOOLBAR INCLUDED HERE ----------------------------
      require $skins_path.'_toolbar.inc.php';
      echo '<div id="bgcontainer" class="skin_wrapper_loggedin">';
      // ------------------------------- END OF TOOLBAR --------------------------------
      break;
  }
 
}
?>
<!-- Start of skin_wrapper -->

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
:!: :?: :idea: :) :D :p B) ;) :> :roll: :oops: :| :-/ :( :'( |-| :>> :yes: ;D :P :)) 88| :. :no: XX( :lalala: :crazy: >:XX
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

User tools

Who's Online?

  • Guest Users: 10

XML Feeds