Shiba Media Library Plugin

The purpose of the Shiba Media Library Plugin is to facilitate the manipulation and grouping of images within the existing WordPress image library framework.

[Most recent Shiba Media Library updates]

December, 2015
Tested on WordPress 4.4. No changes needed.

September 13th 2015 – Release 3.9.1

  • Updated thumbnails column for WordPress 4.3.
  • Tested on WordPress 4.3.

When creating permalink structures, care must to taken to ensure that the new structure does not override existing post, page, category, and tag permalinks.

Key Features of the Shiba Media Library Plugin

  • Enables image tagging and allows you to group images into galleries by using their tags. Images can also to added manually using the regular media manager interface.
  • In addition to images/attachments, galleries may also contain posts and other galleries. In this way, you group not only images, but also posts, galleries, and any combination of these object types. Here are some fun things you can achieve with expanded galleries.
  • Easily search for posts, pages, galleries, and more in the expanded media manager interface, and include them directly into a gallery. The days of painfully hunting for IDs are over!
  • Freely order images, posts, and pages within a gallery.
  • Gallery objects get saved into your WordPress export files. This allows you to keep a backup of your gallery objects, as well as move them from blog to blog.
  • Expanded media manager image search that allows you to find images based on title and alt text.
  • Expanded search that allows you to find attachments and galleries based on titles, tags, and categories.
  • Show the number of posts an image containing an image in the Media >> Library screen.
  • View most-used tags for post, attachment, and gallery objects.
  • Quick Edit image attachments.
  • Adds a new drop-down menu to your existing WordPress Media Library. This menu will allow you to do bulk attachments to both attached and non-attached images.
  • Detach a set of images from their post so that they revert back to their unattached state.

The Power of Galleries and Tags

Gallery objects are stored in the regular WordPress post database. In this way, you get to leverage almost all existing functions that are available for WordPress post objects including displaying your galleries using the WordPress gallery shortcode.

Galleries created with the Shiba Media Library Plugin should also work with other plugins that support the WordPress gallery shortcode.

This entire plugin operates within the current WordPress Media Library framework so any tag changes will automatically be reflected in your WordPress gallery shortcode results.

If you want to extract images with particular tags using PHP, just include the tags in your WordPress get_posts command.

$args = array(	'post_type' => 'attachment',
		'tag' => 'tag-a,tag-b,tag-c' );
$attachments = get_posts( $args );

Why Can’t I Use Tags in the Gallery Shortcode?

The Shiba Media Library addresses the media library back-end and sets up tag links in the WordPress database. I.e., there is a link in the database saying that a particular image is linked to a given tag.

For tags to work in the gallery shortcode, it must also be supported on the gallery front-end – i.e., by the plugin that renders your images. The Shiba Gallery plugin, for example, supports image tags.

However, most gallery rendering plugins do not yet support this extension because it is currently not part of the native WordPress gallery shortcode and is therefore not a standard.

Shiba Media Library Updates

Shiba Media Library 3.9

May 2nd 2015

  • Updated image search function (in the Media Manager interface) so that it works for attachment titles, alt text, as well as captions.
  • Tested plugin on WordPress 4.2.

Shiba Media Library 3.8.2

September 17th 2014

  • Updated the Add-Media templates and interface so that images can be properly selected and inserted.
  • Updated the media table in the Edit Gallery screen so that it renders properly in WP 4.0.
  • Updated some deprecated functions.
  • Tested plugin on WordPress 4.0.

Shiba Media Library 3.8

April 22nd 2014

  • Updated plugin directory and url paths to use standard functions instead of constants.
  • Updated the Galleries >> Options screen to use the new wordpress update settings system (add_settings_error).
  • Fixed a bug in the Media screen that occurs when expanded bulk operations are applied to an empty image set.
  • Tested plugin on WordPress 3.9.

Shiba Media Library 3.7.2

Dec 24th 2013

  • Fixed some warning messages and make sure post images show up when editing a gallery.

Shiba Media Library 3.7

Sept 26th 2013

  • Posts, pages, and supporting custom post types can now be included in galleries from within the media manager interface.
  • Expanded search for images to include title as well as alt text.
  • Show number of posts that an image is included in (i.e. included in post content). Gallery images are not counted.
  • New options page. You may now enable or disable the image quick edit, number of posts, and expanded media manager search functionalities.
  • Fixed URL too long bug.

Shiba Media Library 3.6

Jan 7th 2013

  • Updated for 3.5.
  • Plugin gallery objects now use the id list system introduced in WordPress 3.5. Use the new media manager interface to upload and attach images to gallery objects.
  • Fixed quick edit functions.
  • Updated deprecated media functions.
  • Encapsulated the plugin options page within an object class.
  • Fixed gallery and attachment tag links in tag-metabox.
  • Added an attachment_link filter so that %category% gallery-permalinks translate properly.
  • Properly redirect bulk operations and delete permanently operation in the Edit Gallery screen.

Shiba Media Library 3.4

August 20th 2012

  • Updated for WordPress 3.4.
  • Added Quick Edit functionality to images. Quick Edit capability is accessible in the Media Library and Edit Gallery screens.
  • Image ordering will now be saved in both draft and published modes.
  • Updated old javascript functions to use jQuery.

Shiba Media Library 3.3

August 31st 2011

  • Added ability to order images within Gallery objects.
  • By going into Galleries >> Options, you may now change the gallery shortcode used for viewing a Gallery object.
  • Gallery objects now have Shiba Widgets support.
  • The “Insert into Post” button should now appear on custom post types.
  • Removed image parallelization option. As outlined in Google Page Speed, new browsers now allow more than two concurrent connections per hostname. As such, the image parallelization option is no longer needed.

Shiba Media Library 3.2

February 16th, 2011

  • Updated for WordPress 3.1, RC4. Tested on WP 3.0 and WP 3.1,RC4.
  • Fixed bulk trash operation on Gallery screen.
  • Permalinks now work properly on network activation and deactivation in WordPress Multisite.
  • Columns from other plugins are now properly added in the Media Library screen.

Shiba Media Library 3.1

January 17th, 2011

  • Updated for WordPress 3.1. Tested in WP 3.0 and WP 3.1,RC2.
  • Fixed numerous bugs in the gallery query system. Gallery types should now work properly.
  • Cleaned up the plugin so that gallery objects are now always custom post types. As a result the plugin requires WP 3.0 and above. If you are using WP 2.9, then please download Shiba Media Library 3.0.

Shiba Media Library 3.0.3

November 25th, 2010

  • Fixed bulk operations in the Google Chrome browser. Shiba Media Library now has its own menu in the media screen.
  • Cleaned up the gallery tagging system so that tagged gallery images can now be properly ordered with order, orderby, numberposts, and offset arguments. This makes it much easier to enable gallery paging.

Shiba Media Library 3.0

August 13th 2010

  • Added ability to append image tags in bulk as requested by Peder.
  • Re-enabled Insert into Post button even for images that are already attached.

Shiba Media Library 2.9

  • Shiba Media Library is now updated for WordPress 3.0. It should work in 3.0 and 2.9+.
  • All your previous gallery objects should still work seamlessly in the new update.
  • Expanded image attachment and detachment functions are now better integrated into the standard WordPress Media Library interface.
  • You may set your gallery permalink structure by going into Settings >> Permalinks
  • Fixed PHP notices. Thanks to Writemcodeboy for alerting me to this issue.

Media Library Plugin 2.7

  • Added in the ability to parallelize your image links. This enables more images to be downloaded simultaneously, and improves page speed.
  • Also fixed some bugs associated with the permalink creation function. In particular, I refined the regular expression for gallery attachment images and added more rules for validating the gallery permalink structure.

Media Library Plugin 2.6

  • As requested by Keoshi, I have added in the ability to edit your entire gallery permalink structure.

Media Library Plugin 2.5

  • I just finished making some large changes to the permalink redirect code. If you are having permalink redirect issues, in particular with your feeds, then please download the latest version.

Media Library Plugin 2.4

  • Added most-used attachment and gallery tag views.
  • Permalink support and customization for gallery objects.
  • Expanded media and gallery search.
  • Plugin is cleaner and more secure.
  • Thanks to A.M. for making many of the great suggestions that went into this plugin update.

Media Library Plugin 2.3

  • Expanded gallery objects so that they may contain posts, pages, and other gallery objects; in addition to image attachments.
  • You may now assign thumbnails to galleries. This uses the Post Thumbnail system introduced in WordPress 2.9, so you will need at least version 2.9 and a gallery front-end that knows how to render posts to fully realize the power of this feature.
  • You can now navigate to gallery objects, just like you do with attachments. Gallery object pages are rendered using the gallery shortcode.
  • ** Thanks to Keoshi for making many of the great suggestions that went into this plugin update.

Media Library Plugin 2.2

  • Fixed a bug in Release 2.1 where Trash links for posts and pages no longer work properly. This is an important bug fix so please download the latest version of the plugin.

Media Library Plugin 2.1

  • Added bulk-actions, search, and date filter to the Manage Gallery screen. Now you can perform the same menu view operations on galleries as you can with posts and pages.
  • Integrated the Manage Gallery menu with the WordPress Trash system. Now you can move galleries to the trash, untrash, or delete them permanently.
  • Fixed various bugs with gallery links, trash links, as well as image tags. The gallery and tag system should now work a lot more smoothly.

Media Library Plugin 2.0

  • Allows you to tag your images. Through tagging, you can include the same image into multiple galleries.

Media Library Plugin 1.0

  • Allows you to re-attach multiple images to any post from the Media Library panel.
  • Enables bulk image detachments.
  • Works on WordPress 2.8

Related Articles

If you enjoyed this article, please help support our site.

