2010-08-01
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.) "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.


9.) "max. Image height" allows to set if the images use the full available width (empty) or if they get scaled to meet the set maximum height (integer, e.g.: 300). Using this parameter makes sense if you are showing images of different proportions in one gallery.


10.) The next parameter is the quality of the images in percent. Values from 80 to 90 will do fine. Remember, the higher the quality, the larger the filesize!


11.) 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!


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


13.) Next comes the maximum height of the thumbnails in pixel.


14.) The next parameter sets if thumbnails get scaled proportionally or cropped to fit the set maximum values.


15.) 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!


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


17.) 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!


18.) 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.


19.) "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.


20.) 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.


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


22.) 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.


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


24.) "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.


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


26.)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.


27.) Buttonfolder
If you are going to use custom buttons for the navigation between sets, this is the place 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).


28.) "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.


29.) 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.


30.) 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.


31.) Activate the plugin


32.) 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 subfolders called "vsig_images" and "vsig_thumbs". Into these folders it saves the images/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 images/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 subfolders "vsig_images" and "vsig_thumbs".


3.) Obsolete files in these folders may be deleted. If you delete a - still needed - image/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 an image/thumbnails created for the new image you have to delete the corresponding scaled image/thumbnail by hand from the folders mentioned above. This way the plugin will use the new original image to recreate the image/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.

If you need additional features or customizations for your project that exceed the scope of support offered through the comments, you are invited to submit your requirements specification and the planned budget by email (menu item "Contact" in the menu at the top).

Last Updated on Sunday, 14 March 2010 14:58
 
Comments (383)
Help for a newbie..
383 Monday, 28 June 2010 07:35
Marrianne

Hi, Firstly, Thank you so much for making your  tutorials so easy to understand for people (like myself) who have very little knowledge of joomla - i am teaching myself and so far have used 3 of your plug ins in my site with no problems whatsoever - and I can barely use email.... but this one is frustrating me no end... I get  a blank white page when i use both the simple image gallery and very simple image gallery...i have enabled it, its in an article (not a module) and I get no error message and have tried refreshing the page acouple of times and just waiting it out...... The thumbnail folder and image folder are there but all I get from the front end is  just white space. So what am i doing wrong? I am sure its something very basic and obvious but any assistance would be appreciated. Thanks.

@Marrianne
Thursday, 08 July 2010 22:24
A. Berger

Hi Marrianne!

At first - sorry for the late response! About your problem - maybe 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 probably see the error on the page.

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

If this is not the reason, please provide a link to your site and the particular page, I will have a look at it.

Best regards
Andreas

KUDOS
382 Tuesday, 08 June 2010 10:46
Thiosh

Howdy there,

Just wanted to give you a pt on the back for a plugin well designed. Thanks a lot too for your simple-to-follow-instructions on its use.

how i can put this plugin in the mean menu
381 Saturday, 05 June 2010 06:33
greeb

Thank u for this plugin put i want it in the mean menu not in article how can i do it ?

@greeb
Sunday, 06 June 2010 13:57
A. Berger

Hi greeb!

If you are looking for a gallery solution that allows to be linked as a menu item and offers it's own menu-structure, what you need is a component, not a plugin. Have a look at extensions.joomla.org. The category Photos&Images lists a lot of them.

Best regards
Andreas

Nice one
380 Sunday, 30 May 2010 15:44
john

works well and does job fine, new to Joomla, really amazed by how developers help each other, will try to follow same path as you guys.

Thanks again,
John

display
379 Wednesday, 26 May 2010 14:04
kalyan

In simple image gallery plugin,images are displayed in horizondal position....But,i want to display the images in vertical....How can  i change it....Please give sample code.....

@kaylan
Thursday, 27 May 2010 03:57
A. Berger

Hi kaylan!

If with "horizontal" you mean "below the main image" and with "vertical" you mean "right of the main image" have a look at the page "Howto Plugin" > Installation > Point 17 and 18 on how to set the parameters for this. In addition, you might want at the sample 02 to see a sample configuration.

Best regards
Andreas

(insert the code to calling vsig). Do not understand USAGE part step 7.
378 Wednesday, 26 May 2010 08:31
Raihan

