| CSS Gallery Plugin Installation and Usage |
| Written by Andreas Berger |
| Sunday, 14 December 2008 12:09 |
A step for step tutorial on how to install and use the bretteleben.de CSS Gallery Plugin.
Installation1.) Log into your administration interface
2.) Go to "Extensions" > "Install/Uninstall" 3.) Select the Package File with the bretteleben.de CSS 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 "bretteleben.de CSS Gallery Plugin" and click it
8.) The first parameter to configure is the width of your gallery in pixel.
9.) Next comes the height. "Gallery" here means the width and height of the main image shown. E. g. landscape: width 400, height 300 or portrait: widht 300, height 400.
10.) The next parameter is the quality of the main images in percent. I recommend values between 80 and 90, 95 percent because this range has a good ratio between quality and 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.) "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.
13.) Preload: I recommend to set this to "yes" and try to get the images loaded with the page. This slows down pageload but the usage of the gallery is a lot more comfortable as if trying to load the images on mouse-hover.
14.) Choose if the startimage is fixed or if it disappears on hover. To remove the startimage on hover makes sense, if you have transparent images or images of different size in your set.
15.) "Thumbnails per row" sets - the number of thumbnails per row. :)
16.) The next parameter to set is the quality of the thumbnails in percent. In most cases a value of 80% is more than enough.
17.) If you activate "Show captions?", you have the possibility to add Title and Text to your images.
18.) "Use links?" allows - if activated - to set links for the images.
19.) Activate the plugin
20.) Click "Save" - done
Usage
2.) Navigate to the folder "Media" > "stories"
3.) Create a new subfolder for your images. In this sample I choose the name "cssgallery"
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 {*becssg}{/becssg*} (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 for example would look such as: 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: 8.) Save - done!
MaintenanceThe plugin creates in the given folder subfolders. One for the scaled images, one for the thumbnails. Into this folders it saves images and thumbs following the naming convention: 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 ("cssgallery" in this sample) now contains the two subfolders, "images" and "thumbnails".
3.) The folder images contains the image-files, the gallery shows as main images.
The fact that you will see values like 399, 449, 499 here for width/height whilst you set them to 400, 450, 500 is based on the way the plugin uses your setting. After calculating the thumbnails-sizes, it summs up the thumbnail-widths and the spaces between them and uses this value to recalculate width and height of the main image. 4.) Obsolete files in "images" as well as obsolete files in "thumbnails" may be deleted. If you delete a - still needed - image too: No problem, the plugin recreates it automatically.
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, 27 February 2010 16:25 |


































