WordPress.org

Forums

Eazyest Gallery
[resolved] Maybe move subfolders box before the images box and some info (in admin) (11 posts)

  1. klihelp
    Member
    Plugin Author

    Posted 2 years ago #

    I think it's better to have the subfolders box above the images box.
    On any Folder page with lots of images it's hard to it's hard to discover that there is subfolder box, because it's pushed down ... and you have to scroll a lot to find that box.

    It easier to find the images box after the subfolder box.

    And would be good to add a line to the Info (publish) box, that is visible right away when you open the folder page
    eg.
    Subfolders: 4
    Images: 123

    http://wordpress.org/extend/plugins/eazyest-gallery/

  2. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 2 years ago #

    remove_action('eazyest_gallery_after_folder_content','ezg_subfolders',5);
    add_action('eazyest_gallery_before_folder_content','ezg_subfolders',6);
  3. klihelp
    Member
    Plugin Author

    Posted 2 years ago #

    This filters are not working on admin side.

  4. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 2 years ago #

    Okay, missed that part ;-)

    remove_action('edit_form_after_editor',array(eazyest_gallery(),'list_table_attachments'),1,1);
    add_action('edit_form_after_editor',array( eazyest_gallery(),'list_table_attachments'),3,1);

    no guarantee this works...

  5. klihelp
    Member
    Plugin Author

    Posted 2 years ago #

    I couldn't make it work.

    ps: the front-end filter you poster earlier are working, but Subfolders will be displayed twice, forced display after the images box.

  6. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 2 years ago #

    please see http://wordpress.org/extend/plugins/eazyest-gallery/faq/ when to run remove_action()

  7. klihelp
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks. Still not working..

    // Move Subfolders box above Images box
    function kli_ezg_list_table_boxes( $columns ) {
       remove_action('edit_form_after_editor',array(eazyest_gallery(),'list_table_attachments'),1,1);
    add_action('edit_form_after_editor',array( eazyest_gallery(),'list_table_attachments'),3,1);
    }
    add_action('edit_form_after_editor','kli_ezg_list_table_boxes', 1);
  8. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 2 years ago #

    add_action('eazyest_gallery_ready','kli_ezg_list_table_boxes', 1);

  9. klihelp
    Member
    Plugin Author

    Posted 2 years ago #

    The remove_action doesn't have any effect

    // Move Subfolders box above Images box
    function kli_ezg_list_table_boxes() {
        var_dump('hellooo'); // displayed
        remove_action('edit_form_after_editor',array( eazyest_gallery(),'list_table_attachments'),1,1);
        // add_action('edit_form_after_editor',array( eazyest_gallery(),'list_table_attachments'),3,1);
    }
    // add_action('edit_form_after_editor','kli_ezg_list_table_boxes', 1);
    add_action('eazyest_gallery_ready','kli_ezg_list_table_boxes', 1);
  10. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 2 years ago #

    bummer,
    replace

    eazyest_gallery()

    by

    eazyest_admin()->folder_editor()
  11. klihelp
    Member
    Plugin Author

    Posted 2 years ago #

    thanks, it's working. Looks very nice, you should try it too:)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Eazyest Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic