Gallery-Buddy

With Gallery-Buddy you can select and sort pictures at the medialibrary-tab of a post or page and embed them as an gallery via shortcode.

Author:Johann Heyne (profile at wordpress.org)
WordPress version required:3.2
WordPress version tested:3.3.2
Plugin version:0.2.9
Added to WordPress repository:01-12-2011
Last updated:05-03-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:93
Rated by:3
Plugin URI:http://www.johannheyne.de/wordpress/gallery-b...
Total downloads:7 213
plugin download
Click to start download

Summary

With Gallery-Buddy you can select and sort pictures at the medialibrary-tab of a post or page and embed them as an gallery via shortcode.

Select Images

Select a page or post, you want to add a gallery. Click at the "Add Media" button above the editor and choose the "Media Libray" Tab. Then use the checkboxes to define the images of the gallery. The selected images appears below in a list where you can sort and delete the gallery-images.

Embedding

To get the gallery on the current page or post, you have to insert following shortcode in the editor [buddy-gallery width="600" height="450"] Change width and height for your needs.

Styling

This is the html and its classes they will be used by the plugin to build the gallery. So may you can style the gallery for your own by the classes.

<div class="gallery-buddy" style="width: 600px">
    <!-- each image -->
    <div class="gallery-buddy-slide">
        <div class="gallery-buddy-img">
            <img src="" width="" height=""/>
            <div class="gallery-buddy-prev"><span class="gallery-buddy-btn">‹</span></div>
            <div class="gallery-buddy-next"><span class="gallery-buddy-btn">›</span></div>
        </div>
    </div>
</div>

Additional Functions

There are some PHP functions for additional usage.

<?php 
    /* returns all gallery-buddy images post_id´s as an array depending on the current post-id of a loop */
    get_gallery_buddy_images_by_postid();

    /* returns all gallery-buddy images post_id´s as an array depending to post-id 23 */
    get_gallery_images_by_postid(23);

    /* returns an image-tag from the first image of a gallery-buddy gallery */
    get_gallery_buddy_thumbnail($post->ID, 'thumbnail', 'classes');

    /* returns the post_id from the first image of a gallery-buddy gallery */
    get_gallery_buddy_thumbnail_id($post->ID);
?>