| CSS Gallery Plugin Installation und Verwendung |
| Geschrieben von: Andreas Berger |
| Sonntag, den 14. Dezember 2008 um 12:09 Uhr |
|
Eine Schritt für Schritt Anleitung für Installation und Verwendung des bretteleben.de CSS Gallery Plugins. Installation1.) In die Administrationsoberfläche einloggen
2.) Den Menüpunkt "Erweiterungen" > "Installieren/Deinstallieren" auswählen 3.) Die Paketdatei mit dem bretteleben.de CSS Gallery Plugin auswählen
4.) Auf "Hochladen und Installieren" klicken
5.) Wenn alles geklappt hat, erhält man die Meldung "Plugin erfolgreich installiert"
6.) Den Menüpunkt "Erweiterungen" > "Plugins" auswählen
7.) Das "bretteleben.de CSS Gallery Plugin" suchen und anklicken
8.) Der erste konfigurierbare Parameter ist die Breite der Galerie in Pixel.
9.) Als nächstes kommt die Höhe. "Galerie" bezieht sich bei Breite und Höhe auf das jeweils gross dargestellte Bild. Bei Bildern im Querformat also zum Beispiel: Breite 400 Pixel, Höhe 300 Pixel. Bei Bildern im Portraitformat umgekehrt.
10.) Der nächste Parameter ist die Qualität der skalierten Bilder in Prozent. Hier empfehlen sich Werte zwischen 80 und 90, 95 Prozent. Dieser Bereich bietet eine günstige Kombination aus Qualität und Dateigrösse.
11.) Der nächste Parameter legt die Positionierung der Galerie relativ zum verfügbaren Platz fest. Zur Auswahl stehen Links, Zentriert, Rechts, float left und float right. Die beiden letzten Optionen ermöglichen es, die Galerie mit Text umfliessen zu lassen. Sie machen die Galerie gleichzeitig aber auch wesentlich abhängiger vom verwendeten Template und werden wohl nicht immer den gewünschten Effekt haben.
12.) "Sort Order" regelt die Reihenfolge, in der die Bilder angezeigt werden. Zur Auswahl stehen die Optionen alphabetisch aufsteigen, alphabetisch absteigend, von alt zu neu und von neu zu alt (jeweils Änderungsdatum und nicht Erstellungsdatum!) und zufällig.
13.) Preload: Ich empfehle, die Bilder gleich mit der Seite laden zu lassen. Das verzögert zwar den Seitenaufbau selbst, dafür ist die Verwendung der Galerie bei weitem angenehmer, als wenn erst dabei die Hauptbilder geladen werden.
14.) "Use fixed Startimage" legt fest, ob das erste Bild fix angezeigt werden soll, ob ob es beim Überfahren der Galerie mit der Maus ausgeblendet werden soll. Zweitere Variante empfiehlt sich, wenn man Bilder mit Transparenz oder verschiedenen Formaten verwendet.
15.) "Thumbnails per row" legt fest, wieviele Thumbnails je Reihe angezeigt werden sollen.
16.) Als nächster Parameter ist die Qualität der Thumbnails festzulegen. In den meisten Fällen sind 80% hier bereits mehr als ausreichend.
17.) Aktiviert man die Option "Show Captions", dann hat man die Möglichkeit, im Beitrag die Bilder einer Galerie mit Titel und Text zu versehen.
18.) Mit der Aktivierung von "Use links?" schlußendlich hat man zusätzlich die Möglichkeit, die Bilder der Galerie zu verlinken. Link, Titel und Ziel (Attribut target) werden im Artikel angegeben.
19.) Das Plugin aktivieren
20.) Auf Speichern klicken - und fertig
Verwendung
2.) Hier in den Ordner "Media" > "stories" wechseln
3.) Einen neuen Unterordner für die Bilder anlegen. Im Beispiel wähle ich dafür den Namen "cssgallery"
4.) In den neu angelegten Ordner wechseln.
5.) Und hier die Bilder hochladen. Das Plugin akzeptiert die Dateitypen ".jpg", ".gif" und ".png".
6.) Jetzt im Menüpunkt "Inhalt" > "Beiträge" den gewünschten Beitrag öffnen.
7.) An der gewünschten Stelle den Code zum Aufruf des Plugins eingeben.
Der Code besteht aus dem Aufruf selbst {*becssg}{/becssg*} (ohne die Sterne) und enthält den Namen des Ordners, in dem wir gerade die Bilder abgelegt haben. Der Pfad zum Ordner, also "/images/stories/" wird vom Plugin automatisch ergänzt und ist nicht mit anzugeben. 8.) Speichern - Fertig!
WartungDas Plugin legt beim Aufruf im Ordner mit den Bildern je einen Unterordner für die skalierten Bilder und einen für die Thumbnails an. Dort speichert es die neu erstellten Dateien mit der Namenskovention: 1.) Dazu wechseln wir - nachdem die Galerie im Frontend zumindest einmal aufgerufen wurde - wieder in den Menüpunkt "Site" > "Medien"
2.) Im Ordner der Galerie (im Beispiel "cssgallery") finden wir jetzt zwei Unterordner. "images" und "thumbnails". In diesen sind die neu erstellten Dateien abgelegt.
3.) Der Ordner "images" enthält die Bilddateien, die die Galerie als Hauptbilder anzeigt.
Dass man hier oft ungerade Werte für Breite und Höhe vorfindet, owohl man z.B. exakt 400x300 eingestellt hat, hängt damit zusammen, dass die Breite nach dem Austeilen der Thumbnails je Reihe an die sich ergebende Gesamtbreite angepasst und die Höhe danach dazu passend neu berechnet wird. 4.) Sowohl im Ordner "images" als auch im zweiten Ordner "thumbnails" kann man nicht mehr benötigte Bilder bedenkenlos löschen. Löscht man versehentlich ein aktuelles Bild - kein Problem, beim nächsten Aufruf der Galerie wird es neu erstellt.
Übersicht über die Möglichkeiten des Aufrufs direkt aus dem Artikel: Anleitung Plugin Code Für Fragen und Anregungen steht die Kommentarfunktion zur Verfügung. Wer die Erweiterung nutzt den bitte ich, sie auf extensions.joomla.org zu bewerten und einen Erfahrungsbericht zu posten. Darüber hinaus freue ich mich über jeden, der die Möglichkeit findet, mich durch einen Link zu www.bretteleben.de auf seiner Webseite zu unterstützen. Das Plugin selbst produziert keine versteckten Links oder sonstige Nettigkeiten welcher Art auch immer. |
| Zuletzt aktualisiert am Samstag, den 27. Februar 2010 um 16:25 Uhr |


































