Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    1

    Question Remove Legacy File Manager, Keep File Manager

    <question>

    I want to create a feature list for my cPanel clients which includes the (new) file manager, but does not include the legacy file manager. It appears I can only choose between having both or none at all. I'm mystified why these are not separate items in the feature manager for these two different tools. Perhaps I am missing something here? If not, is there a work-around for this?

    I've seen nothing in the WHM/cPanel documentation, forums, or in my general web searches--I haven't yet pulled up anyone else asking for what I'm asking for specifically, let alone anyone with a suggestion. (I have considered the possibility that the reason for not finding this is that there is a simple solution, but even if this is true, I don't see it.) If I can't get rid of this icon/link, would anyone know how to break it (so clicking on it results in an error or nothing at all) without breaking the whole cPanel application?

    So could someone at least point me to the right part of cPanel's directory tree to look at for a solution. Just narrowing it down to a small enough piece would make it possible for me to figure out how it works and fix (or break) it and keep everything else working in a reasonable amount of time, since at present I know nothing at all about how the application is structured.

    As far as specific platform and software, I'm using a VPS with cPanel/WHM 11.25.0 on CentOS 5.4. As far as experience, I'm very new to cPanel/WHM (I'm migrating from Plesk control panels) but have used GNU/Linux (especially Red Hat varieties) and Perl since the late 1990s.

    </question>

    If it really is the case that I can only have both the file manager and legacy file manager, or neither, then please consider this to be a feature request as well--separate options in the feature manager for file manager and legacy file manager.

    Thanks,
    -Chrys

  2. #2
    Member
    Join Date
    May 2007
    Posts
    19

    Default

    It seems that the reported bug is still not resolved and you can not disable the Legacy File Manager from WHM without turning off the File Manager.

    You can find more details about it at:

    Bug 5584 - No way of removing "legacy file manager" from x3 cpanel

    However, there is a workaround.

    You can just disable the Legacy File Manager icon.

    This can be done by editing the /usr/local/cpanel/base/frontend/x3/dynamicui.conf file. If you are using a different theme, enter its name instead of x3.

    In the file, search for the following line:

    description=>$LANG{'TFileManagerLegacy'},feature=>filemanager,file=>legacy_filemanager,group=>files,height=>32,imgtype=>icon,itemdesc=>$LANG{'TFileManagerLegacy'} ,subtype=>img,type=>image,url=>files/index.html?showhidden=1&amp;dir=/public_html,width=>32,itemorder=>2,acontent=>target="_blank",onclick=>show_optionselect('files'); return false;,searchtext=>$LANG{'filemgrleg-searchtxt'}

    Put the comment character in front of it. The new code will be:

    #description=>$LANG{'TFileManagerLegacy'},feature=>filemanager,file=>legacy_filemanager,group=>files,height=>32,imgtype=>icon,itemdesc=>$LANG{'TFileManagerLegacy'} ,subtype=>img,type=>image,url=>files/index.html?showhidden=1&amp;dir=/public_html,width=>32,itemorder=>2,acontent=>target="_blank",onclick=>show_optionselect('files'); return false;,searchtext=>$LANG{'filemgrleg-searchtxt'}

    Save the file and open your cPanel. The Legacy File Manager icon will not be visible anymore.
    SiteGround Hosting Team Member
    We know cPanel because our customers love it!
    Check out our Friends Special: One year hosting for $9.95 only.

  3. #3
    Registered User
    Join Date
    Feb 2007
    Posts
    4

    Default

    Quote Originally Posted by sven4o View Post
    It seems that the reported bug is still not resolved and you can not disable the Legacy File Manager from WHM without turning off the File Manager.

    You can find more details about it at:

    Bug 5584 - No way of removing "legacy file manager" from x3 cpanel

    However, there is a workaround.

    You can just disable the Legacy File Manager icon.

    This can be done by editing the /usr/local/cpanel/base/frontend/x3/dynamicui.conf file. If you are using a different theme, enter its name instead of x3.

    In the file, search for the following line:

    description=>$LANG{'TFileManagerLegacy'},feature=>filemanager,file=>legacy_filemanager,group=>files,height=>32,imgtype=>icon,itemdesc=>$LANG{'TFileManagerLegacy'} ,subtype=>img,type=>image,url=>files/index.html?showhidden=1&amp;dir=/public_html,width=>32,itemorder=>2,acontent=>target="_blank",onclick=>show_optionselect('files'); return false;,searchtext=>$LANG{'filemgrleg-searchtxt'}

    Put the comment character in front of it. The new code will be:

    #description=>$LANG{'TFileManagerLegacy'},feature=>filemanager,file=>legacy_filemanager,group=>files,height=>32,imgtype=>icon,itemdesc=>$LANG{'TFileManagerLegacy'} ,subtype=>img,type=>image,url=>files/index.html?showhidden=1&amp;dir=/public_html,width=>32,itemorder=>2,acontent=>target="_blank",onclick=>show_optionselect('files'); return false;,searchtext=>$LANG{'filemgrleg-searchtxt'}

    Save the file and open your cPanel. The Legacy File Manager icon will not be visible anymore.
    Thanks for sharing
    you can edit all themes with sed
    PHP Code:
    find /usr/local/cpanel/base/frontend -type f -name "dynamicui.conf"|xargs sed -'/.*LANG.*TFileManagerLegacy.*feature.*filemanager.*/ s/^/#/' 
    Also They can remain use file mager with direct link .

    why not delete Legacy file manger files by run the following cron
    PHP Code:
    */15 * * * * root rm -rf /usr/local/cpanel/base/frontend/*/files >> /dev/null 2>&1 
    Last edited by aymanfekri; 03-26-2010 at 04:46 AM.

Similar Threads & Tags
Similar threads

  1. Filed with Developers Legacy File Manager option in Feature Manager [Case 4579]
    By cPanelKyle in forum Feature Requests for cPanel/WHM
    Replies: 2
    Last Post: 05-25-2011, 10:10 AM
  2. .trash_restore file in Legacy File Manager shouldn't visible in the trash can
    By jpratt in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 01-14-2011, 01:06 PM
  3. New File Manager does not load; only the Legacy FM works
    By CiprianRO in forum New User Questions
    Replies: 2
    Last Post: 05-10-2009, 07:26 PM
  4. Legacy File Manager vs file manager: which is the difference?
    By luxuryfurniture in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-04-2008, 01:00 PM
  5. Disable Legacy File Manager in X3?
    By TinySmasher in forum New User Questions
    Replies: 3
    Last Post: 09-19-2007, 02:51 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube