• WordPress Gallery Plugin
    by ShibaShake
    [   See Full Article   ]
    163 Comments
    1. Hi again mate. I’ve setup the plugin for my blog and looks great! I need one more thing however. I want to have a link on every gallery “see original post” which will be a link to the post to which the images are attached to. As I see there are two possibilities for this (please feel correct me):

      1. Edit the shiba-native.php and add what?

      2. Add new meta box custom field in the Gallery post types where I would be able to enter the link manually of the original post I like to show in that certain gallery.

      Which case would be better for the job and how would I accomplish that?

      7:02 am on April 20th, 2012 Reply
      • It depends on where you want to add the link. The easiest way is probably to hook into post_gallery or img_caption_shortcode and add the link right into the html output.

        7:18 am on May 1st, 2012 Reply
        • I’m sorry but my php skills are not so good. Could you elaborate a bit more?
          Let me explain a bit more. My intended scenario is the following:

          Regular posts mixed with text and pictures. There would be a few sets of three thumbnail images throughout the text and the links of these thumbnail sets would take the user to a seperate gallery page where all of the images of that particular posts are grouped and showed into one big gallery. Much like the galleries on engadget.com. Well those specific gallery which contain all of the images of a specific post should have a link which takes the user back to the original post where the images are reviewed or so. I hope you understand what I’m aiming for.

          Engadget is probably the perfect example. It has review posts where a particular product is reviewed and the review is accompanied with images. When a use clicks on an image it takes him to a seperate gallery page which includes all of the images of the post which took you there. Hence the link back from gallery to the post.

          2:05 am on May 8th, 2012 Reply
    2. Kenny

      Hi again. Managed to get earlier issues fixed but have 2 questions now.

      1. Which JS should I look into if I have problem using Shiba Gallery with Fancybox? I am using a theme which currently uses Fancybox for some image animations – when I have thumbnails in galleries the image will open but there is no “next” button.
      2. How can I disable titles of images from showing when the page is trying to load Tiny gallery?

      Thanks again!

      11:30 pm on April 3rd, 2012 Reply
      • 1. If you are using Tiny slideshow then js file is in shiba-gallery/tinyss/script2.js
        2. I haven’t looked at this in particular, so I can’t say for sure. I would look at using js to change the css visbility, or try asking the TinySS developer.

        11:51 am on April 10th, 2012 Reply
    3. Tomas

      This is super!!! Many thanks, just a question…
      Can you set the default size in functions aswell?
      Maybe something like:

      define(‘SHIBA_GALLERY_DEFAULT’, ‘popeye’,’500,300′);

      (sorry for commenting twice but this posts seems more up2date)

      4:41 am on March 29th, 2012 Reply
      • For now you can reset the default size by going into shiba-gallery.php and changing line 486 -
        ‘size’ => ‘medium’,

        I will add a defaults filter and possibly add it into the interface when I update the plugin.

        11:46 am on April 10th, 2012 Reply
    4. Anonymous

      Hi

      Very nice plugin – one of the best. I’ve got 2 questions:
      1: Can I change the background color from grey to black for the Tiny option? Can’t seem to find which CSS to do the trick.
      2: Somehow this plugin seem to load images a bit slower, or its just my server at fault. Anyway to have a “loading” animation while images are loaded?

      9:38 pm on March 25th, 2012 Reply
      • The background color will be dependent on which frame you are using. You can modify frame css in shiba-gallery-frames.css (compressed) or it may be easier to look in shiba-gallery-frames-dev.css (uncompressed).

        As for speed, you can run time benchmarking software to identify what is taking the most time. Make sure you are using compressed images that are saved specifically for the web. Using a wordpress caching plugin can also help.

        3:24 pm on March 26th, 2012 Reply
        • Kenny

          I’m using the Tiny option. I would like to change the background color of the thumbnails (in the carousel) and also in the image’s background (when some images are smaller the background shows).

          9:27 am on March 27th, 2012 Reply
    5. Fran

      Love! Is there a way to combine the noodleslide and the slimeline so that when you click on the large image description in the noodleslide the linked image shows up in the slimeline type window?

      7:52 am on March 1st, 2012 Reply
    6. Yaw Hunu

      i really like your plugin, Please is there a way to tweak your plugin for it to show images attached to post without inserting shortcode in post but use some single php tag in my THEME…? Thanks

      4:22 pm on January 29th, 2012 Reply
      • This renders the gallery using PHP-

        global $shiba_gallery;
        echo $shiba_gallery->parse_gallery_shortcode("", array('id' => "10"));

        Refer to the “Call Shiba Gallery Directly from PHP” section in the article above.

        9:01 pm on January 29th, 2012 Reply
    7. a quick question

      Is there a way to eliminate ( ?gallery= ) from the website links
      for instance my link at the moment reads

      http://www.shaunalexander.net/?gallery=advertising-photography

      but I prefer it to be

      http://www.shaunalexander.net/advertising-photography

      4:02 pm on January 1st, 2012 Reply
      • Go into Settings >> Permalinks.

        You can set your gallery permalink structure from there. However, you will probably need to put in a unique slug (e.g. ‘photo’) so that it doesn’t conflict with existing permalink structures, such as your page permalink structure.

        For example you can set your permalink to
        /photo/%gallery%

        Which means the address will be site/photo/advertising-photography

        3:19 pm on January 4th, 2012 Reply
    8. Hi Shiba,

      Awesome plugin – thanks for the work you put into this.

      I have a question – while using the slimbox option, is it possible to size the image that the slimbox displays? Also, it is possible to show only one thumbnail for a gallery but when clicked, the slimbox allows cycling through all the images in that gallery?

      Thanks much!
      -raaj

      4:40 pm on November 11th, 2011 Reply
      • I would check out the slimbox site to see if this is possible. Then you can edit shiba-slimbox.php to alter the HTML generated.

        11:41 am on November 22nd, 2011 Reply
        • Raaj

          Hi,
          Here’s what I mean to ask and goofed up :) -
          For any gallery of multiple images, is it possible to modify the code to display only one thumbnail (i.e only one image in the gallery display) but then when that thumbnail is clicked the the slimbox opens, the slimbox allows navigation through all the images in the gallery (like how the slimbox behave out of the box today).
          If you could even point me in the direction of where the thumbnails for each gallery are created in the code, so that I can find a way to display only one thumbnail, that would be awesome and much appreciated.

          Thanks much!
          -raaj

          12:23 pm on November 26th, 2011 Reply
    9. [...] gallery is generated with the [gallery] short code and created the effects/formatting with the Shiba Gallery plugin. Filed Under: [...]

      5:50 pm on October 24th, 2011 Reply
    10. Vadim

      Hello. Please help me to configure this plugin. I poprobyval much, but it never happened = ((I have WP 3.2.1 I beg you to send e-mail here or detailed instructions on setting up.

      3:43 pm on October 19th, 2011 Reply
      • Hello Vadim,
        If you let me know what specifically you are having problems with, I can help to troubleshoot the situation. Otherwise, all the relevant instructions should be on this page.

        2:35 pm on October 21st, 2011 Reply
    11. james

      hi shiba,you have a very cool plugin.I was wandering whether is it possible if i want to integrate the plugin into the wordpress theme directly?

      8:47 pm on September 22nd, 2011 Reply
      • Hello James,
        I am not sure why you would want to do that since the gallery functionality is independent of theme components. A theme can certainly take advantage of the plugin by checking if it is available and using some of its inbuilt functions. However, it seems that integrating gallery rendering into a theme would only overload the theme.

        In general, I am a big proponent of slimmer themes, so that users have greater flexibility in picking and choosing what functions they want to include or exclude through plugins.

        11:14 am on September 23rd, 2011 Reply
    12. [...]
      WordPress Gallery Plugin | Comment Page 2 [...]

      11:34 am on September 12th, 2011 Reply
    13. Hi Shiba
      “Theme credit links are expected to go to the theme author. I don’t see how a site about dog tips, care and training falls into that category.”

      What a shame, but it’s still a great plugin.

      7:26 am on September 11th, 2011 Reply
    14. peyman

      First of all, this is a huge plugin, thanks.
      Second is it possible that this plugin conflicts with others
      JavaScript or jquery inside the theme ??

      7:29 am on August 30th, 2011 Reply
      • Conflicts are always possible.

        Nowadays I always test out all plugin updates on my test site first. In this way, I can make sure that everything is running smoothly before installing them on my main sites.

        3:09 pm on August 31st, 2011 Reply
    15. Brian

      Is it possible for me to add a custom javascript gallery just for my use? I found some nice ones here, http://galleria.aino.se/

      11:03 am on August 25th, 2011 Reply
    16. Hi Shiba
      Came over from the Studiopress forum where Nick the Geek recommended your plugin for creating a gallery.

      Examples look great and this site is fantastic.
      I’ll give the plugin a try.

      1:26 pm on August 20th, 2011 Reply
    17. Hi,
      your gallery plugin is great, exactly what i was looking for, but I have problem in using it. I did upload the plugin and did the settings in Media under Shiba Galleries in Word Press,
      now How do I get please Gallery in the Dashboard to be able to upload the photos and create the gallery, than i would like to use it on the page not on post. It is for artist portfolio page. Please help me, i am very new to web and try to create website for my business. I would appreciate your help. thank you

      6:51 am on August 19th, 2011 Reply
      • Hello Alice,

        The standard way to create wordpress galleries is to attach the images to a post/page. The same process shown in the tutorial below should work on both Posts and Pages.
        http://shibashake.hubpages.com/_srec/hub/WordPress-Photo-Gallery

        Then you can display the gallery by using the [gallery] shortcode right in the body of the page.
        http://codex.wordpress.org/Gallery_Shortcode

        3:21 pm on August 19th, 2011 Reply
        • Thank you very much, I just started to create the gallery, and I’ve read your tutorial. Such a great plugin and how beautifully explained. Amazing and clear work.

          Warm regards
          Alice

          5:38 am on August 20th, 2011 Reply
        • Hi Shiba
          I notice that you use shortcodes that include an ID for a gallery eg. [gallery id="10" type="noobslide_galleria" ]

          Where do you find the gallery ID?

          I’ve used the method you direct us to above i.e. “attach the images to a post/page”, but I just wondered about the gallery ID.

          Just starting to play with your plugin using slimbox and it is so fast!

          Thanks for a great plugin.

          11:40 am on August 29th, 2011 Reply
          • Hello Keith,
            The gallery ID is simply the post or page ID. You can use the ID attribute to display galleries from multiple different posts or pages within a single page.

            You can get the post ID by editing the post and then looking up at your address/url bar. It should have something like -
            mysite.com/post.php?post=3846&action=edit

            You can also just hover your mouse on the post titles while on the Posts screen. That will also show you the edit post URL and the post ID.

            Let me know if you run into any problems. Cheers.

            3:04 pm on August 31st, 2011 Reply
            • Hi Shiba
              Thanks for the info.
              I’m getting there slowly.

              Love your plugin and if it’s recommended by Studiopress… say no more.

              If I may, could I ask why your plugin is not in the WordPress repositary?
              Any reason?

              11:04 am on September 1st, 2011
            • Hello Keith,
              I tried submitting a theme when I first started playing around with WordPress. One of the replies I got from wordpress.org goes as follows -

              Theme credit links are expected to go to the theme author. I don’t see how a site about dog tips, care and training falls into that category.

              After a few more exchanges, it became clear that their time and mine would be better spent in other more positive pursuits. :D

              8:58 am on September 2nd, 2011
    18. Nicole

      Hi, I would like to use the PictureSlides “Slideshow only and autoplay” option. Is this possible? Thanks for any help.

      2:24 pm on July 21st, 2011 Reply
      • Edit shiba-pslides.php and add
        startSlideshowAtLoad : true,

        on line 19, right after
        jQuery.PictureSlides.set({

        Here are the other settings available for pslides -
        http://www.robertnyman.com/picture-slides/implementation.htm

        2:04 pm on July 22nd, 2011 Reply
        • Nicole

          Thanks for your help, I have done that and added some other settings but can’t see what setting turns off the thumbnail navigation. Am I missing something?

          3:16 pm on July 24th, 2011 Reply
          • To remove thumbnails –
            Edit the shiba-pslides.php file.
            Comment out lines 115-117

            /*	
            			$imgStr .= "< li>\n";
            			$imgStr .= "< a href=\"{$url}\"><img alt='{$image->post_title}'\"  src=\"{$thumb[0]}\" style=\"width:{$thumb[1]}px;height:{$thumb[2]}px;padding:{$padding};\"/></a>\n";
            			$imgStr .= "< /li>\n";
             
            */
            1:03 pm on July 28th, 2011 Reply
    19. Ryan

      Thanks for the great plugin! Quick question:

      Some of my posts with galleries also have PDF files uploaded to the post as well, and the gallery plugin is trying to display the PDF in the gallery, leaving an empty box around the “would be” thumbnail.

      My question: Is there a way to tell Shiba Gallery to ignore the PDF’s so that they don’t display at all?

      Thanks in advance for any help!

      2:34 pm on June 29th, 2011 Reply
      • Try going into shiba-gallery.php and add a ‘post_mime_type’ argument to the $args array on line 514.

        2:54 pm on July 10th, 2011 Reply
    20. Zak S

      Hi, I was wondering if there was any way to include something like a youtube video (or similar embedded media) in a gallery?

      9:51 am on June 10th, 2011 Reply
      • That would be a useful function, but it is currently not in the plugin yet. If you decide to add something like this, let me know.

        3:06 pm on June 13th, 2011 Reply
    21. I seem to remember there was a parameter for sorting photos? I want to display from newest to oldest. I can’t find that anymore so not sure if it ever existed.

      :)

      7:55 pm on June 9th, 2011 Reply
    22. Hi. Does anyone have PHP sample code showing how to page through results, say 10 at a time? I have a gallery that returns too many, so I capped it at 16 but can’t access the additional ones easily.

      Any advice?

      Cheers!

      8:49 pm on June 8th, 2011 Reply
      • … by the way, do know the page=”2″ parameter, but the question is how to know if there are further results to continue paging or even how to keep the marker.

        :)

        8:54 pm on June 8th, 2011 Reply
    23. Itay

      Hi

      I need the noobslide gallery , but without the sliding effect. What do I have to change on that piece of code on shiba-noobslide.php?

      fxOptions: {
      duration: 1000,
      transition: “.$shiba_gallery->TRANSITION.”,
      wait: false
      },

      Thanks

      Itay

      4:21 am on May 13th, 2011 Reply
    24. kat

      hi there,

      could you please direct me to the place that I can remove an empty image, which shows up at the end of the gallery? I have no idea where it came from, because I use your plugin on every site I build and it’s never happened. I managed to remove the link to the image itself, but caption remained and it looked awful. Strange thing…

      Here’s the link: http://9punkt.pl/projekt/mtblanc

      many thanks for a great plugin :)

      5:22 am on May 5th, 2011 Reply
      • Hmmm, I didn’t see a gallery when I visited the link. My guess is that the image was deleted, but somehow the attachment object is still hanging around. You want to make sure to delete the attachment object in the Media Library menu.

        3:24 pm on May 7th, 2011 Reply
    25. Andy C

      How do you suggest re-ordering images? Not quite sure how to go about it, or maintain it over time.

      6:14 pm on April 20th, 2011 Reply
    26. Hector

      Hi. I use both Shiba Media Library and Shiba Gallery (I cannot thank you enoigh for these plugins!) on WP 3.0.5 but would like to upgrade to 3.1.1 to use drill-down taxonomies. Are your plugins compatible with 3.1.1?

      Cheers!

      11:09 pm on April 19th, 2011 Reply
      • They should be. This site is currently running 3.1.1. However, as always, I would test them out on a test site first.

        10:26 am on April 20th, 2011 Reply
        • Hector

          Thanks! I will test. Fingers crossed.

          6:05 pm on April 20th, 2011 Reply

    Leave a Reply

    Your email address will not be published.

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

    search button search button
    rss