I keep getting the error below, any suggestions on how to solve this issue?
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 12288 bytes) in D:\Hosting\5266405\html\plugins\content\plugin_becssg\becssghelper.php on line 155
Thank you Joe
Hi Joe!
The GD library is not able to allocate enough memory to create the thumbnails/images. Please have a look at the page "FAQ&Troubleshooting" (menu at the left). It deals with this problem in detail. Short version: use smaller (pixel) images.
Best regards
Andreas
After i have added the code on the article
and preview it .
the gallery is not work ..
it showed
Failed creating thumbnail directory /home/a2baglab/public_html/images/stories/cssgallery/thumbs/Failed creating image directory /home/a2baglab/public_html/images/stories/cssgallery/images/
Plz help me
THX^^
Hi Smith!
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 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 confure 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
Hi there,
I followed all the steps given in the tutorial.But on my web page only thumbs are coming.The slide show is not coming.I will much appriciate if you please sort out this problem for me.
Thanks
Hi Manoj!
Most probable reason: The CSS Gallery is no slideshow plugin. If you want to show a slideshow on your page, you may want to install the "Simple Picture Slideshow" (menu at the left).
Best regards
Andreas
Hi,
I just went through you fabulous tutorial and followed all the steps, but when I go look at my web page, nothing shows up.
In the image folder, there are images and thumbnails folders, but nothing in them.
The code I inserted onto the article is:
{becssg}cssgallery1{/becssg}
My image folder path name is:
/homepages/26/d311708585/htdocs/thumbprint/images/stories/cssgallery1
My website is:
http://s311708605.onlinehome.us/thumbprint/index.php?option=com_content&view=section&layout=blog&id=12&Itemid=72
I realize this may not be enough information for you to help me. I'm new to Joomla, and probably just missing some step. I was very careful to follow your directions, though.
Any help you can offer is much appreciated!
Thank you.
This sounds like the GDlib is not installed.
Please check in your Joomla Admin Console under Help > System Info > PHP Information and search for GD. If nothing shows up then GDlib is missing and you'll have to install it first. The install procedure depends on what Linux Distro you use.
For Debian based systems login to your system and at the command prompt enter :
sudo apt-get install php5-gd (of course only if you are using PHP 5)
This will install the GDlib for use with PHP and Gallery will start to work.
Oliver
Hi Sarah!
If you open the page with the gallery, you see an Error 500 displayed. Please have a look at the page "FAQ&Troubleshooting, it deals with the 2 know reasons that may result in this error (no GD library installed, not enough memory to scale the images).
In addition - if you go to your Joomla! backend and temporarily increase the error reporting level (Site > Global Configuration > Server) to "maximum" you will probably get a more descriptive error message on the page.
Best regards
Andreas
Thank You for this very nice explanation, it was very helpful.
Continue doing good things
Bye
coryplus AT hotmail DOT com
This is simply brilliant. Who needs flash when you have this? The only think I could suggest is maybe having some sort of transition effect between images. Other than that I wouldn't change it for anything!
Hi Steven!
The self-restriction to HTML and CSS does not allow animation of this kind (at least up till now). :)
Best regards
Andreas
hi andreas, I've got the same problem, it says css gallery caould not find the folder. Here's the link http://castelmizza.altervista.org/index.php?option=com_content&view=article&id=52&Itemid=63
I've already checked the configuration file and it's ok and the plugin is active... what else could it be?
Hi flone!
The first (and often best) guess is - the folder is not there. Please check if the folder "/images/stories/css_gallery" really exists and there is no typo.
Second, please check the directory permissions of the folder (755 works fine). To see if the permissions are set up properly you could try to call one of the images in this folder directly from your browsers address bar: http://www.yourdomain.com/images/stories/css_gallery/MYIMAGE.JPG
If it displays fine, please provide the name of at least one of the images, I will check the page again.
Best regards
Andreas
thn for the program, very nice :) i have a question related to security...i had to make the "thumbs,images" folders 777...or the program will not work...is this safe?
thn for any help
Hi Ric!
Usually 755 should do and you should not have to set the permissions manually. If necessary, please check the directory permissions on your server in general and have a look at the Joomla! FTP-Layer (enabled, disabled, properly configured).
Best regards
Andreas
Hi Mike!
Have a look at section C.) of the page "Howto Plugin Code", it describes how to use the feature.
Best regards
Andreas
You probably set var $live_site =""; in your configuration.php to "E:\Smith Bike Trips\website". Set this to "" and the gallery will work fine.
About your request to answer by email - doing so would degrade these comments from a potential useful resource to a completely obsolete list of unanswered questions.
Best regards
Andreas