WordPress.org

Ready to get started?Download WordPress

Forums

The Gallery Shortcode
[resolved] Missing checkmarks to exclude? (10 posts)

  1. trusktr
    Member
    Posted 2 years ago #

    I don't see any way to exclude images like in your screenshot... Perhaps we need an update for latest WordPress?

    http://wordpress.org/extend/plugins/the-gallery-shortcode/

  2. litemotiv
    Member
    Posted 2 years ago #

    Checkboxes to exclude are right next to the thumbnails in the screenshot?

  3. pepe
    Member
    Posted 2 years ago #

    I have them on a local MAMP installation of WordPress 3.3.2, but not on my production site (which is a MU installation).

  4. trusktr
    Member
    Posted 2 years ago #

    Yeah, the checkmarks are missing. I see them in only the screenshot, but not in my dashboard.

  5. pepe
    Member
    Posted 2 years ago #

    I've fixed it on my installation by changing the method that adds the JS file to use wp_enqueue_script.

  6. shazdeh
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry for the late response; yes, the exclude option shows up beside the thumbnail.
    Does the plugin fails on Multisite? Peter could you please send me your fix?

  7. pepe
    Member
    Posted 2 years ago #

    Yes, this is a multisite installation. My fix consists of removing

    add_action( 'wp_default_scripts', array( &$this, 'admin_script
    ' ), -1000 );

    from function __construct() and adding

    wp_enqueue_script( 'admin-gallery', $this->base_url . 'js/gallery.js', array
    ( 'jquery-ui-sortable' ), '0.1' );

    to function media_upload_gallery().

  8. shazdeh
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you very much! I'll add this for the next version.
    Again, thanks!

  9. pepe
    Member
    Posted 2 years ago #

    Is there a reason why you used direct manipulation of the $scripts global instead of wp_enqueue_script()?

  10. shazdeh
    Member
    Plugin Author

    Posted 2 years ago #

    I tried it with wp_enqueue_script before and it failed, plugin's custom script file didn't load instead of the default one. So I manipulate the scripts object to replace it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.