JoomlaWorks | Professional Joomla! extensions | Home of K2, Frontpage Slideshow, Simple Image Gallery Pro, AllVideos, K2mart, SuperBlogger and many more!

You are here:Home arrow Documentation arrow Simple Image Gallery Pro (plugin)
Simple Image Gallery Pro (plugin)
Friday, 10 April 2009

INSTALLATION

First of all, make sure you always download the latest version. Use our PDS system for that. If you just bought the plugin, you already have the latest version.
The following instructions apply to version 2.5 or newer:

IMPORTANT NOTE: Joomla! 1.0.x is no longer supported. Simple Image Gallery Pro supports only Joomla! versions 1.5 to 2.5.

There is 1 single file you use to install the plugin, which is compatible with Joomla! 1.5-1.7. After you download this zip file, upload and install the plugin by using the Joomla! installer. Navigate to:
  • Extensions >> Install/Uninstall (for Joomla! 1.5)
  • Extensions >> Extension Manager (for Joomla! 1.6 to 2.5)
...to install the plugin.

Finally, navigate to Extensions >> Plugin Manager (all Joomla! versions) and publish the plugin. To edit the plugin parameters, simply click on its name "Simple Image Gallery Pro (by JoomlaWorks)".

REQUIREMENTS

In order for Simple Image Gallery PRO to function properly, please make sure that you are running at least PHP 4 and that PHP's GD image library is installed on your server (common webhosts have GD installed by default). For the Flickr integration, PHP5 is required.

You also have to make sure that Joomla's /cache folder is writable, in other words, check that the permissions for this folder are 755 or 777. If the plugin cannot generate the thumbnails due to bad permissions, you will see a related notification.

HOW DOES IT WORK?

2.5.6_params.pngThe concept is simple. You want to add image galleries inside your articles (content items)! First set the "Root folder" of all galleries in the plugin's settings. By default it's the "images/stories" folder. Now create a new folder anywhere inside your root folder, for example let's say this folder is summer_trip_to_italy and upload there all your images. Go ahead and create a new content item (or open an existing one) and simply insert {gallery}summer_trip_to_italy{/gallery}, where you want your image gallery to appear inside your text. It doesn't have to be at the end of your article, it can be anywhere you insert it inside your content item. That's it! Fire up your favorite browser, navigate to the above content item et voila! An image gallery inside your content item!

