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.
Example gallery that is rendered using the Shiba Gallery Plugin
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
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
It looks like a problem with the server not interpreting the ‘%2F’ encoded url slashes.
http://stackoverflow.com/questions/9206835/2f-in-url-breaks-and-does-not-reference-to-the-php-file-required
Turn off Shiba Media Library, and test the attach images operation in the same way. Does it work?
If it does, go into the file shiba-mlib-permalink.php and comment out line 28 –
// add_filter( ‘attachment_link’, array($this,’attachment_link’), 10, 2);
Test to see if it works.
If not, then I can take a look on a test site on your server.
Awesome,
Why you didn’t add this plugin to wordpress.org plugins directory ?
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
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.
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
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.
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.
I’m not sure what the difference is between orderby=”shiba_menu_order” and orderby=”menu_order”
Does it do something different?
The difference is described here-
http://shibashake.com/wordpress-theme/shiba-media-library-3-3
Orderby can also be used with post_date, titles, etc-
http://codex.wordpress.org/Gallery_Shortcode#Options
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?
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.
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!
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.
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.
Thank you for your fast reply! I will try the gallery of galleries with your notes. As for the image titles –
It used to insert:
Now it inserts:
Sorry..the code disappeared when I published my comment. I left off the opening and closing < to see if it would publish.
used to be –
Ok, I will look into it but it may take some time. Got a lot on my task list right now. 😀
Hello Kate,
This appears to be a WordPress 3.5 change and is not plugin related.
http://wordpress.org/support/topic/cant-add-image-title-after-35-update
http://core.trac.wordpress.org/ticket/18984
Thank you for looking into this. I suppose I did update to WP 3.5 and install your plugin on the same day!
As for the gallery of galleries..it worked perfectly, thank you!
You are very welcome. Good luck with your site!
Hello,
Nice plugin, however it took me 20 min to find the download link on the page. The idea of the image with a link in it is very very weird.
Thanks Michael. I have removed the background image and made the links more prominent.
I suggest adding an attachment tag filter to the media library interface. That would be very useful as it is with the Media Tags plugin.
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.
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.
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.
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.
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.
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?
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.
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
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.
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& …
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?
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.
Thanks for the explanation. I will look into it after I am done updating my Shiba Gallery plugin.
Thanks a lot
can you please update me when there’s a fix/solution by email please?
Sure. Will shoot you an email once I post an updated version.
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!!!
Gallery is a custom post type, so one possibility is to copy the template you want into single-gallery.php. This may also be theme dependent.
http://codex.wordpress.org/Post_Type_Templates
Cheers, it’s work, was easy 🙂
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?
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.
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
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
Problem is solved. I use the Themeforest Core WordPress theme, and the maker of that theme has provided a fix for this. Thanks anyway.
Hi!
I have the same error! But I can’t solve it. Could you tell me how do you did for solve? Because I have theme of Themforest also, the theme is Rhea, maybe is the same solve for this error. I’m gratefull in advanced, your comments.
A lot of thanks and I look forward your reply!
Hey, have a look at this fix!
http://support.themegoods.com/?knowledgebase=gallery-image-upload-issue-on-wordpress-3-4
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?
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.
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.
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.
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)
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?
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.
1. http://goo.gl/H4GBf
Here is a gallery page created, but it doesn’t work. When you click on the thumbnails nothing happens.
2. “/gallery/%gallery%” did the job! That’s perfect, thanks!
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?
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
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 🙂
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
Hi, I’m facing the same error message as Blondie1122 when trying to upload a picture in NextGEN Gallery.
I believe that the NextGEN gallery has its own image album (i.e. gallery) handling functions, so I would just use that.
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
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();
}
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!
Are you including the image into multiple different galleries?
In native WordPress, there is a one-to-one relationship between an image and its parent. This means that when using native WordPress commands, e.g. previous_image_link() and next_image_link(), only the last image position will be saved. I describe it in greater detail here-
http://shibashake.com/wordpress-theme/shiba-media-library-3-3
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!
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.
Where’s the address for this in the WordPress.org repository? Thanks!
Currently, this plugin is not on WordPress.org.
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?
Great plugin. I love it 🙂
Quick question, I installed your Media Library version 3.3 it on WordPress 3.2.1 and the gallery description and images are gone.
See screenshot.
http://farm7.static.flickr.com/6197/6112982234_39b1b06e35_z.jpg
May be I missed some simple steps. Could you advice please.
Thanks for reporting this Pete.
It should be fixed now. Try downloading the zip again and reinstalling. Let me know if you run into more problems.
Thank you. It’s working now 🙂
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.
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.
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?
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.
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.
That is just fine. Hope you find what you are looking for. 😀
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
Should be fixed in the new zip. Let me know if it is not.
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
Hello Adam,
Both questions would depend on what gallery front-end you are using.
If you are using the standard WP gallery shortcode, then you can set the link page using the link tag.
http://codex.wordpress.org/Gallery_Shortcode
As for paging, the Shiba Gallery plugin does support a page tag in the gallery shortcode. However, this is a plugin by plugin specific thing and not a standard.
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.
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).
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
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.
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
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.
Hi, Shibashake –
This looks like it might be relevant, but I’m not positive:
http://wordpress.org/support/topic/adding-a-media-submenu-issuess
Regards,
Jack
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.
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.
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. 😀
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! 🙂
Thanks for the good info. Shelly. It would be good to have a version check sometime down the road.
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.
Do you mean you want to make the general WordPress search return attachments as well?
One way to do this is to hook into the ‘request’ filter. I have some examples of that here –
http://shibashake.com/wordpress-theme/mastering-the-wordpress-loop
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?
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;
}
Thanks, I went with the filter since I prefer to leave plugin files alone. It worked perfectly
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
Do you have the latest version of the plugin?
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
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.
If it’ll put it further up your priority list, I’d like to see this feature too 🙂
Btw, Great work
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?
Try setting the gallery permalink in Settings >> Permalink to something like /gallery/%gallery%/ then try viewing the galleries again.
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
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.
Thank, installing the latest update helped. Thanks for keeping up with the wordpress versions.
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
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.
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
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.
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.
I have fixed it. Thanks for letting me know.
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.
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?
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.
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!
Butch Add tags don’t work for me.
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.
I found the problem. I had wordpress open in Chrome and Firefox at the same time.
Thankyou for your reply though!
Thank you for your great plugins
can you explain “Gallery type” option (Any/Only Attachments/Only Posts/Only Galleries)?
Hello Mike,
Galleries can contain not only images (attachments), but they can also contain posts and other galleries. You can include these objects using tags.
This article gives some examples on how post galleries and gallery galleries can be useful –
http://shibashake.com/wordpress-theme/who-says-wordpress-galleries-should-only-contain-pictures
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?
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.
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.
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.
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?
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. 😀
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?
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?
This depends on the front-end gallery rendering plugin you are using. Some front-end plugins may not support order and orderby.
I am using Lightbox Gallery by Hiroaki Miyashita. The ordering works when I disable the Media Library plugin, so it is not that.
Do these two plugins not work well together? Is there any way to order my images?
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 –
It should be on line 543.
2. Add in your order and orderby arguments under it, i.e. replace it with –
You are awesome! This works great, thanks!