Back to vBulletin 3.0 Add-Ons

Change Admin CP Style Without Logging Out
Mod Version: 1.00, by Slynderdale

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 3
Released: 24 Jul 2004 Last Update: Never Downloads: 1
Not Supported  

I made a small hack that adds a small nav menu of all the admin cp styles that you can click on to quickly and esily update your admin cp style without having to log out and then select a new style and then re-log in. Its a simple and small hack, but a nice one if you have alot of admin cp styles.

You can always make your own styles or find a bunch at vBulletinTemples.com
http://www.vbulletintemplates.com/mods/newmods.php?version=vb3&type=admincss

In your admincp folder, open index.php and find:
PHP Code:
 // #############################################################################
 // ################################## REDIRECTOR ###############################
 // #############################################################################
 
 
if (!empty($redirect))
 { 
Above that add:
PHP Code:
 // #############################################################################
 // ############################### Update CP Style #############################
 // #############################################################################
 
if ($_REQUEST['do'] == 'cpstyle')
 {
   unset(
$stylefolder);
   
$getcssoptions fetch_cpcss_options();
     foreach (
$getcssoptions AS $folder => $foldername)
     {
     if(
$_REQUEST['style'] == $folder) {
       
$stylefolder $folder;
       break;
     }
     }
     if (
$stylefolder
     {
       
$DB_site->query("
           UPDATE " 
TABLE_PREFIX "administrator
           SET  cssprefs = '" 
addslashes($stylefolder) . "'
           WHERE userid = 
$bbuserinfo[userid]
       "
);
   }
   
$redirect "./index.php";
 } 
In the same file find:
PHP Code:
 // ################################ NAVIGATION FRAME #############################
 
 if ($_REQUEST['do'] == 'nav')
 {
     require_once('./includes/adminfunctions_navpanel.php');
     print_cp_header();
 
     echo "\n<div>";
     ?><img src="../cpstyles/<?php echo $vboptions['cpstylefolder']; ?>/cp_logo.gif" title="<?php echo $vbphrase['admin_control_panel']; ?>" alt="" border="0" hspace="4" <?php $df print_form_middle("L3475c86"); ?> vspace="4" /><?php
     
echo "</div>\n\n" iif(is_demo_mode(), "<div align=\"center\"><b>DEMO MODE</b></div>\n\n") . "<div style=\"width:168px; padding: 4px\">\n";
 
     
// cache nav prefs
     
can_administer();
 
     
construct_nav_spacer();
and under it add:
PHP Code:
     $printhr true;
     
$getcssoptions fetch_cpcss_options();
     foreach (
$getcssoptions AS $folder => $foldername)
     {
       if (
$foldername AND $folder) {
           
construct_nav_option($foldername,"index.php?$session[sessionurl]do=cpstyle&amp;style=$folder");
         }
     }
     
construct_nav_group($vbphrase['change_admin_cp_style'], '<hr />');
     if (
$printhr == true)
     {
      
construct_nav_spacer();
     } 
then add a new phrase to Control Panel Global called:
change_admin_cp_style
with:
Change Admin CP Style

Thats all, I'll include a screenshot below as an example of how it would look.

Download

No files for download.

Screenshots

 

Similar Mods

[Style] Admin Control Panel Style : Floris Modification Graveyard
Admin CP IP Logging w/last seen vBulletin 2.x Full Releases
Admin can change default style from admin cp vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024