I am almost new in joomla. I have chose this gallery. but I Do understand Usage part, step 7. How can I insert the code and where?


your Imagable tutorial was fantastic but in this step I am not understanding. Please give me solution.

@Raihan
Thursday, 27 May 2010 03:37
A. Berger

Hi Raihan!

There are Gallery-Components for Joomla!. A component in Joomla! creates the main content. This means a component creates pages which you may link from a menu.

There are Gallery-Modules for Joomla!. A module in Joomla! creates a specified part of a page. This means a module creates a certain rectangle filled with a gallery which you may display at a specified module position.

And last but not least, there are Gallery-Plugins for Joomla!. The "Very Simple Image Gallery" is a plugin. Plugins (in short) modify content. In the case of he Very Simple Image Gallery you insert a line of text into an arbitrary content item and the plugin replaces this code with a gallery. That's it and this is what step 7 shows. Type the code for the gallery like any other text within an arbitrary article, save the article, open it in the frontend - there should be a gallery now.

Best regards
Andreas

Fixed main image height
377 Monday, 24 May 2010 21:57
Mike Oles

Is there a way to define the exact image size or height I want my images cached as?

I have my large image on the left and 5 rows of 2 thumbnails on the right.
My gallery size is 876 pixels. Thumbnails are 160x75. I want my large image to be 530x425 but the largest I can get the images resized is 490x392. I can force the size in the css but then the image quality is effected.
I tried hacking vsighelper.php but when I changed the ih formulas to just the imagedata I got 490x425 or 530x392.
Is there something I can change so my images are cached at the correct size? I am using both horizontal and vertical images.

Thanks.

I think I get it
Wednesday, 26 May 2010 14:21
Mike Oles

Thanks Andreas.

It's only off a pixel or 2 now. I think I can live with that. I put the height I want in the vsig_top img css so it will force the size and everything will line up.
I also had to change the vsig_ruler to 344px wide. The calculated one gave me 312px which caused me to lose 1 of my columns of thumbs.

Thanks again.

@Mike Oles
Tuesday, 25 May 2010 21:09
A. Berger

Hi Mike!

In version 1.6.1 the plugin calculates as follows (1.6.2 will change this a little bit):

Gallery width: 1000
Place for thumbnails in percent: 40

main_image_width = gallery_width - gallery_width/100 x percent
main_image_width = 1000 - 1000/100x40 = 600

This means in your case:

Gallery width: 876
needed main image width: 530

1-530/876=39,5 percent for the thumbnails

39.5% for the thumbnails means 60.5% for the main image: 876x0,605= 530px

Best regards
Andreas

btw.: If you check the image size using your browser, don't rely on InternetExplorer because it will lie to you. It adds the set padding (2 times 4 px) to the image size and reports the wrong numbers). Use Firefox instead.

put thumbnails at the left side, mouse over function and pre load images
376 Sunday, 09 May 2010 19:45
Toci

Very nice plugin


I was tried CSS gallery but it doesn't have a feature to put thumbnails at the left side. So I tried this VSIG.


1. I need to put the thumbnails at the left side. I'm new to joomla and not a prgrammer but I know a little of PHP,javascript and CSS


In the /plugin/content/vsig.php


I change the vsig_top float left to right. it looks fine but will this cause me problems? I'm just currently using 3 thumbnails.


