[XS Tweak] Admin Panel Orig. phpBB Styles Block Removed

Tutorials for <a href="http://www.phpbbstyles.com/viewtopic.php?t=356">eXtreme Styles mod</a> for phpBB 2.0.

Moderator: Moderators

[XS Tweak] Admin Panel Orig. phpBB Styles Block Removed

Postby Disturbed One on Sat Jul 02, 2005 2:53 am

This will remove the Styles Admin block in your ACP.
This block has always bugged me as I never use it, and I like to save ACP space.

Here is the solution to removing it.
Open
admin/xs_includes.php
Find
Code: Select all
   // remove default phpBB styles management
   if(isset($module['Styles']))
   {
      $unset = array('Add_new', 'Create_new', 'Manage', 'Export');
      for($i=0; $i<count($unset); $i++)
      {
         if(isset($module['Styles'][$unset[$i]]))
         {
            unset($module['Styles'][$unset[$i]]);
         }
      }
      $module['Styles']['Menu'] = 'xs_frameset.'.$phpEx.'?action=menu&showwarning=1';
   }

Replace With
Code: Select all
   // remove default phpBB styles management
   if(isset($module['Styles']))
   {
      $unset = array('Add_new', 'Create_new', 'Manage', 'Export');
      for($i=0; $i<count($unset); $i++)
      {
         if(isset($module['Styles'][$unset[$i]]))
         {
            unset($module['Styles']);
         }
      }
   }

Find & Delete
admin/admin_styles.php

I hope this is of use to somebody.
Last edited by Disturbed One on Sat Jul 02, 2005 1:32 pm, edited 1 time in total.
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby baz-x on Sat Jul 02, 2005 9:51 am

Erm, isn't this easier?
Code: Select all
   // remove default phpBB styles management 
   if(isset($module['Styles'])) 
   { 
      unset($module['Styles']);
   }
Regards
baz-x [blog] [website]
current projects:
» [span style="color: darkgreen"]Mex[/span] [span style="color: darkred"][ 75% ][/span]
» Nickpage Mod 2.0.0 ME [span style="color: red"][ paused ][/span]
» Style Demo Mod 1.2.2 ME [span style="color: red"][ paused ][/span]
User avatar
baz-x
Moderator
Moderator
 
Posts: 706
Joined: Sun Aug 15, 2004 9:12 pm
Location: Cache Management of Mex

Postby PostBot on Sat Jul 02, 2005 9:57 am

[quote user="baz-x" post="41977"]Erm, isn't this easier?[/quote]
There might be some other mods that add items to styles admin menu, so its better to delete only 4 default menu items.

And in addition to using code that Disturbed One posted I suggest to remove admin/admin_styles.php
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby Disturbed One on Sat Jul 02, 2005 1:31 pm

I thought of doing that, but I didn't know if phpBB draws any functions from that file.
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby jleagle on Wed Sep 21, 2005 11:35 pm

i just renamed admin_styles.php to _admin_styles.php and it works fine :D
User avatar
jleagle
Registered User
Registered User
 
Posts: 7
Joined: Fri Feb 25, 2005 11:29 pm


Return to eXtreme Styles mod tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron