• This hack adds Morten Bojsen-Hansen’s excellent GPL File Manager “PhpFM” to WordPress 1.2(sorry 1.2 only). You can use it to upload/delete files, view images already uploaded, and make new folders from within WordPress. Give it a try and let me know what you think ??
    You can see a screenshot at https://mudbomb.com
    Download WordPress File Manager

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter Joe

    (@joe)

    Sorry about that, zach. I just moved to a new server and I was shuffling a few things around. Files are back up now.

    I am getting the error “Admin has disabled this function”.

    The files are again missing – only the .rar file is available and that can’t be extracted with unrar under linux. Please only post hacks and plugins in either .zip or .tgz format, as other formats are not available on all plattforms.

    If you get the error “Admin has disabled this function” you maybe don’t Allow file Uploads, under Options -> Miscellaneous.

    Joe,
    All works well apart from the last step.

    3. Open up wp-admin/menu.php and find the line that reads:
    array(__(‘Upload’), get_settings(‘fileupload_minlevel’), ‘upload.php’),
    Just below that line, add this:
    array(__(‘Files’), get_settings(‘fileupload_minlevel’), ‘fm.php’),
    All done! *Note that because of the potential security risk of an open file manager, a WordPress User Level of at least 7 is required to use the file manager, regardless of the file settings in WordPress.

    My menu.php does not contaian the line you say. File Uploads are working OK with the standard built function.
    Any Ideas ?

    Hi Dotann,
    Still having problems. My menu.php file taken from wp-admin/menu.php looks like this…
    :::::: MENU.PHP ::::::
    <h1 id=”wphead”>WordPress</h1>
    <ul id=”adminmenu”>
    <?php
    $menu = file(‘./menu.txt’);
    $continue = true;
    foreach ($menu as $item) {
    $class = ”;
    $item = trim($item);
    if (‘***’ == $item) $continue = false;
    if ($continue) {
    $item = explode(“\t”, $item);
    // 0 = user level, 1 = file, 2 = name
    $self = str_replace(‘/wp-admin/’, ”, $PHP_SELF);
    if ((substr($self, -20) == substr($item[1], -20)) || ($parent_file && ($item[1] == $parent_file))) $class = ‘ class=”current”‘;
    if ($user_level >= $item[0]) echo “\n\t

    brian873: What version of WordPress are you using? My guess is that the array is probably contained in menu.txt.

    ann,
    version 1.0.1
    here is my menu.txt file
    1 post.php Post
    1 edit.php Edit
    3 categories.php Categories
    5 link-manager.php Links
    3 users.php Users
    4 options.php Options
    4 templates.php Templates
    ***
    (Everything after the ‘***’ is a comment.)
    To add sections to the menu, use this syntax:
    the minimum level the user needs to access the section: between 0 and 10
    +tab
    +the URL of the section’s file
    +tab
    +the title of this section

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘WordPress File Manager Hack’ is closed to new replies.