Comments

  1. says

    Hi, i am very sorry to hear about the financial problems you face – and i know how that feels.

    i really like your plugins and like to pay for the latest update(s) – but i dont like to register at patreon.

    can i transfer money directly over bank account to you if you tell me the IBAN/BIC?

    so you can send the update to me per email, when you have the money?

    • ShibaShake says

      Hello Tom, so sorry for the late reply. Been crazy busy lately. First of all, thank you very much for your support and kind words.

      At this time, we can only manage Patreon. They have both credit card and Paypal options, and a good interface for messages and posts. Thanks for writing to us and once again, many thanks for your support and understanding.

    • ShibaShake says

      Well, it depends on what you are trying to do. As I understand it, Network Shared Media allows you to share images across multiple blogs. That is not the function of Shiba Media Library. I list what Shiba Media does in the article above.

  2. says

    Hello,

    I am using Titan theme, which also use inside Shiba Media Library Plugin.
    Some time ago I start using new plugin WP/LR Sync ttp://apps.meow.fr/wplr-sync/,
    which help me to download media files directly to site from my photo archive in Lightroom. Since version 2.0 there is new great function – plugin extensions (http://apps.meow.fr/wplr-sync/wplr-extensions/)
    which helps create collections or galleries in Lightroom and sync them with Themes/Plugins for which author has developed extension.

    There is a little supported themes/plugins, but author wrote:

    ” If you would like to have your collections available in your gallery plugin or theme through WP/LR Sync, contact your theme developer and let him know about this. I will collaborate with the developer.”

    So is it possible the author to collaborate with you, to make WP/LR Plugin extension to work with your Shiba Media Plugin? I much interested to sync collections in Lightroom directly to galleries in Shiba Media.

    If it is possible, how author of WR/LR sync can contact with you? By mail?

    Thanks a lot,

    Eugene Pugach

    • Gerd says

      That”s a pretty good question from Eugene. I use WP/LR Sync too and it”s a quite good tool to stay synchronized between WP and LR but i see since long time no response unfortunately from the gallery author.

  3. says

    HI, I am having a problem with the shiba gallery.
    Problem is: Images dont show up at all.
    Haven’t edited the site for a while, but updated plugins and wordpress to the newest version (4.2.2.). I run Core Theme 3.4. which uses the shiba gallery.

    Already tried to deactivate all other plugins, but no result.
    I cannot add pictures – button is missing.
    Pictures show on website and are on ftp-server, but dont show up in wordpress admin.

    Will there be a bugfix? What can I do until then?
    Appreciate your help.
    Thanks,
    jens

    • ShibaShake says

      What version of the plugin are you running? If the plugin was included with the theme, then it likely resides with the theme and is an older version.

  4. cyberfunk says

    I think I tracked the issue down to the shiba-mlib-add.php file. I compared both versions of that file from shiba media library version 3.3 and 3.9 using filemerge in Mac’s developer tools. There are significant differences between the two files which may be what was causing the button not to function correctly. I downloaded the old shiba media library version 3.3 and just uploaded shiba-mlib-add.php to the new shiba media library 3.9 replacing the newer version completely. It seems that everything works again and the button reverted to the working “Add New” version from 3.3. I can now add new images. I’m sure my website will probably explode as a result of this inelegant solution but everything is working for now.

  5. cyberfunk says

    Hello,
    I can’t add new images in the Gallery with WordPress 4.2.2 and Shiba Media Library 3.9. The “Upload Or Attach Images” button doesn’t function at all. I click on it and nothing happens. I reverted to WordPress 4.1.5 and Shiba Media Library 3.3 and everything works again. I inspected the button in Firefox debugger and after updating the function changes from a form with inner html

    <input id="addimage-to-gallery" class="button-secondary action" type="button" name="addimage-to-gallery" value="Add New"…

    which works beautifully to

    Upload or Attach Images…

    with no form surrounding it. This new button doesn’t work at all. I can send full before and after upgrade screenshots from the debugger if that helps.

    • ShibaShake says

      I just tested 3.9 version in Chrome and everything seems to work fine. Perhaps there is some conflict with Firefox.

  6. Dani says

    Hi —

    For some reason, when I go into a gallery and edit it, the option to upload/edit photos (at the bottom) disappears 90% of the time. When it doesn’t disappear, I click “add photos” and it freezes the page entirely.

    Am I doing something wrong? Is there a different way to edit a gallery?

    • Dani says

      Sorry, figured it out. Needed to install the latest version.

      However, another issue — is there a way to add captions to these gallery images? Can’t see how to make them appear.

      Thanks!

  7. Amy says

    Hi there, I’m on WP 4.1.1 & having the same issue noted above. When I log into the admin, go to Galleries > Photo Gallery & click Edit I get a 404 error. It happens on the other gallery as well. I appreciate any help 🙂

    • ShibaShake says

      Exactly which plugin are you using? There is no Photo Gallery option in Shiba Media Library, so perhaps you are using something else.

  8. says

    I must be on another planet. I downloaded the WP Media library plugin but there is no ‘media-library-plus.zip file’ for me to upload according to your instructions. All I have is a js folder and in the Developer they are all php files. No plus zip file.

  9. Jon says

    Hi! I am trying to move from one theme to another. Right now I am using Shiba and would like to carry over my galleries based on tags to the new theme which uses another gallery plugin – WP Simple Gallery.

    Do you know of a way to have that other plugin see which images are in the Shiba Galleries? I am trying to edit the code but cannot find a solution yet.

    The code I believe I should edit is this:

    private function gallery() {
    global $post;
    $gallery = get_post_meta($post->ID, ‘wpsimplegallery_gallery’, true);
    $gallery = (is_string($gallery)) ? @unserialize($gallery) : $gallery;
    $html = ”;

    if (is_array($gallery) && count($gallery) > 0) {
    $html = ”;
    foreach ($gallery as $thumbid) {
    $html .= $this->thumb($thumbid, $post->ID);
    }
    $html .= ”;
    }

    return $html;
    }

    Would appreciate any help / info, but definitely understand since it isn’t your plugin.
    Thanks!!

  10. Shahrukh Khan says

    Hi Shiba Shake,

    Thanks for Sharing an awesome post like this. It had a very good and detailed explanation

    I want my permalink to be in form of /%shop_name%/gallery/%gallery%.
    Every user has a custom user_meta = shop_name.

    Thus if my user has shop_name=shoppers stop and a gallery whose title is Washing Machine then my user URL should be http://localhost/shoppers-stop/gallery/mashing-machine

    When i go to http://localhost/shoppers-stop/gallery/I want all the galleries of shoppers-stop should be listed. Instead the index page is being shown.

    How can I make it possible?

  11. Matías says

    Hi, I have a problem with the plugin and its compatibility with wordpress 4.1. When I try to change the gallery, send me a message 404 NOT FOUND.
    You know how I fix it?
    Thank you very much.

    • ShibaShake says

      Which page sends you the 404 code? What do you mean by “change the gallery”? Do you mean change the gallery permalink? Step by step, as much detail as possible.

  12. Martin says

    hi! I’m having troubles with the Media Library for a few days. I have this error when I try to add new images to my gallery: Fatal error: Call to protected method WP_List_Table::get_column_info() from context ‘Shiba_Media_Library_Add’ in /path_to_plugins/shiba-media-library/shiba-mlib-add.php on line 185

    The error is always visible when you are editing or creating a new slide at the bottom of the page. I’m trying to disable other plugins to test but it doesn’t work.

    I had other problem like a month ago, but was solved re-installing the plugin. I tried it but doesn’t work.

    I’m using WordPress 4.1 and Shiba Media Library 3.8.2. The other plugins are Jetpack 3.3, Related Posts by Zemanta 1.11.1, SNAP 3.4.7 and WordPress SEO 1.7.1.

  13. Amir says

    Hello Shibashake
    I have a question, I will appreciate if you answer me. Few years ago I worked with blogspot. In there we could connect blogger to our picasa albums. So in editor panel when I wanted to put a image in article, It showed me albums of pictures in picasa.

    It was so nice because images from a specific article was in related album name in picasa.

    But wordpress does not have this feature, Its a mess, its a disaster. I want to see them in folders (not a gallery). Is this what your plugin do?

    Thanks for your time

  14. says

    Hi there

    I’m using you plugin and it works fine. I can bulk update tags on my images in the media gallery and I see the new tag values.

    However when I open my gallery on my website it does not filter the images based on the new tags I just added

    Also when I disable your plugin the tags I just added disappear

    Is there something I’m missing?

    • ShibaShake says

      The way the tags work in Shiba Media Library is that they allow you to add images in bulk to a gallery. For example, I could tag a set of my vacation images with vacation-2014. Then, I could create a gallery and add the tag vacation-2014 into it. The gallery would then get populated with all images that have that tag.

      If you add two tags (e.g. vacation-2014, vacation-2013), then the gallery will get populated with all images with tag vacation-2014 *OR* vacation-2013.

      All images that are *manually* added to a gallery will always be shown. Therefore, if I manually add three images of Disneyland into my vacation gallery, then they will also be shown regardless of their tags.

      Also when I disable your plugin the tags I just added disappear

      The tags are still stored in the database. They just are not shown in the interface because the tag column is added by my plugin.

  15. Abby says

    Hi,
    I’m using Jupiter theme (themeforest) for my magazine and since I couldn’t create any new gallery for a few day I came here to understand why.
    I’ve now realized that I’ve been using a rather old version of the pluing (3.6!) so that might be the issue.
    the point is that I’ve never had an “Update Plugin” message for shiba so now, If I want the latest version I need to uninstall and re-install it (weird, never happend w/ any other plugin). My question is: will I lose the existing galleries and pictures in doing so?
    is there anything else I can do to avoid uninstalling the plugin?
    thanks lot.

    • ShibaShake says

      The galleries and pictures will all be there after re-install. If you want to avoid uninstalling the plugin, you can ftp the new files over to your server. This is what I do for my live sites. I also test everything out on a mirror site first before updating my main sites.

      This plugin is not in the official WP directory, which is why you don’t get the usual update messages.

  16. says

    Greetings. Having a bit of trouble since upgrading to WordPress 4.0.1. When I try to drag and drop to rearrange gallery pics, the images won’t move. I’m currently using Shiba Media Library 3.8.2. Caould you please let me know if there is anything I can do to correct this yet. Thank you.

    Mel

    • ShibaShake says

      I just tested this on my test site and it works fine. Try testing this on a default theme with other plugins turned off. I tested it on TwentyTen and it works fine with it under WP 4.0.1.

  17. says

    Hi, i have a question or feature request.

    Is it possible to select an operator for the gallery tags?

    for more complex tagging it would be a naice to have to set a tag condition “AND” for tag – so an image has to have tagA AND tagB to be included in a specific gallery.

    WP_Query() allows to select an operator “tag__and”: http://codex.wordpress.org/Class_Reference/WP_Query#Tag_Parameters

    is this allready possible and i just didnt found out how or is this something not implemented?

    BTW – thanks for your excellent plugin!

    greets

    Tom

  18. says

    Hi, just another small issue: the readme.txt of “shiba-media-library” says:

    === Media Library Plus ===
    Contributors: shibashake
    Donate link: http://www.shibashake.com/
    Tags: media library, image attachment
    Requires at least: 2.8
    Tested up to: 2.8
    Stable tag: 1.0

    this was confising a bit, but in “shiba-media-library.php” the correct plugin metadata was found:

    /*
    Plugin Name: Shiba Media Library
    Plugin URI: http://shibashake.com/wordpress-theme/media-library-plus-plugin
    Description: This plugin enhances the existing WordPress Media Library; allowing you to easily attach and reattach images as well as link an image to multiple galleries by using tags.
    Version: 3.8.2
    Author: ShibaShake
    Author URI: http://shibashake.com
    */

  19. says

    Having a problem with galleries using the Titan theme since updating to WP 4.0, can’t seem to add or edit. Getting the following error trying to access any gallery:

    Internal Server Error

    Using the plugin Shiba Media gallery which came with the theme. Get this error when opening any gallery.

    Could you please have a look.

    Thx a million.

  20. Viresh says

    Hi,

    Thanks for this great plugin. Just curious, does this plugin allow to delete files permanently from uploads folder when you click on “Delete Permanently”. Because by default, it doesn’t delete files from disk.

    Thanks,
    Viresh

  21. says

    Hi there,

    i have your Media Library plugin in use on a developer page (WP 4).

    When the plugin is active, i cannot add images into an article from the “add media” button at article-edit page. Iclick on an image in the library, but nothing happens. i cannot click on “insert Image”. Close button works.

    when i deactivate the plugin, everything works as expected.

    greets, tom

  22. Mick says

    Hi,
    First of all thanks for the great plugin. We installed it yesterday and everything’s working fine except two things:

    1. We are associating each gallery with a category but when we go under the ‘category’, the gallery posts don’t show up. Anyways to show them under the category they are associated with?

    2. All the Gallery URLs are showing up http://mysite.com/?gallery=some_title . We want to instead display them as – http://mysite.com//some_title for SEO reasons. We tried to put %gallery% in permalinks and %category%/%gallery% but it’s not working, can you please help?

    Thanks,
    Mick

    • ShibaShake says

      Sorry for the late reply. Was fighting off a flu.

      1. To change what post types get shown, I hook into the ‘parse_query’ filter. This includes *all* queries though, so you would need to condition check properly to determine where you want to show what post types.

      Here is an example category page with gallery objects-
      http://shibashake.com/blog-art/category/angels-and-devils

      This is an older article, but it provides a bit detail and points to the files to look at to find the proper filters-
      http://shibashake.com/wordpress-theme/mastering-the-wordpress-loop

      2. The plugin tries to prevent permalink conflicts. Try doing /gallery/%gallery%

      • Mick says

        Thanks a lot for the reply and hope you are feeling better now…

        We are really stuck on one other thing i.e. the ‘detach’ function is not working for images that are added using ‘tags’. We searched your site and saw the same issue reported by another user and an old response of yours saying that it only works for images that are manually added as the parent-child relationship is missing for one’s added via tags.

        But we would like to know is there any workaround for this issue? Like going into the database and deleting the ID of that image or something? Please help…

        Thanks,
        Mick

        • ShibaShake says

          Yeah, the detach function is actually not very relevant now. There are two ways to attach images –
          1. Picking the images that you want using the Upload and Attach Images button.
          2. Using tags.

          Using method 1, you can add or remove whatever images you want using the regular WP gallery interface.

          Using method 2, you can add or remove entire sets of images by adding or removing tags. If you want to remove a particular image from a “tag group” simply remove the given tag from the image. You can do this in bulk from the main Media Library screen, or you can do that singly by editing the image.

          For interface simplicity, the tag operand used is OR. For more complex tag expressions, you can hook into the posts_where WP filter.

  23. Jordan says

    Hey! I just downloaded v 3.6 and installed on WordPress 3.5.1. I love the way you have everything set up. It’s -much- better than any of the other media library plugins I’ve found.

    I’m just wondering—is there any way I can use tags from custom taxonomies I’ve already created? I’m creating a portfolio with three different sections (case studies, videos, and an image gallery) which are to be using the same set of tags. So it doesn’t really work for me to use the Shiba-specific Attachment Tags (which I imagine would otherwise provide me the functionality I need).

    If there is any way for me to rig this up, that would be amazing.

    • says

      The plugin uses the standard WP ‘post_tag’. Possibly you could replace all instances of ‘post_tag’ with your own taxonomy, but I am not sure if that will cause other issues.

  24. says

    I have been testing the media library plugin a bit more.
    There’s one bug: if you try to delete a large number of pictures from the media library, your pluging provokes an “URL TOO LONG” error.
    The same number of pics, deleted without your plugin get deleted without a problem.
    easy to test: set media library to show 100 attachments, select them all, select bulk action “delete” and you got the error.
    Second thing (it’s not an error, just annoying, and WP has exactly the same problem):
    if I upload a few hundred pictures and select a tag before clicking on “insert into post” the tag is only applied to the last uploaded picture. I have to return to the media library, and select all uploaded pics, apply the tag and then, finally, all my attachments have the tag.
    It would be nice to apply all the settings to all the selected attachments in one go. But I guess you just use the core procedure from WP there.

    • ShibaShake says

      Thanks for the URL too long bug report. I will look into it.

      But I guess you just use the core procedure from WP there.

      Yes, that is right. In the media manager pop-up, the interface to the right only applies to the current selected image. For example, if you changed the image title, you would not want that to be applied to multiple images. Similarly, it would be inconsistent to apply tag changes to multiple images.

      As for categories, there may be other plugins that support it, or feel free to modify the plugin to better suit your purposes.

  25. says

    I tried shiba-media-library, and it does what it promised, it works great.
    But it’s completely useless for me. My blogs are based on categories, not tags. My Table of Contents page is category based, people search and find articles based on categories, when they navigate around, they stay in the category of their interest, etc, etc. Tags are only used by flickr and technorati and are in reality completely useless when it comes to helping users find what they are looking for.
    What I am looking for is
    – a way to see only attachments that belong to one category in the media library
    – a way to “bulk” add my existing pictures to a category
    – a way to “bulk” add all pictures I upload to a post via Media Library to the same category as my post
    I hoped to be able to do all that with shiba-media-library, but now it turns out that I can’t do anything of that at all unless I start using tags.
    Nevertheless, I guess I am not the only one who has well structured blogs based on categories. So my question is: is it somehow possible to have your nice shiba-media-library with just one difference: not using tags but categories?

  26. jumapili says

    First off please note I am running wordpress on windows 2008.

    So I am having a problem. When the Shiba Media Gallery plug in is activated. And I attempt to Attach Images to a page. WordPress throws a

    404 – File or directory not found.
    The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

    http: //www.everythingcyber.com/wp-admin/upload.php?s=&_wpnonce=56899fca6a&_wp_http_referer=%2Fwp-admin%2Fupload.php&action=-1&m=0&paged=1&attachments%5B224%5D%5Bpost_excerpt%5D=&attachments%5B224%5D%5Burl%5D=http%3A%2F%2Fwww.everythingcyber.com%2Fwp-content%2Fuploads%2F2013%2F04%2F08_Thumbnail.png&attachments%5B209%5D%5Bpost_excerpt%5D=&attachments%5B209%5D%5Bu

  27. ananth says

    few quickies
    – is there a way to display the tags below the images?
    – trying to use it with ‘gallery carousel without jetpack’ for fullscreen carousel, but doesnt seem to work. is it a known issue?

    thanks in advance

    • says

      I just tested the ‘gallery carousel without jetpack’ plugin on my test site and it seems to work fine with Shiba Media Library. Try disabling Shiba Media Library, and then just test the carousel out on a regular gallery to see if it works. There may be a conflict with something else.

      As for displaying tags, that would depend on the front-end gallery that does the rendering, i.e. ‘gallery carousel without jetpack’. You would need to extract the tags and then add that into the rendering of the gallery.

      Shiba Media Library just deals with the back-end stuff.

  28. says

    I’m currently running WordPress version 3.3.2 with Shiba Media Library 3.3 installed.

    My site is designed to display ticket stubs by year. Each year has a page, and all images of stubs for that year are attached to the page. The page then displays the gallery for that page.

    I’ve recently decided that I want to allow for another form of navigation that allows users to view the images by opponent, as well.

    So what I’ve done is created one Gallery for each opponent, and attached a single Tag to each gallery (i.e. one gallery called “Auburn” with a single tag attached to it called “auburn”

    I then created a page that links to each of the galleries, so when I open the Auburn Gallery, I can see all tickets where Tech played Auburn.

    So it seems to be working OK, but I’ve found one problem…when I update the gallery, it changes the Menu Order property on my tickets on the pages that they are actually attached to. So let’s say that Auburn was the fifth game of the 1950 season…if I update the Auburn Gallery, and then go to the 1950 season, the menu order for that Auburn ticket will have changed, and it now displays out of order.

    To get around this I’ve simply been creating the Galleries first and then just tagging the images after…this seems to keep the problem from occurring. However, I’d like to go back and add notes, descriptions, etc. to the galleries after the fact without having to worry about the images being displayed out of order on their base page.

    Is there something that I can do to get around this? Please feel free to e-mail me at the address above.

    Thanks!
    Brad

    • says

      OK, so I did a bit more reading and found where you specified that only one ID can be stored.

      Is there a way that I can modify the code to not update the Order ID in the database?

      I think I’m going to update all of my image ID’s with an intelligent Order ID (i.e. the date of the game). Then no matter what gallery it displays in it will be in the correct order.

      • says

        Hello Brad,

        The easiest way to change ordering attributes is to do it on the gallery shortcode itself – using the orderby attribute.

        If you are using Shiba Gallery on the frontend then you can use orderby=”shiba_menu_order” to get multiple orderings.

        If you want to change the ordering code, it is in shiba-mlib-add.php.

        • Brad says

          I’m not sure what the difference is between orderby=”shiba_menu_order” and orderby=”menu_order”

          Does it do something different?

          • Brad says

            So I’ve found the code where you’re updating the menu_order in the mySQL database:

            function update_media_menu_order($media_items) {
            global $wpdb;
            $i = 1;
            foreach ($media_items as $item) {
            $query = $wpdb->prepare(“UPDATE $wpdb->posts SET menu_order = %d WHERE ID = %d”, $i, $item);
            $wpdb->query($query);
            $i++;
            }
            }

            What I’d like to do is comment this out to preserve the original menu order of my images. If I do this, will the shiba_menu_order still be updated by dragging and dropping the images in the gallery edit window?

            i.e. will it break anything else?

          • says

            shiba_menu_order is stored differently so it shouldn’t affect that. I don’t think it will break anything else, but it is not something I have tested for, so I cannot say for sure.

            I would try it out on a test site first, and see how it goes.

  29. says

    First of all, thank you for this great plugin…it is exactly what I have been looking for. I do have few questions (apologies if you already answered these, but I looked through the previous comments and could not find an answer):

    1. Since installing the media library plugin, my images are no longer inserted into the post code with a title tag. Do you know how to include this?

    2. I want to make a gallery of galleries with your gallery plugin, but I can not figure out how to populate it. Any explanation is appreciated!

    Thank you!

    • says

      my images are no longer inserted into the post code with a title tag. Do you know how to include this?

      Hmmm, not sure what you mean here. Do you mean when you click on the Add Media button in the Edit Post screen and then insert an image, something is missing from the inserted html? If you could give me a concrete example, e.g. this html was generated before, and this other html was generated after that would be helpful.

      I want to make a gallery of galleries with your gallery plugin

      Create each gallery as a Gallery object. Tag each gallery object you want to include with the same tag. Then just create a parent gallery object with that same tag, and click on “Only Galleries” in the Edit Gallery screen. The radio button for “Only Galleries” is right under the title of the gallery.

      If you are using Shiba Gallery Plugin you can also include the relevant gallery ids in the ids list or include the relevant gallery category. E.g.

      [gallery ids="1,2,3,4"]
      
      [gallery category="1" post_type="gallery"]
      
    • says

      You can do a tag search by using the search box at the very top of the media screen. There is a drop-down menu to the right of it that allows you to search based on title or tags.

      • Wilco says

        Sorry, but it is not clear to me how the tag search works. I added tags to some images, but when I select “tag” from the drop down menu, add a search term in the text field and click the “search media” button, I see all images. What goes wrong here?

        There is also a “filter” button next to the text field, but that doesn’t work either. Any help is much appreciated.

        • ShibaShake says

          In the text box next to the “Search Media” button, type in the search term. If you want to search based on tags then go to the drop down menu and select “tag” then click on “Search Media”.

          I just tested it on my site and it seems to be working fine.

  30. says

    Hi,

    I have installed and activated Shiba Media Library plugin 3.4.5 on a WP 3.4.2, and no detach option can be found in the Media Library, either in the dropdown menu of Bulk Actions or elsewhere. What might be wrong? (A couple of other gallery plugins sit in the Plugins directory, but none are activated.)

    Thank you.

    • says

      When you go the the Media >> Library screen, is there a section up top labelled Shiba Media Library? If so, the drop down menu in that top section should have the detach options.

      Otherwise, I would switch to a default theme, turn on debugging options, and see what errors come up.

      • Aficionado says

        My mistake, I did not realize there is another “Bulk action” drop down menu at the top.

        Thanks a lot for pointing this out. Detachment works great.

        Unfortunately, now it is attachment that stopped working, because the URL length exceeds the server’s limit.

        Somehow the URLs setting up the attachment grew huge (almost 10,000 character long) after activating the plugin, as they seem to contain all current attachments as variables, for some reason.

        Is this normal behavior and the server limit is at fault?

        • says

          No, that should not happen.

          I just tested things on my test server and could not replicate what you describe.

          Some things to try on a *test site* –
          1. Turn off the plugin and then try attaching the same image using the standard “Attach” link.
          2. Turn on the plugin and then try attaching an image using the “Attach” link.

          I would try this on a default theme with no other plugin activated.

          • says

            Hi,

            The same issue started happening in my media library as well after using the plugin for over a year.
            The problem isn’t only attaching a picture to a post which gives this error: “414 Request-URI Too Large
            The requested URL’s length exceeds the capacity limit for this server.”
            But also anything I try to do in this screen, searching, editing information etc.
            Disabling and enabling the plugin didn’t help but interestingly this error is user specific – I get the error with the admin user but not with a different user.
            Please help! I don’t want to change plugin because your’s is great!

            Thanks,
            Mashav

          • ShibaShake says

            I am currently working on updating Shiba Gallery for HTML5 and WordPress 3.6. I plan to update Shiba Media Library next, but all this will take some time.

            My guess is that the error occurs when too many items are included in the bulk operation. Once it occurs though, some state may be kept in the browser cache/state that causes it to happen again. Try –
            1. Closing the window and opening another.
            2. Logging out and then logging in as the same user.

            Let me know what happens. The more details the better, as that will help with fixing the issue. Thanks.

          • says

            Hi and thanks for the answer.
            So the problem now is larger than I initially thought:
            * Same error occurs when I try to attach even only one image to a post (looks like it’s attempting to attach many other images thought by the url…)
            * With a new user I created it’s messed up as well the same way.
            * Updating and editing information in the “media” page isn’t updating after leaving page.
            * logging in and out didn’t help
            * new window or even a window in a different browser didn’t help
            * trying to use the plugin on a new testing site failed as well
            * deleting it altogether and reinstalling – didn’t help
            * installing an older version (3.4.7) didn’t help

            This plugin was working perfectly until now and I already have all the galleries etc working with it so it’s gonna be super difficult to loose this plugin :/

            I’m pasting the line of the long url it’s trying to use:
            htp://staging.eatingcookingfooding.com/wp-admin/upload.php?s=&_wpnonce=de5dc24c04&_wp_http_referer=%2Fwp-admin%2Fupload.php&action=-1&m=0&paged=1&attachments%5B11665%5D%5Bpost_excerpt%5D=A+group+pic+-+thank+you+all+for+coming%21%21+&attachments%5B11665%5D%5Burl%5D=http%3A%2F%2Fstaging.eatingcookingfooding.com%2Fpublic_html%2Fwp-content%2Fuploads%2F2013%2F08%2FDSC_4681.jpg&amp …

          • ShibaShake says

            Ok, I am a bit confused. Can you run me through exactly what you are trying to do and in what screen? Step by step?

            In terms of attaching images to a gallery, the best way to do that now, is to edit the gallery, click on the “Upload or Attach Images” button, and select images using the popup.

            When did the problem start occurring? Is this on WP 3.6?

          • says

            Hi
            so yes, the problem occurs with your 3.6 version and the 3.6 WP version. It’s not the gallery what I’m trying to do is this:
            1. goto media -> library
            2. select a picture and click on “attach” (attach to a post on the media table).
            3. select a post to attach to -> select
            4. in result I get the “too long url” error page.
            same thing happens when I try to attach a bulk of pictures to a post using the bulk actions drop down, or even when I try to use the media search box.
            The problem started only about two weeks ago and before it was doing just fine. Deactivating the plugin brings everything back to working as usual with no errors – but I really want to keep using your great plugin.

            hope you can help. You can also contact me throw email to make it easier.

          • ShibaShake says

            Thanks for the explanation. I will look into it after I am done updating my Shiba Gallery plugin.

  31. Jony says

    Hi, great job! It’s exactly what I was looking for.

    I have a quick question, how can I load the gallery in different template of page that is different from my blog structure because layout and structure must be different.

    Thanks!!!

  32. says

    I’m having an issue on a client site. The tags column is no longer showing in the media library. The capability of adding/setting tags is there, but I can’t see the tags in the library display.

    I am using codepress admin columns and I added some additional columns to the display; that worked in conjunction with yours a few days ago but (since 3.4.1 upgrade?) I can’t get the tags to show any more. I tried deactivating and reactivating shiba media library, but that did not help.

    Any ideas?

    • says

      I figured out the answer. It was my own fault, nothing wrong with the plugin. I had neglected to add up all my percentages when I added columns to the display, and the tags column was just getting pushed off the screen because I had well over 100% allocated. Duh. Sorry to bother you.

  33. kb says

    Hi

    I too have the “cheatin’ uh” error when adding images to Shiba galleries since upgrading to WP 3.4 (and now 3.4.1.

    This happens with Twenty Eleven, as well as Studiopress Genesis (parent) and BeeCrafty (child) themes.

    It would seem to be a conflict between SML and the latest WP – is there a fix?

    Thanks
    K

  34. says

    Since the last WordPress update (3.4) I won’t be able to add new images to a gallery. Via the dashboard I open the gallery and use the ‘Add New’ button to add a new image, but when clicked I get an error which prompt me I’m cheating? The Dutch error shows ‘Vals aan het spelen?’ which means ‘Are you cheating?’. I’ve added a new WordPress user (with admin rights), but that doen’t seems to matter.

    Screenshot of the error: http://cl.ly/HS5W

  35. says

    Tried to install your media-library-plus cause cannot find anything really useful to order the content of a wp gallery.
    But after install and activate the plugin, an error 500 appears (solved when I remove the plugin folder).

    These are the logs.

    PHP Warning: require_once(/var/www/helena/wp-content/plugins/shiba-media-library/shiba-mlib-parallel.php): failed to open stream: No such file or directory in /var/www/helena/wp-content/themes/Anan/plugins/shiba-media-library/shiba-media-library.php on line 47
    [Sun Jun 10 16:32:26 2012] [error] [client 85.58.62.158] PHP Fatal error: require_once(): Failed opening required ‘/var/www/helena/wp-content/plugins/shiba-media-library/shiba-mlib-parallel.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /var/www/helena/wp-content/themes/Anan/plugins/shiba-media-library/shiba-media-library.php on line 47

    Any lack of files? any comment?

    • says

      Dear Fonsito,

      The problem is your theme is already using an *older version* of shiba-media-library.

      If you want to test the plugin, switch to the default TwentyTen or TwentyEleven theme, and reinstall the plugin.

  36. Tom says

    Shiba is conflicting with NextGen gallery. The plugin was included with a theme and it’s limitations require the use of NextGen gallery. The issue is caused by the $this->helper->admin_init(); line in the shiba-media-library.php file on line 182. If I comment it out then NextGen works but then I can no longer add images to the Shiba galleries. I hope since Shiba contains fewer lines of code that it will not be to hard to fix this issue. I await your reply. Thank you very much.

    • says

      Hello Tom,

      I would not advise using both Shiba Media and NextGen together. Both plugins expand on the native media library and does similar things. Structurally, creating some galleries in Shiba Media and others in NextGen would be messy. Programmatically, the two plugins operate in the same space, but each go in a different direction. As a result, there will likely be many conflicts in many places.

      The helper admin_init function loads many of the elements in Shiba Media, thus disabling that pretty much nullifies most of the plugin.

      Probably the cleanest way to fix this issue is to get the theme creator or hire someone to adapt the theme to work on NextGen.

  37. says

    Just the plugin I was looking for, after my client attached all the images to posts, stopping them getting picked up by some custom functionality I added.
    Many thanks. Saved me time manually updating the d/b. :o)

  38. says

    I respect what you did here. A gallery with custom post types is something I’m after for some time now, and it seems like nobody have every outdone you. I’m having some difficulties however.

    1. First when I click on the thumbnails they do not work. Only the first picture is displayed as main and cannot be changed. I’ve tried changing the slider type, but with no avail.

    2. Permalink structure does not work. I’ve tried adding at: Gallery Structure: %gallery% . Then I tried to open site.com/gallery/gallery-name instead of the site.com/?gallery=gallery-name and it only redirectects me to site.com/?gallery=gallery-name again. Maybe it has something to do with my WordPress MultiSite installation.

    Can you help me with these?

    • says

      1. I am not sure what you mean. Is there a page that I can look at? What do you mean by “slider type”?
      2. Try “/gallery/%gallery%”. It does not allow just %gallery% because that would result in a permalink conflict.

      • says

        I’ve tried changing most of the gallery types (tiny is what I’m after, but it loads only a list of thumbnails, doesn’t even look like the one you have displayed) noobslide, galleria… and none of them loads fine. Is it some javascript problem? Maybe the plugin can’t access the js files or something?

      • says

        I’m sorry for replying for the third time (you can delete my other posts) but now I’ve discovered that it is theme related. I’ve changed to the default one and it loads fine.

        Do you have any recomendations on how should I include the galleries into my theme?

        Thanks

        • says

          I fixed it. All I needed to do is add before to enable the hooks for the javascript files. Sorry for the fourth posting, but this is the solution to my problems.

          So if your gallery doesn’t display as it should in your theme, this is the solution folks. Now back to work 🙂

  39. says

    Sorry for double posting, but I forgot to write the error message: Fatal error: Call to a member function admin_init() on a non-object in /home/mozte175/public_html/clientes/tiosam/wp-content/plugins/shiba-media-library/shiba-media-library.php on line 182

      • says

        I’m having the same problem. The theme I am using uses Shiba, but I want to use NextGen for my photo galleries. There appears to be a conflict

        • says

          I applied a small fix to the shiba-media-library.php file by changing around line #183 from: $this->helper->admin_init(); and changed it to: $vyep = $_SERVER["SCRIPT_NAME"];;
          if ($vyep =="/wp-admin/post.php" OR $vyep =="/wp-admin/post-new.php" ){
          $this->helper->admin_init();
          }

  40. Matt says

    hi! I really like the plugin, but I have one question. If I have re-ordered images within the gallery (and the gallery is based on a tag), the gallery displays perfectly with the [gallery] shortcode.

    However, when I drill in to view an image, the next/previous links are totally wrong. They seem almost random, or they have some relationship to when the images were uploaded. I am using the previous_image_link() and next_image_link() in my single image php page. What am I doing wrong? Help! Thanks!

  41. says

    I purchased a theme for wordpress for a Realtor. The plug-in that feeds the newest homes for sale is having this issue with the media library.

    Fatal error: Call to a member function init_admin() on a non-object in /home/content/18/6640618/html/wp-content/themes/Hermes/plugins/shiba-media-library/shiba-media-library.php on line 163

    ANy idea how to fix. No one seems to have an answer and I can’t rebuild the whole site. Thanks!

    • says

      Hmmm, the only thing that jumps up at me is that the plugins directory seem to be underneath the themes directory, which may cause some problems. However, it is difficult to say without doing onsite testing.

  42. Yiftach says

    Just so you’d know – When listing the images currently attached to a certain gallery you check for the existence of “edit-attachment-rows.php”, and if it exists you assume the site is running WP 3.1 or bellow.

    On some occasions (Normally due to an inexperienced develpoer) the site might become a mush of several WP editions and so you might end up running a version that’s higher than 3.1 but still have that file.

    Perhaps you might find a more reliable way to determine what version the site is using?

  43. bschrader says

    I am currently using your gallery and media plugin. I have seen watermark plugins that will auto watermark images. Do you have any suggestions of one that will work with your plugins and the stock madia library.

    • says

      I currently don’t use watermarks and have not looked at watermark plugins.

      If you find one that works well but there are issues with the gallery or media plugin, let me know and I will look into it.

  44. says

    hi there!

    i’ve been using your plugin for long, but now I found a problem after upgrading wp to 3.2. Thing is that images ordering doesn’t work properly. I set numbers for each particular photo in a gallery and the gallery ‘remembers’ only some of the numbers, changing all the rest to 0, and the clear sorting button doesn’t work, and it’s all messy really because you can’t order images as you want, i.e. menu order. Why?

    • says

      Hello Kat,
      menu_order is a WordPress core feature. Currently, it is not supported in the plugin, but I am working on adding it to Gallery objects. It will be included in the next update.

      However, menu_order is stored in WP core as a one to one relationship – i.e., each image can only have one menu order number. If an image is included in multiple galleries using tags, then menu_order will not work properly because it will only remember the last order number.

      I will include a different way to store image order so that it allows a many to one relationship but since it is not a WP standard, it will only work with the Shiba Gallery plugin and other front-end plugins that specifically support the feature. I will write more about this when I release the plugin update.

  45. Carol Nichols says

    I was looking for a WP media library management plugin, and from my search results your plugin looked like it would be very useful, but upon coming to this site and unexpectedly seeing all the pictures of half-n—- made-up women, I don’t think I will be using your plugin.

    You may not care, but I wanted to let you know that your site design is off-putting to some people in case you may not have realized that.

  46. says

    Hi,

    2 weeks ago i had problems with my wordpress theme i buyed, contacted the designers and they found out that the problem was this plugin.
    My problem was that i can’t put images anymore in a billboard on the homepage because of the INSERT INTO POST button was disabled or gone. Disabled the plugin an now everything works again.. maybe you can do something with it.

    Grtz, mia

  47. says

    Looks like a great plugin but I have two questions:

    1. Is there a way to setup pagination with the gallery?
    2. By default it seems all my photos in the gallery are linking to their attachment page as opposed to the full sized image directly. I can’t seem to find anyway around this. This is a fresh install on a new theme with no other plugins activated.

    Thanks

  48. sonic says

    Hi,

    I need this function: when user edit article, he can use media library to insert image, but only the image he upload it (he can’t use image that upload by other user)

    how could I implement it ?
    thanks.

  49. says

    Just a heads up that your plugin breaks the ‘Insert into Post’ button for the Media library pop-up when using TinyMCE and the Media Bar outside of the Post Editor (/wp-admin/media-upload.php?post_id=0&TB_iframe=1&width=640&height=390).

  50. Jack Johnson says

    Hello –
    I just upgraded to WP v3.2 & discovered that there seems to be a compatibility issue with the Media Library plugin – I’m no longer getting pretty permalinks on new images I add. Has anybody else reported this?
    Thanks,
    Jack

    • says

      Hello Jack,
      I am could not duplicate this on my test site. Are the new images attached to a post or gallery? (not with tags but with the Attach action).

      Currently, only images that are attached have pretty permalinks. I believe this has always been the case and is not special to 3.2.

      • says

        Hello –

        If I insert an image into a post (either from the media library or by uploading), it does get the pretty permalink. But if I upload it to a gallery, it shows as attached to that gallery but gives me this as the URL when viewed from a Page set up for the gallery:
        http://www.jackjohnsonphoto.com/?attachment_id=1443
        The Page for that gallery includes only this (as it has all along):
        [gallery id="931" order="DESC" orderby="ID"]
        If I insert that same photo from the gallery into a post, I get this URL:
        http://www.jackjohnsonphoto.com/wp-content/uploads/2010/05/MG_9464-6_flat_sig.jpg
        Any suggestions greatly appreciated!
        – Jack

        • says

          Hmmm, what version of the plugin are you using?

          Two things to try –
          1. Go into Settings >> Permalinks and do a Save. This flushes the rewrite rules.
          2. Try installing the latest version of the plugin on an empty test site and see if the problem still persists.

          Let me know how it goes. Thanks.

  51. User says

    Hello Shibashake,

    The download link at the very bottom below version 1.0 is very not obvious, as it’s not marked as a link or whatsoever.
    I suggest putting it at the very top and perhaps making it red like a hyperlink.
    Because I though “Shiba Media Library 3.1” was the latest and downloaded that only having to find out it doesn’t work at all with the latest WP.

    Don’t get me wrong, it’s a GREAT plugin however the download link is camouflaged.

  52. says

    I’m just curious as to why you don’t have your plugins in the WordPress repository? I’ve been using your media library and gallery plugins (and I tout them all over the place – I just love them both), but there’s never a notification that plugins have been updated, and I can’t find the in the WordPress repository at all. (In fact, if I search for “Shiba” in the repository *my* plugin comes up because I mention you LOL)

    I guess it’s a request to either pop them in the repository, or at the very least put some notification in the plugin to check the version number against the ones set on your server so we can be updated when they’ve been upgraded. I come back here every time I install them to see if there are upgrades, but it would be lots easier to be notified on the backend of whatever site I’ve installed them on when updates occur.

    • ShibaShake says

      Hello Shelly,

      I did try to submit my very first theme when I started playing around with WordPress but did not have a good experience.

      I decided not to trouble them or myself any further. 😀

      • says

        Very strange. Well, I’m not surprised about the *theme*, but plugins are different.

        Anyway, have you ever thought of putting in version control in your plugin on your own site then? It’s been a while since I’ve had to do it, but basically it’s just a teensy bit o’ php in your plugin that checks the version number set in a file on your server. When you upgrade the plugin, you change the text in that file – then plugins will check to see if the version number is higher than what they have installed If so, it’ll give them an upgrade notice. (It’s all automated now, so I haven’t had to do it for quite some time!)

        Anyway, just suggestion! 🙂

        • ShibaShake says

          Thanks for the good info. Shelly. It would be good to have a version check sometime down the road.

  53. Jane says

    Hi, could you tell me how to make the attachments searchable by title, name or other? At the moment wordpress is only searching posts. Thanks – and great plugin.

  54. says

    Looks like this is where you are handling support.

    I am using your media library plugin v 3.2 on a site with wp 3.1

    I have a few cusotm post types on the site, and am adding a new post type. This post type is the first to support “editor” so I had not noticed, but on custom post types I cannot add images. The “add to post” button is gone. It comes back if I disable the media library. Do I need to add support for the post type?

    • ShibaShake says

      There are two possibilities here –
      Plan A
      1. Go into shiba-mlib-helper.php.
      2. Go to line 431
      else $send = ”;
      and change it to
      else return $form_fields;

      Plan B
      1. Hook into the shiba_insert_media_button filter and add your custom post type to the array.
      add_filter(‘shiba_insert_media_button’, ‘my_add_media_post_type’);
      function my_add_media_post_type($post_types) {
      $post_types[] = ‘my_custom_post_type’;
      return $post_types;
      }

  55. says

    Hello sir, great plugin for attach, reattach or de-attach but de-attach function is not working after upgrading to wordpress 3.1
    Please help

  56. says

    Hi there!

    Thanks so much for such a useful plugin. I’ve been trying all afternoon to figure out how to do custom order on my images, hopefully as a custom column if thats even possible. I’ve kinda hit my limit of what I understand in wordpress, and any help or guidance would be awesome!

    Thanks!

    Drew

    • ShibaShake says

      Hello Drew,
      Currently, I have not put any custom ordering support into the plugin. I know that there is some native WordPress support for that, but I haven’t looked into it at this point.

      I will put this on my to-do list, but I have several more plugin updates I have to make for 3.1, including a theme update, so it may be a while before I get back to Media Library.

  57. says

    I love this plugin. It does wonders for organizing my photos, but there is a problem. The galleries work great when they are embedded in a post or a page. However, when I try to view the galleries independently, nothing loads.

    For example:
    http://mayatanfoundation.org/?gallery=teaching-gallery

    Any advice for how to get this to work?

    • ShibaShake says

      Try setting the gallery permalink in Settings >> Permalink to something like /gallery/%gallery%/ then try viewing the galleries again.

  58. says

    I love your media library plugin, and it’s working great for me. However, I just recently upgraded to WordPress 3.1 and the ability to see what images are in a gallery on the ‘edit gallery’ page has disappeared. I’ve tried to attach a picture, but I don’t see it showing up on the gallery editor on the said gallery. I may be using an outdated library plugin, as I’ve seen you’ve done some work on making it compatible to WP 3.1, however I’m a little confused about where exactly do I go for the latest version. There are multiple download points on your site, but which will deliver to me the most latest download… and will it work?

    Thanks for a good plug in,
    Asher

    • ShibaShake says

      All the download links will get you to the latest version of the plugin unless a version number is explicitly specified, e.g. download Shiba Media Library 2.2.

      You can also just go to the site plugins page to get the most recent versions of any of the Shiba plugins.

      In terms of WordPress 3.1, I am in the middle of testing all my plugins. I have tested Media Library on 3.1 single-site and it works fine there. This article contains the current 3.1 plugin status.

      Let me know if you find more issues with 3.1.

  59. VirtualFlavius says

    Great plugin. I think it desperately needs a user manual though. I have to explain it to a site editor and it’s just too complicated. It’s easier for them to use the good old upload, so it’s a hard sell.

    Kind regards,
    VirtualFlavius

    • ShibaShake says

      If you let me know which tasks are especially difficult to perform, I will look into writing up a tutorial, or trying to improve the user interface. The more detailed, the better.

  60. says

    I noticed a small problem in my installation, my setup is as follows:

    I have two custom post_types event and artist

    The problem I am experiencing is that for example

    I create an event with the title “Valentine” this gives it a post slug of “valentine” .

    Then if I create a custom artist post with the name artist name and upload images to the artist custom post_type and tag them with the name of an event post_title “Valentine” the medialibrary gives the new tag a slug with a valentine-2

    This causes problems when searching for attachments by tag as this way searches for the tags by slug… so when I search for attachments with the slug ‘valentine’ it returns nothing as the attachment was given the slug ‘valentine-2’

    so the way I have gotten around this is…

    $title_tag_image = get_the_title();
    $term = get_term_by('name',$title_tag_image,'post_tag','ARRAY_N');
    $get_tagid = $term[0];
    global $post;
    $args = array( 'numberposts' => '-1','post_type' => 'attachment',
    'orderby' => 'name',
    'order' => 'ASC',
    'tag_id' => $get_tagid );

    What do you think about this?
    Is there an easier way?

    And of course thank you for creating this plugin, it has helped a lot..
    Keep up the good work

    • ShibaShake says

      What you did looks good.

      In the plugin I tried to use as much WP core stuff as I can in order to leverage existing WP functions, and existing plugins. As a result, the media library plugin uses the WP core post_tag and slug interface. There are some quirks, but staying compatible with WP core has a lot of advantages.

  61. says

    Tried out your plugin.
    I turned it off immediately because it removed the smush.it column from the media library. So I suppose you are doing an alternate rendering of the whole table? I don’t have time to look into how columns are suppose to be added to the media library by plugins without conflicting with other plugins.

    I just thought it was something you might want to know.

  62. Lewis says

    Hello,

    I’m using your plugin but the bulk actions of the Media Library do not work. I select the images using the checkbox, but they do not delete. I have to do it individually. Also tags are not being created or added by the bulk drop down.

    Can you help?
    Thanks, Lewis.

    • ShibaShake says

      Hello Lewis,
      I need a bit more detail to try and debug this. When you click on the Apply button, what happens? Does the screen reload? Do you get any errors in the html page?

      What version of WP are you running? Are you running other plugins?

      • says

        Hi. I install your gallery and media library plugins on just about every site I work on. At them moment I am working on a client site http://babiesnbumps.com which is using the new 3.1 release candidate. It appears that the bulk functions in the library are not working. I was able to add the tags manually, of course, but I haven’t figured out how to detach images from posts…besides, I really like the bulk functionality. I’m hoping this is something you don’t know about yet, and that you will be able to quickly spot the trouble. If you don’t have a 3.1 site up yet I can give you admin access, just ask.

        • ShibaShake says

          Hello Chuck,
          Thanks for letting me know. I haven’t had the time to test out my plugins on 3.1 yet. I am currently in the middle of some art and writing projects so I will probably work on 3.1 updates after that.

          If you are in a hurry and want to look into this yourself, the issue is probably related to updates in the upload.php file. In Media Library, the relevant file is shiba-library-menu.php.

          Happy New Year!

    • ShibaShake says

      What happens when you try to add tags in batch? Does the screen reload but nothing gets updated? Do the other actions (detach, reattach, replace tags) work? Are you using other plugins while testing this out? To debug the issue I need a bit more detail about the exact steps you took, the results, and your environment.

  63. MikeLos says

    Thank you for your great plugins

    can you explain “Gallery type” option (Any/Only Attachments/Only Posts/Only Galleries)?

  64. upekshapriya says

    I’ve found an error which occurs with More Fields 1.5.3 (not the latest version admittedly because the update removes some functionality I need) which is visible in the Console in Chrome

    Fatal error: Call to a member function init_admin_3_0() on a non-object in /home/user/example.com/wp-content/plugins/shiba-media-library/shiba-media-library.php on line 129

    This happens when I try to add a new post or page and occurs in more-fields-write-js.php.

    Any idea what the problem is?

    • ShibaShake says

      Sounds like some classes are not getting properly loaded/created in the AJAX interface. Difficult to say for sure. As you know, plugin conflicts are difficult to debug because it requires working knowledge of all the plugins involved.

  65. nick says

    detaching images does not work for me, latest version of wordpress.
    tick the image goto detach from the drop down, nothing happends at all.

    sigh.

    • ShibaShake says

      Did you click on Apply?

      After you click Apply, what happens? Does the page reload? What other plugins are you using?

      I need a bit more information to locate the problem.

  66. says

    Here is my problem. I can get the same image in multiple categories with this plugin, (awesome!) but I can’t figure out a way to order them within each category. Say I want an image in the category Architecture to show up #1, but I want it to show up #5 in the France category. Same image, different order depending on which category it’s in.

    Would be nice if you could order the images when you see them in the gallery, but alas I cannot find a way. Any help?

    • ShibaShake says

      Yeah manual ordering is currently not part of the plugin. I think it would be a very nice feature to have, but it is one of those things I haven’t gotten to. Too many projects, too little time. 😀

  67. says

    For some reason, I am unable to order the images in my gallery. I am using this code: [gallery id="589" order="ASC" orderby="title"]

    I have tried multiple variations such as:

    [gallery id="589" orderby="title DESC"]

    Nothing works, doesn’t change the order of my pictures. Am I missing something here?

    • says

      I also cannot order the images manually in a post gallery unless I attach them, which I can’t because I want the same image in multiple categories. What can I do so that I can be able to order the images manually?

    • ShibaShake says

      This depends on the front-end gallery rendering plugin you are using. Some front-end plugins may not support order and orderby.

          • ShibaShake says

            Now that I look at the code I remember that I did not put in a function to sort the images returned by tags.

            If you only want to sort the images by title then you can do the following in the short-term –
            1. Go into shiba-media-library.php and look for the line –

            'post_status' => $post_status,
            

            It should be on line 543.
            2. Add in your order and orderby arguments under it, i.e. replace it with –

            'post_status' => $post_status,
            'orderby' => 'title',
            'order' => 'DESC',
            
  68. Shelly says

    Just curious – does this gallery only work for administrator-level users? I’ve tried everything I can to get this to work for an editor-level user, and I cannot. It only seems to work if I set them as an admin.

    I’ve also tried changing the “10,” (in stuff like the add_filter section for admin) to an “8” in the shiba-media-library.php file, but still no go.

    From what I can tell, you’re using current_user_can and they have either delete_posts or edit_posts capabilities (which editors have both of) but I still cannot get my editors to see the menu items to manage and add galleries.

    • Shelly says

      Nevermind! I found it. In shiba_media_library.php, around line 217 (in function add_pages() ) there’s “administrator” settings for the three menu items. I changed that to “editor” and they showed up.

      Would it be possible to include this in a future release?

        • Shelly says

          Actually, I was wrong. If I change it to ‘editor” then it shows the gallery options ONLY for the editor – the administrator is locked out. Which is the weirdest thing I’ve ever seen. I’ve been trying for the last two days to figure out why it’s doing that, to no avail. Usually, if you set someone to have access at Editor level, then the admin will also have access – but with this – nope. So weird.

          • Shelly says

            Okay, well, I found a workaround. It doesn’t *seem* to be messing with how the plugin works, so hopefully there’s no adverse effects that I should be aware pf. Anyway, basically, I replaced the add_page() function (in shiba-media-library.php) with this:

            function add_pages() {

            // Add a new submenu under Options:
            $this->add_gallery = add_media_page(‘Add Gallery’, ‘Add Gallery’, ‘editor’, ‘shiba_add_gallery’, array(&$this,’add_gallery_page’) );
            $this->add_gallery = add_media_page(‘Add Gallery’, ‘Add Gallery’, ‘administrator’, ‘shiba_add_gallery’, array(&$this,’add_gallery_page’) );
            $this->manage_gallery = add_media_page(‘Manage Gallery’, ‘Manage Gallery’, ‘editor’, ‘shiba_manage_gallery’, array(&$this,’manage_gallery_page’) );
            $this->manage_gallery = add_media_page(‘Manage Gallery’, ‘Manage Gallery’, ‘administrator’, ‘shiba_manage_gallery’, array(&$this,’manage_gallery_page’) );
            $this->media_tools = add_media_page(‘Media Tools’, ‘Media Tools’, ‘administrator’, ‘shiba_media_tools’, array(&$this,’media_tools_page’) );
            add_action(“admin_print_styles-$this->add_gallery”, array(&$this,’add_gallery_admin_styles’) );
            add_action(“admin_print_scripts-$this->add_gallery”, array(&$this,’add_gallery_admin_scripts’) );
            add_action(“load-$this->add_gallery”, array(&$this, ‘add_gallery_on_load’));
            }

            Now the code has the menus on both the editor and admin accounts, and the Media Tools is set for admin only (per your next comment)

            Hopefully that helps someone else 🙂

            Now, if I could just get the captions to show up in the Gallery – man I love puzzles 😉

          • ShibaShake says

            Hi Shelly,
            What version of WP is your client using? It sounds like you may not have the latest version of the plugin that uses custom post types. I think that may fix the add_page issues.

      • ShibaShake says

        Now that I think about it some more, perhaps Media Options should be an administrator menu. It does blog wide settings which I don’t imagine an editor should have access to. What do you think?

        • Shelly says

          Well, I can say this: I am the web developer (I’m the one creating the theme) and I’m subbing for the actual design house. WE want admin-level access, because the client – even though they own the site, does NOT need to be mucking around in the plugin and theme files. SO we have them set as “Editor” so they can do galleries, images, uploads, write posts, add users – all that stuff that an editor can do.

          I do think you’re right though – the “Media Tools” should be reserved for Admins (I don’t see how it would be helpful to them when all they are doing is managing content) but the rest, they should have access to.

          Thanks! 🙂

  69. aziwaan says

    Hi There,

    Im trying to use the gallery plugin but when I paste your shortcode in a post [media-library-gallery] it just renders as text.

    Any ideas what mught be causing this, im running WP locally out of the box.

    Thanks in advance

  70. says

    I believe there is a small bug in shiba-media-library.php, which destroys any existing content while simultaneously preventing us from displaying gallery objects programmatically in templates by defining our own gallery shortcode, i.e., ID).'" link="file" columns="4"]')); ?>

    —————————–

    Around Line 440: $content = "[gallery]";

    I believe should be: if($content != '') $content = "[gallery]";

    —————————–

    I’m not sure if $content is empty in the default case but this works for me in my template.

    Also, this is a powerful plugin, thanks for your contribution, but the documentation leaves a lot to be desired. I’m still not sure how it could be used as intended, and some usage examples/tutorials would be very welcome. I’ve only used it up to now in order to detach images from posts (that functionality alone is great!). I know it does other things but trying to figure out what and how is very frustrating. Anyway, I know you’ve put a lot of time into it and I’m grateful, but it would be nice if we could actually do all the things you intended. 🙂

    • ShibaShake says

      In addition to the bulk attach and bulk detach capabilities, the plugin addresses three other key areas –
      1. Creation of gallery objects. Gallery objects allow you to group images together without cluttering up your post space. You can set your own gallery object permalink (Settings >> Permalink).
      2. Tag images. Image tagging can be very powerful and will allow you to attach the same image to multiple galleries.
      3. Parallelize image links. This allows you to spread your image links over multiple domains and sub-domains so that more images can be loaded simultaneously and thus enhance page speed.

      Let me know which of these areas needs more explanation and which areas are unclear and I will add that on my to-do list. Thanks.

  71. says

    hi,
    i am trying your plugin on a wp-multisite and running in 1 issue.
    i am trying to have the same gallery for all the blogs, so i can use the same images on every blog, mainly because i have one blog that fetches the all the posts from the others.
    my problem is, that i can create galleries per blog, but then i can not see them on the main blog.
    is it possible to have one gallery path for all the blogs?

    thanks and keep the good work up, your plugins are amazing.

    • ShibaShake says

      In the same way that you can fetch posts from the different blog tables you can also fetch galleries from the different blog tables. The gallery objects are stored as a custom post type so they reside in the same tables as posts (i.e. wp*_posts). The gallery objects have post_type = gallery.

  72. says

    hello, firstly great plugin
    i have a small issue
    with the addition of custom post types a small problem arises with WordPress Media Library Plugin
    this function “add_insert_into_post_button($form_fields, $post)”
    only has post and page as a post type, if you can please add a way to have other post types as well, meaning all the post types that are being used,
    or you can use a setting page
    idk whats best, for now i have manually added the other post types i am using that need the insert into post button
    thanks vache

  73. Shelly says

    I’m curious – I’m having an issue getting Editor-level users to Add and Manage galleries. Apparently only administrators can do this – which is weird, because in your files, I see references to allow anyone who can edit/delete posts to have access to this stuff, which my editors *do* have access to. Am I missing something? Because I really need my editors to be able to add to and manage the galleries.

    • ShibaShake says

      Hello Shelly,
      I just tested the plugin with Editor permissions, and I was able to create and update galleries. What error messages are you getting in Editor mode? What operations cause the error? What theme and plugins are you using? The more detail you can provide, the better, so that I can duplicate the bug.

      If you can, try testing things out using TwentyTen with no plugins and see if you get the same errors.

      • Shelly says

        So sorry I haven’t responded – it’s been crazy down here! I just came back to check to see if you have updates (and you do), and I saw this 🙂

        I have no issues seeing it with Editor level permissions – it’s having Editor level and *above* accessing it. For some reason, I can make Editors access the Galleries just fine, but it won’t allow admins. (And yes, I did attempt it with Twenty Ten – as well as Default – with all plugins shut off). I just upgraded to your newest versions though (Media Library 3.0.3 and Gallery 3.3.7 on WordPress 3.0.3) and now everyone’s accessing everything as they should. But now we have a fun new issue: The tagged images aren’t showing up in the Galleries. They are not becoming associated with the Galleries we’ve set up in the Shiba Gallery section. For example we have images tagged with “dogs”, and set up a Gallery titled “Dog Images”, set to pull in “Any” with the tag of “dogs”, and although the galleries are being created, nothing is being associated with them, and therefore not showing up on the site.

        I’m getting ready to troll through and see if something is conflicting, but as it stands right now, that’s what going on.

        • Shelly says

          Okay – quick update. Using TwentyTen, and no other plugins activated save Shiba Gallery and Shiba Media Library – and the attachments still aren’t being associated with the Galleries. Very odd. There’s no messages or anything – everything appears to be working as it should, but when I go to the “Galleries > Galleries” page in the admin area, under the “Images” column, everything says “0” – so nothing is being associated with the galleries, even though it’s set to pick up tagged images. (Spelling and case have been checked.)

          • Shelly says

            Okay, I think I’ve found the issue. You’re assuming my table prefix is the default (wp_). It is not. The error in my logs pointed to this – it reads like so:

            [22-Dec-2010 16:35:48] WordPress database error Table ‘mytable.wp_term_relationships’ doesn’t exist for query SELECT DISTINCT myprefix_posts.* FROM myprefix_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) INNER JOIN wp_term_taxonomy ON (wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id) INNER JOIN wp_terms ON (wp_term_taxonomy.term_id = wp_terms.term_id) WHERE 1=1 AND myprefix_posts.post_parent = 1053 AND myprefix_posts.post_type IN (‘post’, ‘page’, ‘attachment’, ‘gallery’) AND (myprefix_posts.post_status ‘trash’ AND myprefix_posts.post_status ‘auto-draft’) ORDER BY menu_order,dtc_posts.ID ASC made by require, require_once, include, the_content, apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, gallery_shortcode, apply_filters, call_user_func_array, Shiba_Gallery->parse_gallery_shortcode, Shiba_Gallery->parse_shiba_gallery, get_children, get_posts, WP_Query->query, WP_Query->get_posts

            so it looks like there might be a couple of “oopsies” in leaving the default prefix assumed in the code somewhere. So far, I’ve only found one instance on line 466 of shiba-media-library.php, but I’m still trolling through to see if I can find more, since fixing that one didn’t fix the issue yet.

          • ShibaShake says

            Opps, my bad. I will work on fixing it. I think this is the only spot because it is the only thing I changed recently, but please let me know if you find more. Thanks!

            Merry Christmas and Happy Holidays!

          • ShibaShake says

            Ok I fixed all the instances in shiba-media-library.php. Please test out the new zip (3.0.5) and let me know how it goes. Thanks.

          • Shelly says

            Thanks! I’ll give it a go now.

            And since I have you here, I thought you should know that replacing the Lytebox option (in the Gallery plugin, I know this isn’t the “Gallery” plugin section, sorry!) with the SlimBox probably wasn’t a terrific idea. Turns out Slimbox will not resize images if they are larger than the browser window screen. I even looked at SlimBox’s documentation, and they specifically spell out that it won’t do this. I *must* have it do that, since the images we’re using are minimum sized 3200 pixels in width. Lytebox *would* resize.

            I appreciate that Slimbox is a lighter script, but I still think Lytebox should be an option, since it will resize images. Just thought I’d mention it.

            But thanks for the fix! And hope you had a great Christmas 🙂

  74. Peder says

    Hey! Awesome plugin.
    One question though: is there a way to batch add tags to images after they’ve already gotten tagged previously, without the system removing previous tags? I.e. could I batch add tags also and not just “Set/Replace Tags”?

    Thanks in advance, and please if you can e-mail me your reply. I couldn’t find your contact details anywhere on your website.

    Best Regards and thanks again for a life-saving plugin!

    • ShibaShake says

      I.e. could I batch add tags also and not just “Set/Replace Tags”?

      This is definitely on my to-do list. I will include it in the next update.

    • ShibaShake says

      Ok – I have added in the ability to append tags in bulk to images. There should not be an ‘Add Tags’ option in the Media Library drop down menu.

      Let me know if you run into any bugs.

  75. writemcodeboy says

    This is exactly what I am looking for.

    FYI, I have a high volume of Notices produced by the PHP from this plug-in.
    Yes, I can suppress those (but would rather not).

    You may want to check your display_errors and register_global settings.

    I am using WP 3.0

    I think you have done a great job here and if I end up to modify the script I’ll let you know!

    Thank you for sharing!

    • ShibaShake says

      Thanks for letting me know. I am working on fixing the notices – will post something when I am done.

  76. says

    Hi,

    Great plugin. I am currently using wp-prettyphoto with the regular WP gallery, however it does not seem to play nice with your plugin. Any thoughts on how I might be able to achieve the equivalent of [gallery link="file"] with this?

    Thanks!

    • ShibaShake says

      I checked out wp-prettyphoto briefly. It does its own specialized handling of images and galleries, so it will not work with the WordPress core gallery system which is what is supported by Media Library Plugin.

      Changing the links to file links will probably involve identifying where in the plugin file the links are assigned, and changing a small amount of code so that file links are used instead of attachment links. The plugin author is the best person to point you to the right location.

      Otherwise, it may be simpler to switch to some other Lightbox plugin that supports the core WordPress gallery shortcode structure. There are a variety of them.

      Using a plugin that supports the WordPress gallery shortcode will give you greater flexibility later on because you can plug and play with a large variety of plugins without having to change any of your shortcodes.

  77. says

    Hi

    I moved from Blogger FTP to WordPress.

    All the images for my imported into WP posts show up (since the original directory/filename didn’t change).

    However, in order to have the images in posts show up in category pages, etc., it looks like I need to manually insert the first photo in a post to the media library and re-insert it in order for the image to show up in WP category pages for a keyword, etc.

    Is there a way around this? Is there a way to have WP _or a plugin_ identify the first photo (or any photo) in a post, add it to the media library and reinsert it in a post so that it shows up in search results rather than no image at all?

    Thanks! please send responses to me at indierockcafe at gmail (dot) com

  78. ShibaShake says

    Phew – ok I believe I fixed it. I have uploaded the latest zip – version 2.8. It is difficult to test out all the cases, so please let me know if you run into more issues.

    Thanks for helping me find and fix this bug.

  79. ShibaShake says

    Can you check something out for me? If you turn off the redirection plugin but leave the media library plugin on – do you get the same error? Thanks.

  80. ShibaShake says

    Thanks for all the information. It seems like it could be a plugin conflict.

    Are you using a plugin to generate the richer 10-dias-para-o-fim-do-suspense directory structure before %postname%? Or is that a page hierarchy?
    htt://www.corridadeformula1.com/10-dias-para-o-fim-do-suspense/temporada-2010/

    If you are using a redirect plugin, there may also be conflicts because they are all making modifications to the permalink structures.

    If you let me know the plugins you are using I could check it out and see if I can duplicate the issue you describe – but some plugin conflicts may be difficult to resolve.

  81. says

    Hi Shiba.
    I had some problems with Media Library plugin. It has caused a conflict with some pages.
    E.g. I have a post “temporada-2010” with no images. But page shows an image and no content wich I wrote there. Moreover, page’s title is from another post.
    It’s very crazy. o_O
    When I disable your plugin the page works again.

  82. ShibaShake says

    Thanks for letting me know. I have fixed it and uploaded the new zip. Please let me know if there are further bugs so I can improve the plugin.

    Thanks!

  83. ShibaShake says

    If it’s easy add AND-tag capability so I can install him.

    I have put it in. For example you can do –

    [gallery tag_and="tag-a,tag-b"]
    

    where tag-a and tag-b are tag slugs. Let me know if you run into any problems with the gallery plugin.
    http://www.shibashake.com/wordpress-theme/shiba-gallery.zip

    About actual gallery, I use native as I said. So, I don’t know where I could modify it. I’m not very good with codes.

    In WordPress the relevant function is called gallery_shortcode and it is contained in wp-includes/media.php.

    The shiba gallery plugin also renders WordPress native galleries so you can also look at the code to see an example of how I modified the WordPress native code. Look at the shiba-gallery.php file.

    You will probably need some PHP knowledge though to properly change the gallery shortcode.

    • says

      Shiba, it works but there is a problem.

      When I put the shortcode with post_type=”attachment” the function doesn’t work.
      Without this everything is OK but shows posts too.

  84. ShibaShake says

    Great question. Being able to create more complex queries was something I struggled with while creating the plugin.

    There are two options –
    1. Do it in the gallery backend and create a ui to allow combinations of various query operators.
    2. Do it in the frontend and have it be part of the gallery shortcode.

    Ultimately, I decided that querying operations fit much better on the front-end (within the gallery shortcode). For example, check out the Shiba Gallery plugin’s expanded set of shortcodes. Adding in an AND-tag query will not be too difficult in this case.

    In fact, I think that the media library’s current limited OR-tag queries should also reside with the gallery shortcode system. However, at the current time, it is necessary to add some ability to use tags in the back-end because there are no front-end expanded shortcode standards yet. But it does make the back-end a lot more messy.

    Let me know if you want me to add AND-tag capability into the Shiba Gallery plugin as that would be fairly easy. Alternatively, you can expand the shortcode options used by your current gallery plugin. You probably just need to locate where the get_posts call is made, and add in a new AND-tag query condition.

    • says

      Hi Shiba, thanks for reply.

      I’m using native gallery now. I had NextGEN before but their scripts were a trouble on Google PageSpeed.

      I don’t have Shiba Gallery installed but it looks being soft. Maybe be a solution.
      If it’s easy add AND-tag capability so I can install him.

      About actual gallery, I use native as I said. So, I don’t know where I could modify it. I’m not very good with codes.

  85. says

    Hi,

    How I can alter “tags syntax”? By default, galleries show arguments “x” or “y”. But would be very useful change it to show just tags with “x” AND “y”, for example.

    I had a F1 blog. I tagged photos with “Chinese Grand Prix” and “2010 Season”. However, Gallery with Chinese Grand Prix will show all seasons who contain that tag. I’d like to show only images who contain both tags.

    btw, great job! 😀

  86. ShibaShake says

    Hello Pescadito,

    3) another nice option to add is the ability to deattach the attached file instead delete the attached file (i mean both options are needed)

    Hmmm, the plugin should have a detach option. If you go to Media >> Library, the plugin adds a new drop-down menu at the very top and there should be a detach option there that allows you to detach in bulk.

    Note – this is an added drop-down menu at the very top of the screen directly under the Shiba Media Library heading.

    There are other drop-down menus below – which are the standard ones added by WordPress Core.

    Let me know if you can’t find the option or can’t detach. Thanks!

    • Pescadito says

      and….
      you have rigth! the option to detach is there and work very well!

      but i mean to have this option inside the popup panel that appear when you edit a post and try to ad a media file:

      add a image file
      from pc / from url /gallery (x) / multimedia library / add from server
      multimedia order action
      image 1 hide/show
      …..
      insert image / use as miniature / delete
      ->> only attach image / only deattach image <<–

      image 2
      … etc

      but your way is ease to work to, so…

      best regard, pescadito

  87. ShibaShake says

    Heya Keoshi,

    I have added in the ability to edit the entire gallery permalink structure.

    Please let me know if you run into any problems and have new feature suggestions.

  88. ShibaShake says

    Hi Keoshi,
    Always good to see you.

    Currently, the plugin replaces %postname% in your permalink structure with {gallery base}/%galleryname%. Therefore galleries should show up as –

    htt://mysite.com/noticias/galleries/gallery-name

    Please let me know if that is not the case.

    If you want the gallery permalink to have a different structure, I can insert a filter into the function so that you may alter the gallery permalink structure itself.

    What do you want the gallery permalink to look like?

    • keoshi says

      Thanks for the quick reply!
      In my site, the news are under with the following structure
      /noticias/%postname%
      resulting:
      http://mysite.com/noticias/{post-title-example}

      if apply the word: “galerias” as ‘gallerybase’ for galleries, it results:

      http://mysite.com/noticias/galerias/{album-title-example}

      I like to have the ‘galleries’ under only ‘/galerias/’ suffix. wich is better to SEO and avoid confusions with the news (noticias)
      ie.
      http://mysite.com/galerias/%postname%

      here is my current permalink structure if it helps
      http://img522.imageshack.us/img522/18/permalinks.png

      one more time, thanks for support

  89. keoshi says

    hello again!

    I updated your plugin to test the permalinks option and I’ve noticed that the url is the same in my site, even if I add “galleries” into gallery base
    I think this happens because my index page is a page called “noticias” the galleries now is located at htt://mysite.com/noticias/galleries/gallery-name

    my custom permalink estructure is “/noticias/%postname%”

    any sugestions?

  90. says

    nice plugin shiva!

    in multimedia library, i try to search multimedia by tag but nothing happening?, may be there is a bug.

    i think a NICE feature to add is searh multimedia by post name, so in this way the neet to use a image tag is less important.

    and another HUGH feature may be to import images directly from a url folder!

    that’s all, best regard, pescadito

    • ShibaShake says

      Thanks for reporting the bug Pescadito. I have fixed it in the latest release.

      i think a NICE feature to add is searh multimedia by post name, so in this way the neet to use a image tag is less important.

      Hmmm, I am not sure what you mean. Do you mean search by the post name slug rather than the post title?

      and another HUGH feature may be to import images directly from a url folder!

      Yeah that was something I considered really early on, but I really wanted a plugin that would work together with the current WordPress media library which assumes that all the images are in the upload folder.

      There may be many places in the system that make that assumption, so changing something so fundamental to the core may destabilize many other parts in the system.

      Add – after thinking about this some more, I think it will be very possible to do this through the use of rewrite/redirect rules. I will put it on the list for future additions.

      • pescadito says

        hello shibashake, and thank for thinking in this points!

        actually i change a bit my point of view:

        1) you are rigth: in library multimedia page, i wish to search multimedia library by post title name! so in this way i haven’t really need of ‘tag’ because i find old pictures by post title and reattach or manage it in any way.

        2) for the hugh import fro url directory, i finally found http://wordpress.org/extend/plugins/add-from-server/ that make a good work and is enough to me.

        3) another nice option to add is the ability to deattach the attached file instead delete the attached file (i mean both options are needed)
        so for the meantime i use http://wordpress.org/extend/plugins/change-attachment-parent/ to delete one attachment if i needed

        that’s all, the rest work very well to me and i prefer shiba to others media libraries because i have a more standard access to attached files.

        thank again, pescadito

  91. ShibaShake says

    The place to hook into is the ‘restrict_manage_posts’ action hook. You should be able to do what you describe by replacing the global $wp_query which is later used to render the list of attachments.

    It seems that hooking into ‘restrict_manage_posts’ and then calling query_posts or wp($q) with your own query arguments should do what you want.

    The original list of attachments are generated using the wp_edit_attachments_query() function so you can also use that as a starting point.

    This is the same mechanism used within the general WordPress Loop.

  92. says

    Hi, thank you for this really great plugin (and also explanation article about its creation – it was very helpfull). Is there any chance to simply limit users (subscribers) to see only their files in Media library? And what about showing only files with specified media tag to specified user? I tried to find any hook or filter, but wit no success 🙁 Thank you very much for your help…

  93. ShibaShake says

    Hi Alex,

    I was wondering how i can get the images with a certain tag???

    I would use get_posts and just include in the tag argument.

       $args = array( 'post_type' => 'attachment', 
    		  'tag' => $tag,
    		  'numberposts' => $numberposts );
       $attachments = get_posts( $args );			 
    

    $tag is a comma separated tag slug list.
    http://codex.wordpress.org/Template_Tags/get_posts

    oh, and is it possible to add an external link for each image??

    Do you want to add the external link only at the front-end? or do you also want to add it on the back-end? If you want to add it to be back-end, I would look into using add_post_meta which will allow you to add new attributes to post objects (i.e. image attachments)

    http://codex.wordpress.org/Function_Reference/add_post_meta

    If you just want to add it to the front-end, then that would depend on the front-end gallery plugin you are using.

  94. alex says

    Hi Shibashake,

    first off, tx for the plugin. I have just downloaded and i am testing with it.

    I do have a question, as i am designing a simple gallery view (just x rows with 4 images) and i still like to use your plugin. I was wondering how i can get the images with a certain tag???

    I like to use a loop function.
    Any tips, suggestions ?

    regards,

  95. keoshi says

    Hello again
    I’ve updated the plugin, and I see you have supported the post thumbnail option.

    I implemented your plugin in a website that I’m working (with a little tweaks in my theme), this is my website www. salesianos.pe (look at “Galeria’s section”) , and I have a question: How I can create a page (archives page) and display into them the galleries or albums?
    another question is:
    is posible to modify or personalize the url to handle this?
    i.e. mydomain.com/galleries (for gallery’s archives)
    mydomain/galleries/[gallery_postname] (for the overview of the gallery)
    mydomain/galleries/[gallery_postname]/[current_photo_postname] (single photo)

    If you have noticed in my site, the galleries always are in /noticias/ directory, this is because I’ve configured to display a page in home and the post below “noticias” ulr
    I wish have all galeries below “galeries” directory, same as above explained

    I hope you can help me with this, and again sorry for my english and so thank you for the plugin!

    • ShibaShake says

      Keoshi,
      Good to see you again.

      How I can create a page (archives page) and display into them the galleries or albums?

      The most elegant way to do this, would be to create a category for all the galleries you want to group together and then render the whole category. This would however require a gallery front-end that knows how to deal with categories. I have updated the Shiba Gallery Plugin to render categories, so you may just use that. Or feel free to check out the code and see how to include that in your own gallery front-end.

      Another way to do this would be through the back-end – but it is not as elegent and a bit more messy. You could assign the same tag to all the galleries you want to group together, and then create a meta-gallery with the same tag to include all of those galleries. Check the “Only galleries” option on the meta-gallery. This will group all the galleries together – then you can just render the meta-gallery.

      In this case, your gallery front-end would need to know how to render gallery type objects. You can also check out the Shiba Gallery Plugin code for an example of how to do this.

      is posible to modify or personalize the url to handle this?

      Currently, galleries use the same permalink system as posts. You can probably change the permalink structure by writing a hook into the post get permalink function – get_post_permalink. This is the relevant filter call –
      apply_filters(‘post_type_link’, $post_link, $id, $leavename);

      I will add it to the list for a future release although I may not get to it for a while because I am working on another plugin.

  96. ShibaShake says

    A.M., Thanks for your very good suggestions.

    You bring up a really good general point which is that tags can be really powerful if it gets greater support in the WordPress backend.

    1. Attachment Tags window on Media part shows tagcloud taken only from posts, not from attachments tags.

    2. i would like to have posibility to edit tags like is in Posts part, but included tags assigned to attachments.

    Yeah – this is something that I have been thinking about. In the latest release of the plugin I have expanded galleries so that it can also include posts, and other galleries. This makes it more natural to have the same tagging system propagate to all the objects.

    However, you bring up a good point which is that most of the time, gallery grouping tags will be different from non-gallery grouping tags.

    I will look into generating a tag cloud that just contains tags associated with attachments and galleries.

    3. Can Search media search also in tags?

    That would be a very good functionality to have.

    I will also look into expanding Search Media so that it operates both on the title and on tags.

    I am currently working on another plugin, but will get back to Media Library once I am done with it. Thanks for your great feedback!

  97. V8 says

    Hi,

    I’m having trouble activating your plugin.
    I get the following error:
    Fatal error: Call to undefined function register_post_type() in /public_html/wordpress/wp-content/plugins/media-library-plus/media-library-plus.php on line 264

    I’m using NextGen Gallery and Autofocus theme.
    What to do? Thanks.

    • V8 says

      By the way, I’m using WP 2.8.4 and I’m also using your plugin on another website of mine with the same version and that works great! Just not this one 🙁

  98. says

    I would like to mention some disadvantages of this super plugin.

    1. Attachment Tags window on Media part shows tagcloud taken only from posts, not from attachments tags.

    2. i would like to have posibility to edit tags like is in Posts part, but included tags assigned to attachments.

    3. Can Search media search also in tags?

    My tags assigned to attachments are mostly different from those assigned to posts.

    I hope i know what i am talking about,
    Kind regards!
    A. Majewski.

  99. ShibaShake says

    Hi Keoshi,

    How I can get directly from my template, the latest galleries created?
    and then make a loop and display in list with a thumbnail ?

    Yeah you are right the get_posts command is the way to go. Here is some information on the get_posts and query_posts commands. They can be a bit confusing initially.
    http://www.shibashake.com/wordpress-theme/wordpress-query_posts-and-get_posts

    How are you creating your galleries? If you are just creating them as posts, then doing the gallery category thing that you describe sounds like it will work well.

    If you are creating galleries with the Media Library Plugin, then just specify ‘post_type’ as ‘gallery’ in your get_posts call.

    $args = array(
    	'post_type' => 'gallery',
    	'numberposts' => -1,
    	'post_status' => null,
    	'post_parent' => null, // any parent
    	); 
    
    $galleries = get_posts($args);
    if ($galleries) {
    	foreach ($galleries as $gallery) {
               ...
            }
    }
    
  100. ShibaShake says

    Hello Mike,

    That is indeed a strange error. I tried duplicating it on 2.9.1 but was unable to do so.

    If you deactivate the plugin, does the regular Media Library attachment function work? If so, it may be some kind of conflict with another plugin.

    To fix it (only if attachment works when you deactivate the plugin), edit the Media Library Plugin. In particular go into the media-library-plus.php file. Search for –

    < ?php find_galleries_div(); ?>
    

    Replace it with –

    < ?php find_posts_div(); ?>
    

    This will limit attachments to just regular posts and pages, but it should work.

    Meanwhile – if you can let me know what other plugins you are using, I will look into the conflict issue in greater detail. Thanks!

  101. says

    Hi,

    There seems to be a bug in the “Attach” feature. I was able to detach an image from a page but when I go to re-attach it I’m only able to search for posts to attach it to. Regardless of what radio button is checked the search feature continues to display “No Matches found” for names and post ids that are not actual blog posts. I’m using WP 2.9 if that’s any help.

  102. keoshi says

    I think this is what I was a looking for
    I can to do this? http://i47.tinypic.com/1zzs1u0.jpg

    best explained: (http://wordpress.org/support/topic/356333)

    First, sorry for my english. however I need some help

    I need to put in my homepage something like this http://i47.tinypic.com/1zzs1u0.jpg
    I’ve tried with nggallery plugin, but it isn’t adjust to my needs.

    I need something simple, using if posible Internal WordPress functions or API.
    with a widget is posible to do this?, with only wordpress gallery integration?

    If the gallery is attached to a entry isn’t problem, so I could modify to display only the gallery attached to post.

    I don’t need to teach to me the coding this, only a clue.
    I am versed with PHP but I’m a really newbie with wordpress.

    Thanks in advance!

    • ShibaShake says

      Hello Keoshi,

      The approach I would take is to write a gallery plugin that displays WordPress galleries in the way that you describe above. Then you can link your new gallery display function to the WordPress gallery shortcode.

      If you look at the code of my WordPress Gallery Plugin (which links a variety of javascript galleries to WordPress) – you can see examples of how I did this.
      http://www.shibashake.com/wordpress-theme/super-wordpress-gallery-plugin

      • keoshi says

        hi, thanks so much for the help,
        How I can get directly from my template, the latest galleries created?
        and then make a loop and display in list with a thumbnail ?

        I though doing it with a ‘query’ to get all posts with category “gallery”.

        What is the best way?
        thanks! (I’m reading the fully wordpress documentation 🙂 )
        *sorry for my english

    • keoshi says

      i just playing with your code, and the result is almost what I want, thank you!

       'gallery',
      	'numberposts' => 5,
      	'post_status' => 'any',
      	'post_parent' => null
      	); 
         
      $galleries = get_posts($args);
      if ($galleries) {
      	foreach ($galleries as $post) {
      		setup_postdata($post);
      			the_title('', '');
      			the_content();
      			$args = array(
      				'post_type' => 'attachment',
      				'numberposts' => -1,
      				'post_status' => null,
      				'post_parent' => $post->ID
      				); 
      			$attachments = get_posts($args);
      			if ($attachments) {
      				foreach ($attachments as $attachment) {
      					//echo apply_filters('the_title', $attachment->post_title);
      					the_attachment_link($attachment->ID, false);
      				}
      			}		
              }
      }
      ?>
      

      Your plugin is a quite simple and so powerful at the same time, in fact it would be for me the best gallery for wordpress available out there.

      I’m wondering if You have plans to make a extend your plugin.
      It will be amazing if you make a gallery page (http://www.engadget.com/galleries/) and widget like engadget (see Galerias Destacadas section: http://es.engadget.com/)

      I’ve been thinking to modify your plugin to get something like that. (custom page for galleries, get by categories, tags, etc, and custom page for single albums)

      well, I’ll be waiting for updates.
      Thanks

      PS.
      I think just found a bug, when clicked “set thumbnail”: nothing happens.

    • ShibaShake says

      Glad everything worked out well and thanks for your great suggestions!

      I’ve been thinking to modify your plugin to get something like that. (custom page for galleries, get by categories, tags, etc, and custom page for single albums)

      I will definitely have to code something up that does that and it will fit in really well with making the thumbnail system work on gallery objects.

      I think what will work well is to create a new gallery type that will contain posts instead of attachments. Then you can display the gallery of posts/attachment-galleries using the same front-end gallery system. However, with the post_gallery you will be linking to posts instead of to an attachment.

      It will be very cool! That is a very awesome idea! 😀

      If you want to extend the plugin please feel free to do so.

      Thanks Keoshi!

      Btw. send me a link of your new gallery when it is up. Would love to check it out.

Leave a Reply

Your email address will not be published.