2010-03-11
Very Simple Image Gallery Plugin Installation and Usage
Written by Andreas Berger   
Monday, 29 December 2008 08:04
A step for step tutorial on how to install and use the Very Simple Image Gallery Plugin.

Installation

1.) Log into your administration interface


2.) Go to "Extensions" > "Install/Uninstall"


3.) Select the Package File with the Very Simple Image Gallery Plugin


4.) Click "Upload file & Install"


5.) If everything worked fine, you get the message "Install Plugin Success"


6.) Select "Extensions" > "Plugin Manager"


7.) Find the "Very Simple Image Gallery Plugin" and click it


8.) The first two parameters set the complete width of the gallery and tell the plugin if the setting is meant as percent or pixel.
"Gallery width" is the complete width. If you decide to display the thumbnails below the main image, this is the width of the main image. If you decide to display the thumbnails right of the main image, "gallery width" is the width of the main image plus the space, used by the thumbnails.

The second parameter tells the plugin if the setting above is meant as percent or pixel. Please insert integers, no decimal places.



Notice: The option to use percent here, handle with care. Internet Explorer has a problem with image-widths, given as percentage. This occurs if - at the moment the browser reads in the image and calculates the necessary space - there is no information available from the template on how to scale it. In this case, Internet Explorer uses the real image width to calculate the space, regardless of your setting. Some templates are destroyed by this behavior.

To check out if the setting works with your template - try out. Some do, some don't. BizBlue II, I´m currently using does not.


9.) The next parameter sets the position of the gallery within the available space. You may choose between left - centered - right, float left and float right. The last two options allow the gallery to get wrapped by your text. They also increase the dependence from the used template and will not always show the desired results!


10.) The next parameter to configure is the maximum width of the thumbnails in pixel.


11.) Next comes the maximum height of the thumbnails in pixel. Maximum means that an image that differs from the given proportion will get scaled following this maximum values.


12.) The next parameter is the quality of the thumbnails in percent. Values from 60 to 70, maybe 80 will do fine. Remember, the higher the quality, the larger the filesize!


13.) Next comes the space between the thumbnails in pixel. Try out what fits best, there is no given rule.


14.) The thumbnails may get displayed right or below the main image. What fits your needs depends on your template.



Starting with Version 1.2.0 there is a third option available "below justified". If selected, the plugin takes your settings and modifies the size of the main image and the size of the thumbnails to justify the thumbnails exactly below the main image.
This works only, if you have set the width of the main gallery in pixel!


15.) If you have decided to show the thumbnails right of the main image, this is the parameter to set the percentage of the gallery width (12.) the thumbnails may use. Depending on gallery width, thumbnails width and space between the thumbs, it´s on you to try out what value fits best.
If you have decided to show the thumbnails below the main image, this parameter is of no relevance.


16.) "Sort Order" sets the order the images are shown. You may choose between alphabetic ascending, alphabetic descending, old to new and new to old (both use "last changed" not "created"!) and random.


17.) Starting with version 1.5.0 the parameter "Sets" offers the possibility to split a gallery into multiple sets (refer the samples). Left empty all images are shown on one page. Same goes, if the given value is higher than the number of images found.



Any other value (3, 4, ...) creates multiples sets and generates links that allow to navigate between the sets. In addition, a counter is generated, that shows the number of sets available.


18.) "Label Sets" tells the counter how to - yep - label the sets. "Set", Desk", "Page" ... your turn.


19.) The parameters "Link/Button forward" and "Link/Button backward" set the button/text, you want to use for the links, that allow to navigate between the sets.

Left empty the plugin will use the automatically installed default buttons.

If you insert text, this text will be used.

 


Instead of the default buttons or text links you may also use custom buttons. Just insert the name of the image-file you want to be used (including the suffix). The plugin detects .jpg, .gif and .png and searches for the corresponding file in the set folder (we will set this a littel later, by default it is "/images/stories/vsig_buttons"). If the file exists, the image is shown.


20.) If you activate "Show captions?", you have the possibility to add Titel and Text to your images.


21.) "Position of Captions" sets if the captions (and text) are shown crossfading over the lower part of the main image or below the main image.


22.) "Use links?" allows - if activated - to set links for the images.


