| Very Simple Image Gallery Plugin Installation und Verwendung |
| Geschrieben von: Andreas Berger |
| Montag, den 29. Dezember 2008 um 08:04 Uhr |
|
Eine Schritt für Schritt Anleitung für Installation und Verwendung des Very Simple Image Gallery Plugins. Installation1.) In die Administrationsoberfläche einloggen
2.) Den Menüpunkt "Erweiterungen" > "Installieren/Deinstallieren" auswählen 3.) Die Paketdatei mit dem Very Simple Image 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 "Very Simple Image Gallery Plugin" suchen und anklicken
8.) "Gallery width" ist die Gesamtbreite. Werden die Thumbnails unterhalb des Hauptbildes angezeigt, dann entspricht das der Breite des Hauptbildes, werden die Thumbnails rechts vom Hauptbild angezeigt, dann entspricht das der Gesamtbreite der Galerie (Hauptbild + Thumbnails).
9.) "max. Image height" legt fest ob die Hauptbilder die gesamte verfügbare Breite ausnützen (leer), oder ob Sie entsprechend einer festgelegten Maximalhöhe skaliert werden (ganze Zahl, z.B. 300). Das Festlegen einer Maximalhöhe macht dann Sinn, wenn innerhalb einer Galerie Bilder verschiedener Proportionen verwendet werden.
10.) Der nächste Parameter ist die Qualität der erzeugten Hauptbilder in Prozent. Hier empfehlen sich Werte zwischen 85 und 90. Je höher die Qualität, desto größer die Bilddatei!
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.) Der nächste Parameter ist die maximale Breite der Thumbnails in Pixel.
13.) Als nächstes kommt die maximale Höhe der Thumbnails, ebenfalls in Pixel.
14.) Der nächste Parameter legt fest, ob die Thumbnails proportional skaliert oder entsprechend der festgelegten Maximalwerte beschnitten werden sollen.
15.) Der nächste Parameter ist die Qualität der Thumbnails in Prozent. Hier empfehlen sich Werte zwischen 60 und 70, vielleicht noch 80 Prozent. Je höher die Qualität, desto größer die Bilddatei!
16.) Als nächstes kann der Abstand der Thumbnails zueinander in Pixel festgelegt werden. Welcher Wert hier passend ist, muss im Einzelfall entschieden werden. Fixe Regeln gibt es keine.
17.) Die Thumbnails können wahlweise neben oder unter dem Hauptbild angezeigt werden. Welche Option die passendere ist, hängt vom verwendeten Template ab.
18.) Lässt man die Thumbnails rechts vom Hauptbild anzeigen, dann wird hier festgelegt, wieviel der Gesamtbreite in Prozent für die Thumbnails verfügbar sein soll. Abhängig von Gesamtbreite, Thumbnailbreite und Thumbnailzwischenraum wird man hier nicht darum herumkommen, die passende Einstellung durch Probieren herauszufinden. Sollen die Thumbnails unter dem Hauptbild angezeigt werden, dann ist dieser Parameter ohne Bedeutung.
19.) "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.
20.) Beginnend mit Version 1.5.0 bietet der Parameter "Sets" die Möglichkeit, einzelne Galerien in mehrere Sets zu unterteilen (siehe Beispiele). Wird hier nichts eingegeben oder ist der eingegebene Wert größer als die Anzahl der gefundenen Bilder, dann zeigt das Plugin alle Thumbnails auf einer Seite an.
21.) "Label Sets" legt fest, wie der Counter die einzelnen Sets bezeichen soll. Ob "Set", "Desk", "Page" ... wie es gefällt.
22.) Die Parameter "Link/Button forward" und "Link/Button backward" legen den Button/Text für die Links fest, mit denen zwischen den einzelnen Sets navigiert wird:
Gibt man Text ein, dann wird der Text verwendet.
Alternativ zu Standardbuttons und Textlinks können auch eigene grafische Buttons verwendet werden. Findet das Plugin die Endungen .jpg, .png oder .gif, dann sucht es im eingestellten Ordner (Parameter weiter unten, per default: /images/stories/vsig_buttons) nach Bildern dieses Namens. Sind sie vorhanden, dann werden sie angezeigt. 23.) Aktiviert man die Option "Show Captions", dann hat man die Möglichkeit, im Beitrag die Bilder einer Galerie mit Titel und Text zu versehen.
24.) "Position of Captions" legt fest, ob Titel und Text halbtransparent über das Bild eingeblendet oder unter dem Hauptbild angezeigt werden sollen.
25.) Mit der Aktivierung von "Use links?" hat man zusätzlich die Möglichkeit, die Bilder der Galerie zu verlinken. Link, Titel und Ziel (Attribut target) werden im Artikel angegeben.
26.) Image root legt den Stammordner fest, in dem (direkt oder in Unterordnern) alle Bilder liegen. Standardmässig ist hier der Ordner /images/stories/ eingestellt (und dieser Ordner wird auch verwendet, wenn das Feld leer ist). In den meisten Fällen ist hier keine Änderung erforderlich, nur wer seine Bilder in einer Ordnerstruktur außerhalb von /images/stories/ organisiert hat, der kann hier den entsprechenden Pfad angeben.
27.) Buttonfolder
28.) "Use JavaScript?" legt fest, ob beim Anklicken der Thumbnails ein Bildwechsel auf der selben Seite erfolgen soll, oder ob jeder Klick die Seite - mit dem gewählten Hauptbild - neu lädt. Komfortabler ist natürlich Option 1, aber wer extrem auf Seitenaufrufe angewiesen ist, der kann auch ohne Script arbeiten. Besucher mit deaktiviertem JavaScript werden automatisch mit Option 2 bedient.
29.) Der Parameter "Foldername as ID" bietet die Möglichkeit, den einzelnen Galerien den Namen des Ordners, aus dem die Bilder stammen als Identity des umschließenden DIV-Containers zuzuweisen (id="ordnername").
30.) Abschliessend finden wir hier die Ergebnisses des GD-Checks, den das Plugin durchführt. Die GD Library ist eine der gängigsten Erweiterungen zur Bildbearbeitung für PHP und wird vom Plugin verwendet, um die Thumbnails zu erzeugen. Überprüft wird, ob die Erweiterung überhaupt vorhanden ist und ob die vom Plugin unterstützen Dateiformate (jpg, png, gif) verfügbar sind.
31.) Das Plugin aktivieren
32.) 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 "verysimple"
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 im einfachsten Fall aus dem Aufruf selbst {*vsig}{/vsig*} (ohne die Sterne) und enthält den Namen des Ordners, in dem wir gerade die Bilder abgelegt haben. Der im Backend festgelegte Pfad zum Ordner, also per Default "/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 jeweils einen Unterordner für die skalierten Hauptbilder und die skalierten 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 "verysimple") finden wir jetzt die Unterordner. "vsig_images" und "vsig_thumbs". In diesen sind die neu erstellten Bilder und Thumbnails abgelegt.
3.) Nicht mehr benötigte Bilder/Thumbnails kann man bedenkenlos löschen. Löscht man versehentlich ein aktuelles Bild/Thumbnail - 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 Sonntag, den 14. März 2010 um 14:58 Uhr |
















































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.
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
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.
Thank u for this plugin put i want it in the mean menu not in article how can i do it ?
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
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
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.....
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
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.
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
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.
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.
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.
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
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
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 Andreas,
The "onmouseover" works perfect!! exactly what I'm looking for. Can't wait for the next upgrade :)
Best Regards,
Toci
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
Using 1.4.1, an exelent plugin. Work like a charm.
But how to upgrade? Uninstall first or just Jommla install?
Christer
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
Hi, it will not owerwrihe, it install as a new plugin - Very Simple Image Gallery Plugin -
Christer
Hi Christer!
Just update/overwrite, using the Joomla! installer. No need to uninstall.
Best regards
Andreas