Support » Plugin: Simple File List » Front-Side Manage not working in new version

  • Resolved joneiseman

    (@joneiseman)


    In the new version (4.2.1) the Edit and Move to Folder links are gone in the front end when I turn on Front-Side Manage. Going back to 4.1.3 fixes the problem.

    • This topic was modified 1 year, 6 months ago by joneiseman.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Mitchell Bennis

    (@eemitch)

    Please ensure that you have “Show File Actions” checked on the Display Settings tab.

    Thread Starter joneiseman

    (@joneiseman)

    Yes, I have “Show File Actions” checked but the Edit and “Move to Folder” links are gone.
    Settings: https://www.dropbox.com/s/imdaox66un6vx58/sflsettings.png?dl=0
    Frontend Display: https://www.dropbox.com/s/u09zh0gse31niuy/sflfileactions.png?dl=0

    In the previous version the links were there: https://www.dropbox.com/s/er6lwypghc7rt4m/sflprev.png?dl=0

    Plugin Author Mitchell Bennis

    (@eemitch)

    Show File Actions and Allow Front Manage must both be checked.

    The first one enables the display of the Action Links. The second one adds the management links.

    Thread Starter joneiseman

    (@joneiseman)

    Yes, both are set, see the settings here:
    https://www.dropbox.com/s/imdaox66un6vx58/sflsettings.png?dl=0

    Here’s what the front end display looks like now:
    https://www.dropbox.com/s/u09zh0gse31niuy/sflfileactions.png?dl=0

    Here’s what it used to look like:
    https://www.dropbox.com/s/er6lwypghc7rt4m/sflprev.png?dl=0

    Plugin Author Mitchell Bennis

    (@eemitch)

    Can I get a link to the actual file list?

    Thread Starter joneiseman

    (@joneiseman)

    If I gave you a link it would not show the “Edit” or “Move to Folder” because it only shows those to logged in users.

    
            // Who Can View the List?
            switch ($eeSFL_Config['ShowList']) {
                case 'YES':
                    break; // Show It
                case 'USER':
                    // Show It If...
                    if( get_current_user_id() ) { break; } else { $eeSFL_Config['ShowList'] = 'NO'; }
                case 'ADMIN':
                    // Show It If...
                    if(current_user_can('manage_options')) { break; } else { $eeSFL_Config['ShowList'] = 'NO'; }
                    break;
                    default:
                            $eeSFL_Config['ShowList'] = 'NO'; // Show Nothing
            }
    

    In fact in the new version “Move to Folder” has been removed.

    Old Version:

    
    % !find
    find . -name '*.php' | xargs grep -i 'move to folder'
    ./ee-list-display.php:                                                          $eeFileActions .= '<a class="eeDimmedLink" href="/wp-admin/admin.php?page=ee-simple-file-list&tab=extensions" >' . __('Move to Folder', 'ee-simple-file-list') . '</a>';
    

    New Version:

    
    % !find
    find . -name '*.php' | xargs grep -i 'move to folder'
    % 
    
    Plugin Author Mitchell Bennis

    (@eemitch)

    I’m not following. File Management and File List Actions were never a part of the shortcode function, which is where the code snippet comes from. This simply determines if the entire list and/or upload form is visible and to whom.

    Try to create a new test page, not linked to anywhere…

    [eeSFL showfolder=”Your-Choice” showlist=”YES”]

    Send me a link to that.

    Plugin Author Mitchell Bennis

    (@eemitch)

    Thread Starter joneiseman

    (@joneiseman)

    In the old version under the checkbox next to “Allow Front-side manage” it says:
    Allow file editing and deletion on the front side of the site.

    Is there some way to allow file deletion on the front side of the site in the new version?

    I will create a login for you so you can see what the page looked like in the old version. I want to see the same thing in the new version.

    Plugin Author Mitchell Bennis

    (@eemitch)

    If both “Show File Actions” and “Allow Front Manage’ are enabled, anyone who can see the file list will also see the Open, Download, Send* and Edit links.

    If the Folder Extension is installed, they will also see a Move link and a Create Folder form above the list.

    There is no relation previously or currently that ties login status to these file actions.

    Thread Starter joneiseman

    (@joneiseman)

    I only allow people with logins to access the page that you want to see.

    Thread Starter joneiseman

    (@joneiseman)

    The problem occurs when there are two shortcodes on the page. In my page I had the following two shortcodes:

    
    [eeSFL showlist="NO"]
    [eeSFL showlist="YES" allowuploads="NO"]
    

    The first shortcode shows the upload box and the 2nd shows the list of files without the upload box.

    Here’s the change I made to get the Edit link to come back on the front end (when front-end manage is enabled and there are two shortcodes on the page):

    
    % diff ee-list-display.php.bak ee-list-display.php.new
    611c611
    <                                                       if( ($eeAdmin OR $eeSFL_Config['AllowFrontManage'] == 'YES') AND $eeSFL_ListRun == 1 ) {
    ---
    >                                                       if( ($eeAdmin OR $eeSFL_Config['AllowFrontManage'] == 'YES') AND $eeSFL_ListRun >= 1) {
    

    The value of $eeSFL_ListRun was 2 because I had 2 shortcodes and each time the shortcode occurs it increments $eeSFL_ListRun.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Front-Side Manage not working in new version’ is closed to new replies.