----------------------------------------------from vsig.php---------------------------
//write the styles for the gallery
$vsig_cssadd.=".vsig_cont".$identifier." {width:".($_width_+10+$_space_)."px;height:".($_height_+10+$_space_)."px;}\n";
if($_th_right_!="1"){$vsig_cssadd.=".vsig_top".$identifier." {width:".$_im_area_."px;margin:5px 5px 5px -5px;}\n";}
else{$vsig_cssadd.=".vsig_top".$identifier." {width:".$_im_area_."px;float:right;margin:-5px 5px 5px -5px;}\n.vsig_ruler".$identifier." {width:".$_rulerspace_.";}\n";}
if($_im_align_==0){$vsig_cssadd.=".vsig".$identifier." {margin:0 0 0 auto;padding:0;display:block;width:".$_imwidth_."px;}\n";}
elseif($_im_align_==1){$vsig_cssadd.=".vsig".$identifier." {margin:auto;display:block;width:".$_imwidth_."px;}\n";}
elseif($_im_align_==3){$vsig_cssadd.=".vsig".$identifier." {margin:10px;float:left;width:".$_imwidth_."px;}\n";}
elseif($_im_align_==4){$vsig_cssadd.=".vsig".$identifier." {margin:10px;float:right;width:".$_imwidth_."px;}\n";}
else{$vsig_cssadd.=".vsig".$identifier." {width:".$_imwidth_."px;}\n";}
$vsig_cssadd.=".vsig_ctrls_".$identifier." {display:block;width:".$_im_area_."px;height:".$_ctrl_height_."px;text-align:right;}\n";
---------------------------------------------END--------------------------------------------------


2. Some of my images takes sometime to load. Is there a way I can pre upload them like in CSS gallery?


3. As mentioned earlier, I was really after CSS gallery because of its mouse-over function. Can we have it in VSIG?


Thanks a lot. I appreciate your work

@Toci
Monday, 10 May 2010 20:58
A. Berger

Hi Toci!

1.) Check your solution with different browsers. If there are no problems - there are no problems.

2.) A preload-function will be part of one of the next updates but unlike the HTML-solution of the CSS Gallery it will be JavaScript based.

3.) Yes, just open the file /plugins/content/vsig.php, run a search for "onclick" and replace it with "onmouseover" (another future backend-switch, btw.)

Best regards
Andreas

Order
375 Monday, 26 April 2010 15:20
Mary J.

Hey!

I installed already the plugin but...the images are display but not in the correct order. They're one under another one. I want the thumbnails, the big one and the others.

How I can configure it??

Thanks
Monday, 17 May 2010 09:40
Toci

Thanks Andreas,


The "onmouseover" works perfect!! exactly what I'm looking for. Can't wait for the next upgrade :)


Best Regards,
Toci

@Mary J.
Monday, 26 April 2010 20:14
A. Berger

Hi Mary J.!


Joomla! provides hooks that allow plugins to write data to the head of the page. The Very Simple Image Gallery uses this functionality to place CSS and JavaScript where it belongs - in the head of the page.
About what you are telling, your template seems to ignores this essential functionality of Joomla! and does not load the Joomla! head data.
This causes the plugin to fail.


I would suggest to either add the snippet to include head data (not only for this plugin but for a lot more of functionality) or to switch to another template the allows Joomla! to work as designed.

If this is not the problem and styles and script are present in the head of your page (you could compare this with the source of one of the sample pages here at bretteleben.de), please provide a link to the page, I will have a look at it.


Best regards
Andreas

Upgrade
374 Wednesday, 21 April 2010 15:53
Christer

Using 1.4.1, an exelent plugin. Work like a charm.

But how to upgrade? Uninstall first or just Jommla install?

Christer

@Christer
Thursday, 22 April 2010 17:35
A. Berger

Hi Christer!

The page these comments are on is a page that belongs to the "Very Simple Image Gallery" and therefore I assume, we are talking about the "Very Simple Image Gallery". If you are using version 1.4.1 of the "Very Simple Image Gallery" an update with version 1.6.1 of the "Very Simple Image Gallery" will work fine.

If - on the other hand - you are using version 1.4.1 of the "Simple Picture Slideshow", which is another plugin of mine, this is the wrong page and you have downloaded the wrong file. If so - please have a look at the page "Simple Picture Slideshow" (menu at the left), download version 1.5.3, update, and have fun.

Best regards
Andreas

-
Thursday, 22 April 2010 15:28
Christer

Hi, it will not owerwrihe, it install as a new plugin - Very Simple Image Gallery Plugin -


Christer

@Christer
Wednesday, 21 April 2010 18:25
A. Berger

Hi Christer!

Just update/overwrite, using the Joomla! installer. No need to uninstall.

Best regards
Andreas

English
Panoramic Image Viewer
AddThis Social Bookmark Button
Who's Online
We have 31 guests online
Latest Items