23.) Image root configures the path to the folder you are uploading (directly or stored in subfolders) your images. By default this parameter is set to /images/stories/ (and this folder is also used when the parameter is empty). In most cases this setting will fit your needs and there is no reason to change it. Only if you have organized your images in a folder structure outside of /images/stories/, put the path here.
The set value of this parameter will be added to the folder name you insert in the code in your article automatically by the plugin and must not be repeated in the article.


24.) Buttonfolder
If you are going to use custom buttons for the navigation between sets, this is the pülace to put the path to the folder you uploaded this buttons. By default this parameter is set to /images/stories/vsig_buttons/ (and this folder is also used when the parameter is empty).


25.) "Use JavaScript?" decides if a click on a thumbnails just replaces the main image without reloading the page (option YES) or if a click reloads the page with the new main image. To use JavaScript is more comfortable for your visitors, but if page-views are very important for you, you may choose to work without.
Visitors having JavaScript disabled will get served the second option anyway. This way we provide a noscript-fallback so anyone can use the gallery.


26.) The parameter "Foldername as ID" gives you the possibility to set the name of the folder, from which the images are taken, as identity of the surrounding div-container of the gallery. (id="foldername").



The plugin contains in the folder (Joomla-Installation)/plugins/content/plugin_vsig the stylesheet vsig.css. This stylesheet is loaded after the css-settings the plugin writes to the head-section of the page and gives you the possibility to overwrite every single setting. This works anyway and applies to all "very simple image galleries" on your site.
Setting a unique identity gives you furthermore the possibility to use this identity as a CSS-Selector and use individual styles for one single gallery.


27.) At the last you find the results of the GD-check, the plugin performs. The GD library is the most widely spread extension of PHP when it comes to image manipulation and the plugin makes use of this library to create the plugins. It checks if the library is available at all and if the relevant image file formats (jpg, png and gif) are supported.



If one or two file formats are not supported, the plugin will still work with image files of the remaining file format(s).


If the GD library is not available at all, the plugin cannot be used. In this case I recommend to ask your hoster if the GDlib can get enabled for your account.


28.) Activate the plugin


29.) Click "Save" - done


 

Usage


Next we need the images. We upload them to a folder in (Joomla-Installation)/images/stories.


1.) Go to "Site" > "Media Manager"


2.) Navigate to the folder "Media" > "stories"


3.) Create a new subfolder for your images. In this sample I choose the name "verysimple"


4.) Open the new folder ...


5.) ... and upload your images to it. The plugin accepts images of type ".jpg", ".gif" and ".png".


6.) Go to "Article Manager" and open the article you want to display the gallery.


7.) At the place you want the gallery to be shown insert the code to call it.

The code consists of the call {*vsig}{/vsig*} (without the asterisks) and contains the name of the folder with your images. The path to this folder "/images/stories" is added by the plugin automatically and must not be inserted.

The complete call in our sample would look such as:

{*vsig}verysimple{/vsig*} - without the asterisks

To use a folder within a folder, the path below "/images/stories/" is used, e. g. to use the folder /images/stories/folder/subfolder" the call would look such as:

{*vsig}folder/subfolder{/vsig*} - without the asterisks

In general that´s it and the gallery is ready to go.

How to show title and text with our images or modify the current gallery from the default-settings in the backend, find out in the second part of this howto (link at the end of the page).


8.) Save - done!


 

Maintenance

The plugin creates in the given folder a subfolder called "vsig_thumbs" for the thumbnails. Into this folders it saves the thumbs following the naming convention:

"imagename" underline "width" underline "height" underline "quality" point "filetype"

e.g.: "myimage_80_60_80.jpg"

Although the plugin creates this files, it does not delete them. Therefore - after having tried different settings - it may be useful to delete obsolete thumbnails.

1.) To do so - after having opened the gallery at least once in the frontend - we go to "Site" > "Media Manager" again


2.) The folder with our images ("verysimple" in this sample) now contains the subfolder "vsig_thumbs".


 

3.) Obsolete files in "vsig_thumbs" may be deleted. If you delete a - still needed - thumbnail too: No problem, the plugin recreates it automatically.



Notice:
The plugin validates images by name and size. Therefore the plugin will not automatically notice, if you have replaced a image with another of the same name and size. To have a thumbnails created for the new image you have to delete the corresponding scaled thumbnail by hand from the folder mentioned above. This way the plugin will use the new image to recreate the thumbnail.


A survey of the possibilities to call, extend and modify galleries with the code in the content item: Howto Plugin Code


If you have questions or suggestions, please use the comment-function.

If you use this extensions, please post a rating and a review at extensions.joomla.org. Furthermore I appreciate everyone, supporting me with a link back to www.bretteleben.de on his/her website. The extension itself does not produce any hidden links, eastereggs or whatever.

 

Last Updated on Saturday, 16 January 2010 19:32
 
Comments (365)
Thumbnails location
365 Wednesday, 10 March 2010 19:50
Gavrilo
yop, very sorry, just found out that I had to raise the percentage allowed for the thumbnails further more!!
Thumbnails location
364 Wednesday, 10 March 2010 19:48
Gavrilo
Hi!

First of all, thanks a lot for your plugin!

Now I have just one small problem: I'd like to have the plugins show on the right of the image, but they keep showing below it, although they're lined up vertically.

Have you already had this issue? I tried minimizing the width of the main image, reducing thumbnails, augmenting the percentage of the width available for the main image, etc, but nothing worked so far...

Thanks a lot for your answer!

Best regards,


Gavrilo
@Sarah Blankenship
363 Sunday, 07 March 2010 21:44
A. Berger
Hi Sarah!

Open the file /plugins/content/plugin_vsig/vsig.css with a texteditor.
In the line of the selector .vsig_top img {} replace:
margin:0px 0px 0px 0px;
with:
margin:0px 0px 0px 0px !important;

In the line of the selector .vsig_thumb img {} replace:
margin:-5px 5px 5px -5px;
with:
margin:-5px 5px 5px -5px !important;

These two steps don't remove the dropshadows but they fix the problem, created by an inherited setting from the Artisteer template you are using.
Anyway, o remove the dropshadows modify the selector .vsig_thumb img {} once again and remove: background:url(shadowAlpha.png) no-repeat bottom right !important;background:url(shadow.gif) no-repeat bottom right;

Best regards
Andreas
thumbnail problem
362 Saturday, 06 March 2010 22:10
Sarah Blankenship
Hi,

For some reason I'm getting a box with a drop shadow behind my thumbs. The box is the same color as the page background, but those drop shadows are showing up. Here's a link to view what I'm talking about: http://missionarymarketplace.com/index.php?option=com_content&view=category&id=11:abraham-a-rachel-gonzolas&layout=blog&Itemid=9

Any idea on how to get rid of those boxes?

Thanks for your help!

Sarah
@Villu
361 Tuesday, 02 March 2010 19:49
A. Berger
Hi Villu!

Please check if you are using other extensions, that modify images in content articles (Easy Image Captions, Redim Image Sizer). If so - deactivate them temporarily to check which one is causing the problems and as soon as you have identified which on to work with, configure it properly to leave the Very Simple Image Gallery untouched. How to do this depends on the extension that is causing the problems.

If the problem has nothing to do with an extension, temporarily switch the template to check if this is the reason - and tell which template you are using.

Best regards
Andreas
VSIG don´t show pictures
360 Tuesday, 02 March 2010 10:34
Villu
Hello!

This image gallery is realy great but i cant get it working. With Firefox I can show only squars and image names, but no pictures. IE shows me only thumbnails but no pictures. I use xampp, localhost, GD library is enabled, all folders (in Help - system info) are writable.

What could be the problem?
@bea
359 Monday, 01 March 2010 19:39
A. Berger
Hi bea!

No, up till now one gallery shows one folder.

Best regards
Andreas
Multiple sub folders
358 Monday, 01 March 2010 02:24
Bea
Is it possible to use multiple sub folders in the same gallery. Such as stories/simple, stories/easy, stories/manageable and have them all show in the same line up for one gallery?
@Nicole
357 Thursday, 25 February 2010 20:58
A. Berger
Hi Nicole!

Probably there is a fatal error, caused by large image files. If the GD library of PHP needs more memory to create the thumbnails than the setting in your php.ini allows, this causes a fatal error.

If you go to your Joomla! backend and increase the error reporting level (Site > Global Configuration > Server) to "maximum" you will see the error on the page.

The page FAQ&Troubleshooting deals with this error in detail. In short: Use smaller image files.

Best regards
Andreas
Blank Page
356 Thursday, 25 February 2010 20:49
Nicole
Hello,

I have followed your instructions but all I am getting when I click on my Photo Gallery Menu item is a blank white page??

Any ideas?
English
Latest Items
AddThis Social Bookmark Button
Panoramic Image Viewer
Who's Online
We have 170 guests online