so there is no workaround with the fixed image thing? I got images in different sizes, and can either choose to have the first image as background or having the first one disappear when mouseover? couldn't it be solved with having a background color for the images somehow? Let me know please !
thanks :)
Yvette
Hi Yvette!
The "Fixed Startimage" already is a workaround for galleries with images of different size/proportion and up till now I have not found a better solution. Using a background color is no solution because the main image already is a background image and it's dimensions cover the thumbnails too. Therefore a background color would hide them.
Best regards
Andreas
Hi Andreas,
I installed CSS gallery for the first time. After installation its working but on different contents and on top of the galley as well its showing this message
Warning: Missing argument 3 for plgContentBecssg::onPrepareContent() in public_html/plugins/content/becssg.php on line 27, how can i colves this ,
Thanks
Hi Farooq!
You are obviously not showing the gallery as part of the main content but using a third party extension (probably a module). This extension does not deliver the correct parameters to the Joomla! framework function onPrepareContent();
To solve the problem, open the file /plugins/content/becssg.php and change line 27 from:
function onPrepareContent(&$row, &$params, $limitstart) {
to:
function onPrepareContent(&$row, &$params, $limitstart=0) {
In addition: Please report this problem to the developer of the extension you are using to display your content.
Best regards
Andreas
Sorry, the actual warning message showing like this
Warning: Missing argument 3 for plgContentBecssg::onPrepareContent() in /public_html/plugins/content/becssg.php on line 27
Thank you for the beautiful Gallery. I have one question about the position of the Thumbnails. Is there anyway to have the thumbnails positioned on the right instead of below the image? your gallery is exactly what i am looking for except for that and would love that option?
thanks
Bruno
Hi Bruno!
The CSS Gallery is limited to the default layout, but if you need this feature for your project, you might want to have a look at my other gallery plugin, the "Very Simple Image Gallery" (menu at the left). It offers this feature.
Best regards
Andreas
I have multiple photos that correspond with different topics, can you categorize somehow?
Hi Erin!
With this plugin the only way to categorize is the old fashioned one: Sort the images into different folders and use different galleries to display the images of every single folder. There is no way to show only a selection from within a folder.
Best regards
Andreas
Everything works beautify except one thing. I have different size images, so I set Fixed Startimages to No. Now when you hover over images everything is fine. But when Start image is showed and you hover over that image (large image, not thumbnail). it dissaper and only white background is seen. When you move the mouse away from large start image, it appears again. It would be nice that start image would dissaper only when hovering over thumbnails.
Hi RPrieditis!
Yes, this behavior is caused by setting the parameter "Use fixed startimage" to "no". This is how it is.
As the gallery we are talking about shows images of one proportion only, I suggest to set the parameter to "Yes". If you need different settings for different galleries, you may want to have a look at the page "Howto Plugin Code", the feature "Parameter Overrides" allows to use specific setting for every gallery.
Best regards
Andreas
Hi,
that workaround works good, except one thing. http://www.r2vsk.edu.lv/ in front page there is css gallery, and when you move mouse over the large picture it disappears, but when you move mouse over thumbnails, all is fine.
This gallery is great and easy to use, especially when you have small set images in article.
Hi RPrieditis!
The "Fixed Startimage" already is a workaround for galleries with images of different size/proportion and up till now I have not found a better solution.
Best regards
Andreas
(step 7) if i paste this {*becssg}cssgallery{/becssg} in Article Manager page where the gallery should be displayed.
The same code is displayed. Could u help me in displaying the galley in frontend.
Hi priya!
Make sure you activated the plugin, make sure you are not trying to show the gallery at a module position (if so have a look at "FAQ&Troubleshooting") and make sure the code you pasted is not fragmented by HTML-tags (span, linebreak, whatever). To check the latest, switch to HTML-view in your article.
If the problem persists, please provide a link to the page, I will have a look at it.
Best regards
Andreas
Hello Andreas,
I am using the CSS Gallery plugin and when i try to acces galery it show message on my browser:
Notice: Undefined index: REQUEST_URI in \\................\plugins\content\becssg.php on line 97
Fatal error: Call to undefined function imagecreatefromjpeg() in \\.............\New\plugins\content\plugin_becssg\becssghelper.php on line 155
?
Hi xyz!
The Error is caused by the fact that the GD library is not enabled/installed or does not support the file format JPG. Have a look at the page "FAQ&Troubleshooting, it deals with this error in detail.
About the notice - if the error is solved and the notice persists, please provide a link to the page or additional information about the webserver your site is running on (type, OS).
Best regards
Andreas
Dear Andreas,
I am encountering a problem with this gallery plugin with the display layout of the gallery on article pages.
- The names of the files are huge and placed over the main content of the article.
- The navigation of the images is over the top of article introtext, it says there are 8 images whilst I uploaded only 4.
- Only one image shows up under the main text where I call the script.
- I have placed the gallery in the plugin as 'centered' but I've also tried all the other layouts but the effect is more or less the same as above.
- Under this image when mouseover the images do change but I cant see the images I am hovering over, its blank.
Important point perhaps is that I am trying this out on my localhost with XAMPP.
Could you help me sort this out becauseI would really like to use this plugin?
Thanks,
Liz
Hi joanna!
Please check if the plugin created the subfolders for image and thumb and filled them with the created images/thumbs. Second you could turn of other image related extensions to see if one of them causes the problem. At the latest, you could temporarily switch the template to check if it is the reason for the problem. And if any possible - please provide a link to the page.
Best regards
Andreas
Hi, I've the same problem like Liz:the only thing Ican see on my gallery page is a huge photo name.
i've checked the gd configuration in PHP information and it's like this:
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.7
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
What should I do to make it work???
thanks a lot!
joanna
Hi Liz!
Please check if the GD library is enabled on your XAMPP, if it isn't, please add it (search Google for "XAMPP GD library").
Please make sure you are really using the CSS Gallery, because - the plugin has neither a navigation nor a counter. Therefore, the "navigation" is not part of the plugin.
About points 3 to 5: Let's deal with them as soon as you have the plugin up and running at all.
Best regards
Andreas
Habe alles installiert und es hatte auch funktioniert. Dann habe ich neu Bilder geladen und die alten gelöscht. Auf der Seite fird folgender fehler angezeigt:
CSS Gallery: No images found in folder /var/www/web244/html/images/stories/cssgallery
Und unter Medien steht:
Warning: opendir(/var/www/web244/html/images/phocagallery/thumbs) [function.opendir]: failed to open dir: Permission denied in /var/www/web244/html/libraries/joomla/filesystem/folder.php on line 484
Warning: readdir(): supplied argument is not a valid Directory resource in /var/www/web244/html/libraries/joomla/filesystem/folder.php on line 485
Warning: closedir(): supplied argument is not a valid Directory resource in /var/www/web244/html/libraries/joomla/filesystem/folder.php on line 511
Das hochladen der Bilder wurde positiv bestätigt.
Hallo Nasenolm!
Naja, Du hast weniger ein Problem mit dem Plugin als vielmehr eines mit den Verzeichnisrechten auf dem Server. So wie es aussieht wurden - positive Bestätigung hin oder her - zwar die alten Bilder gelöscht, die neuen aber nicht hochgeladen.
Ich würde mich mal mittels FTP-Client mit dem Account verbinden, überprüfen ob die Bilder da sind (und sie wenn nicht dann eben hochladen) und die Verzeichnis- und Dateirechte überprüfen (Verzeichnis 755, Bilder 644) und gegebenenfalls korrigieren.
Gruß
Andreas
Hi,
Great tool! I made a Gallery. Now I want to adjust width en height but I always get this message:
Warning: file_put_contents(/.../thumbs/4economieen_kl_69_96_80.jpg) [function.file-put-contents]: failed to open stream: Permission denied in /usr/home/kenterin/public_html/libraries/joomla/filesystem/file.php on line 298
I get this rule for each image + for the tumb
How can I solve this?
Lieve
PS: Sorry for my English!
Hi Lieve!
The Error indicates that the plugin has not the necessary rights to create directories on your server - i.e. there is a problem with the directory permissions.
To solve this problem, first check the current directory permissions: Joomla! backend > Help > System Info > Directory permissons. Everything should be green (writable) there. If it isn't - please change the permission (e.g. using an ftp-client).
If everything looks fine and the error persists, check if you have activated the Joomla! FTP layer: Joomla! backend > Site > Global Configuration > Server > FTP. If it is activated, deactivate it and check the gallery again. If it works now - fine.
If it doesn't (or if the FTP layer has been deactivated from the beginning), activate it and try to configure it properly. A nice Howto can be found at forum.joomla.org in the article of the user Degira:
http://forum.joomla.org/viewtopic.php?f=431&t=314112&p=1382452#p1382452
Best regards
Andreas