If you want to create a gallery from subfolders inside the ROOT folder, simply add them like this: {gallery}folder/subfolder/othersubfolder{/gallery}. In other words, write the path to your target folder without any slashes at the beginning or the end of your path (it's added auto-magically!).

You can have as many galleries as you want inside each content item, since caching takes care of performance. Thumbnails are not generated every time the page with the galleries loads, but after certain intervals, specified in the plugin parameters. The default interval (cache expiration time) is 120 minutes (2 hours). (You can see the thumbnails in your Joomla! site's cache manager and you can delete the thumbnails whenever you want so they are instantly re-created upon subsequent page loads by visitors.)

Don't forget to adjust the width and height of the thumbnails. Decreasing the width means you are adding more thumbnails in each row of the gallery. So, experiment before going public. Also, set the image quality of the created thumbnails. Low quality means smaller thumbnail sizes and therefore better loading times for your site.

For performance issues, prefer not to use over 50 images per content item, otherwise you're just overweighing your pages. The plugin will have no problem handling the conversion, it's just that your users will wait for many thumbnails to load.

Alternatively, you can "switch" to "single thumbnail" display mode and launch your galleries from one thumbnail only! That's right! E.g. you can launch a slideshow of 50 images from a single thumbnail, without overweighing your article page with thumbnail images. The user sees all full-sized images by navigating with the "previous" and "next" buttons within the popup window! This can come handy when you want to display a sequence of images as a presentation.

Flickr Integration: Since October 2011, Flickr changed some of its API requirements and now an API key is required in order for you to be able to embed Flickr photo sets on your site. The process to get an API key is very simple: Sign in to your Flickr account, then visit http://www.flickr.com/services/apps/create/ and choose to get a non-commercial key. Name your app as your website. You can safely use this API key on more than one websites, even on different domains.

Update on October 2011: It is important to understand that the "Polaroids" gallery layout makes extensive use of CSS3 which is not fully supported by all versions of Internet Explorer (IE). In order to make IE6 to IE8 compatible with this gallery we use additional JavaScript code which "triggers" behaviour in those browsers similar to CSS3's capabilities (e.g. thumbnail rotation, shadows etc.). Thus the layout is not 100% identical to modern browsers like Mozilla Firefox, Google Chrome, Apple Safari and Opera. IE9 however, being an actively developed browser by Microsoft (which supports some CSS3 specs), is known to have issues rendering this particular layout natively, which we're currently investigating. We strongly advise users whose site visitors are mostly coming from IE to possibly use a different gallery layout.

GOING PRO!

Multiple "Popup" Engines

Simple Image Gallery PRO utilizes 9 popup engines for ultimate style and compatibility with various frameworks. Included are 2 engines supporting "slideshow" mode and our brand new popup engine SimpleBox (also available to download for free). Proper checks will make sure that Mootools or jQuery are not loaded multiple times. Popup engines utilizing jQuery will download the latest library version minified from the "Google AJAX Libraries API" service, which means faster load times for your website and your gallery.

Custom galleries

"Simple Image Gallery PRO" provides the user the ability to have customized image galleries. For this to happen, we have included 6 additional "switches", which you can use to set different width, height, display mode, caption mode, popup engine and gallery layouut per gallery! That means you can bypass the global settings "Thumbnail viewport width", "Thumbnail viewport height", "Display Mode", "Default caption (label) handling", "Popup engine for image galleries" and "Layout template for image galleries", and have for example image galleries that display thumbnails in different dimensions within the same article.

To do that you need to insert up to 6 (optional) values in the tags used by the plugin. The syntax is the following:

{gallery}folder_path:thumbs_width:thumbs_height:display_mode:caption_mode:popup_engine:gallery_layout{/gallery}

Watch out for the seperator, which is the character ":".

  • "thumbs_width" is the target width in pixels for all thumbnails.
  • "thumbs_height" is the target height in pixels for all thumbnails.
  • "display_mode" is the mode in which we want our gallery to display. It takes only 2 values, either "0" or "1". "0" means "normal mode" and "1" means "single thumbnail mode".
  • "caption_mode" control how captions (labels) are displayed. It takes only 3 values, either "0" (no captions), "1" (caption with generic messages) or "2" (captions coming from labels.txt files).
  • "popup_engine" overrides the default popup engine (see our demo site). Values are: jquery_slimbox, jquery_prettyphoto, jquery_colorbox, jquery_fancybox, highslide, lytebox, greybox, mootools_slimbox, simplebox.
  • "gallery_layout" overrides the default gallery layout. Values are: Artistic, Classic, Elegant, Galleria, Polaroids, Sleek
The most important ones of course are the first 2 params (after the folder path): width & height

So if for example you want to insert an image gallery in some article with thumbnails displaying in 300px width and 160px height, while keeping the "normal" display mode (showing all thumbs, not just the first one), with caption showing generic messages, you would insert the following tag:

{gallery}folder/some_folder:300:160:0:1{/gallery}

...which translates to: "create image gallery from the images inside 'folder/some_folder', give them a width of 300px and a height of 160px, do not display them (0) in "single thumbnail" mode and display generic captions (1) for every thumbnail.

If we did want to display the gallery in "single thumbnail" mode, then we would insert:

{gallery}folder/some_folder:300:160:1:1{/gallery}.

If we wanted to override the popup engine and the gallery layout as well, we could use something like:
{gallery}folder/some_folder:200:80:1:2:jquery_colorbox:Galleria{/gallery}

Important!
These values are completely optional. This means you can use: {gallery}some_folder:200:160{/gallery} to adjust dimensions only to thumbs (no change in display mode) or even {gallery}some_folder::160{/gallery} to adjust just the height (the width value was ommitted). If we wanted to simply switch the gallery to "single thumbnail" mode, then we would just add something like: {gallery}some_folder:::1{/gallery}. When you don't enter one of the 3 values, it is assumed you are using the global ones. Simple, right?

Flickr Integration
Adding Flickr Sets to Joomla! couldn't get any simpler than this. Just the URL of a Flickr set (e.g. http://www.flickr.com/photos/joomlaworks/sets/72157626907305094/) and paste the URL inbetween the plugin's tags like this:

{gallery}http://www.flickr.com/photos/joomlaworks/sets/72157626907305094/{/gallery}

...and you get probably the simplest and fastest way to embed Flickr Sets in Joomla!. Remember to get a Flickr API key first at http://www.flickr.com/services/apps/create/.

For more advanced overrides
, all additional values/params as outlined in the previous section are also present for Flickr Set embedding, with the exception of an extra value for the count of images fetched from Flickr. Check this example:

{gallery}http://www.flickr.com/photos/joomlaworks/sets/72157626907305094/:20:200:80:1:2:jquery_colorbox:Galleria{/gallery}

This translates to:

{gallery}flickr_URL:flickr_Image_Count:thumbs_width:thumbs_height:display_mode:caption_mode:popup_engine:gallery_layout{/gallery}

Individual captions/labels on popup images

"Simple Image Gallery PRO" gives you the ability to easily set individual captions (labels) on popup images. This is a feature many people have asked for, especially photographers and other such professionals, who want to add some comment in their photos and not just have a generic message appearing. Although using EXIF data from JPEG images originally sounded like a nice idea, it soon became obvious to us the trouble in which users would get to add a few captions to their images, as well as the limitations posed (no support for GIF or PNG images). So we decided that a simple text file would do a better job. So how do you add custom captions/labels to your images?

Simply enable the related option "Default caption (label) handling" in the plugin parameters and the required xx-XX.labels.txt file (where xx-XX is your site's default language locale) for each gallery will be automatically generated with some sample text in. All you have to do then is simply open and edit the xx-XX.labels.txt file of the gallery for which you want to have captions. You can freely use HTML inside the description, just make sure you have one caption per line. After you edit the xx-XX.labels.txt file for a gallery, you would end up with something like:

filename1.jpg|Trip to Italy|You can see us here in piazza di Roma
other_filename.png|caption title|and this is another caption<br />with some HTML <b>in it</b>!
trip_to_canada.gif|caption title|SIG Pro is pretty cool!


As you can easily understand, each caption is broken down to 3 parts:
  • the filename (autogenerated from Simple Image Gallery PRO)
  • the caption title
  • the caption description
Simple Image Gallery Pro plays nice with Joom!Fish too. If you have multiple languages set in your site with Joom!Fish, the plugin will create different xx-XX.labels.txt files, using the available languages. So if your site has English and French available for example, the plugin auto-generates en-GB.labels.txt and fr-FR.labels.txt files.

In versions prior to 2.5 of the plugin, the caption files where only named labels.txt. If you have already built your caption files, you don't need to worry. The plugin can still read labels.txt files, but any new gallery created will make use of the new naming format.

MVC templates: the power to customize the look of your galleries

The feature trully setting apart all our commercial plugins from any other Joomla! plugin are their MVC architecture, currently available in Joomla! for components and modules only. That means you can use HTML and CSS template overrides inside your Joomla! template and completely change the way the plugin elements display on your website!

So you can either choose to use the versatile base styling of the plugin or simply override it (both the HTML and CSS code) by copying the plugin's folder /plugins/content/jw_sigpro/tmpl/SomeGalleryName in Joomla! 1.5 or the folder /plugins/content/jw_sigpro/jw_sigpro/tmpl/SomeGalleryName in Joomla! 1.6 or newer TO your Joomla! template's /templates/YOURJOOMLATEMPLATE/html/jw_sigpro/ folder (create it if it doesn't exist), as you would with components and modules. Whatever changes you do from now on within this folder, will completely override the plugin's output, exactly as you would with any other MVC component or module.

Simple Image Gallery Pro
uses 6 base layouts (templates) for rendering galleries, with associated CSS, JS and IMAGES folders. You are able to override all files or selected files, as you would with any other MVC component or module, with the better exception that Simple Image Gallery overrides CSS and JS files as well, as long as you maintain the same names (template.css and behaviour.js).

Putting it all together

1. This gallery operates using the global plugin parameter settings (thumbnail dimensions set to 200x160, normal mode, generic caption messages). Tag used: {gallery}sigpro/t3girls{/gallery}


2. This gallery has thumbs assigned to 180x120, displaying in normal mode, no caption messages. Tag used: {gallery}sigpro/movies:180:120:0:0{/gallery}


3. This gallery has thumbs assigned to 200x260, displaying in single-thumbnail mode, no caption messages. Tag used: {gallery}sigpro/megara:200:260:1:0{/gallery}

As you can see here, nearby text nicely wraps around the thumbnail.

4. This gallery has thumbs assigned to 240x140, displaying in normal mode, with custom captions on (using a labels.txt file). {gallery}sigpro/casino_royale:240:140:0:2{/gallery}


Full demos can be found on our official demo site at: http://demo.joomlaworks.gr/simple-image-gallery-pro

That's all there is to it! Please submit any comments to the related board for Simple Image Gallery PRO in our Community Forum.

VIDEO TUTORIAL

The people from SiteBento.com where kind enough to create and share a short video tutorial in HD (for which we thank them) on Simple Image Gallery Pro 2.0.x (a slightly older release). This demo showcases how to use the plugin on a specific website, but the same principles apply on all Joomla! websites, both for frontend and backend administration. The uploader used in the video is the JCE editor for Joomla! which is freely available at: www.joomlacontenteditor.net


Slight correction for the video: Simple Image Gallery Pro is sold for 14.90 Euros, which is around 20 US dollars and not 30 as it's mentioned in the video ;)
Last Updated ( Thursday, 02 February 2012 )

Social Sharing: