| SmoothGallery + LightBox |
| Written by Stacy Coil | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Tuesday, 17 February 2009 11:12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Page 6 of 6 The Mostly Original PageThe following is the original page from osCandy. I've only made a few minor changes (remove the Google ads, etc.) SmoothGallery + Lightbox Mambot Instructions
SmoothGallery + Lightbox Joomla Mambot is a combination of 2 scripts packaged together for your convenience. Namely, SmoothGallery by Jonathan Schemoul and Slimbox by Christophe Beyls. See Gallery in Actionbeta.InvitationToDance.comCreditsFirst and foremost, I have to thank Jonathan for all of this help. A side from making SmootGallery, he has been patient with me going crazy about IE errors and all other Mootools related stuff. Jonathan also created the close button for me. Thank you. Next, I gotta thank Valerio for giving us a great framework to make this possible. I have to thank Christophe Beyls for making Slimbox, without which Slightbox - lightbox for smoothgallery, would not be possible. Last but not least, I have to thank Azzam for making the great box image for SmoothGallery Joomla Mambot and for all your support. Thank you! Why Smoothgallery + Lightbox Joomla Mambot? This product follows my experience with Couloir Module for Joomla. It was a great ride, but it was bloated and inflexible. I've taken everything that I learned from that gallery and put it into this Mambot. It has every feature that everyone ever asked for and it's intended to be extremely easy to use. How easy to use is it? Well, extremely. The syntax is easy, most of the time {smoothgallery} in your content text is enough to trigger creation of a gallery. It utilizes Mosimage setup feature, so you don't have to go into a different component to manipulate your image description. It also can generate a gallery from a folder and extract title and description from image IPTC Caption and Title. What else should I know? It's extremely customizable. Jonathan's original code had 28 options, I added at least 15 of my own. (But you don't need to manipulate any of them, they are completely optional) Installation Instructions
How to Install on FrontpageTo make the gallery works on the front page you need to add some code to your template. This is because there is a problem with Joomla Frontpage Caching. For some reason, joomla does not cache the head on Frontpage, so your mambot will load all of the images but the javascript and css will not load. This is why you need to do this. Copy and paste code from this text file into your template right before /head tag note: I don't think the above code will work with Joomla 1.5. If you need it, let me know. How do I use it?There are many different ways to use this mambot, here are some of the most important once. Gallery from Ultimate Gallery Manager(UGM)We wrote Ultimate Gallery Manager to make it easier for you upload and manage galleries. This is the easest way to create slideshows.
example: {smoothgallery album=1} (1 is the album id, it's in top left corner of each gallery in UGM) Images from FolderThis option will generate a gallery from a folder. It will select all .jpg, .png, and .gif files and include them in the gallery. The title and caption will be generated from IPTC title and caption, respectively. If IPTC information is not present, the file name will be used as caption. example: {smoothgallery folder=images/stories/fruit} Important Parameters
Images from Images Tabs (Mosimage)This will include all images that you have added in Mosimage Setup. The mambot will use Alt Title as Title in the Gallery and Caption as Caption underneath the title. All other options in Mosimage Setup are not used, changing them will not make any difference to the mambot. If you use this option, {smoothgallery} is sufficient to trigger the mambot to generate a gallery. If you do not specify an Alt Title or Caption, these options will be taken from IPTC Title and Caption, respectively. If you would like to use Mosimage Mambot and SmoothGallery Mambot at the same time, then you need to change the order of mambot loading so SmoothGallery Mambot loads before Mosimage mambot. example: {smoothgallery} Individual Image with lightboxThis option will allow you to show an image with a lightbox and a pretty caption. Also, you can specify width and height as you would on any other gallery example:{smoothgallery image=images/stories/folder/image.jpg&title=Nice title&caption=Nice caption} Individual image with linkThis option will allow you to show an image with a pretty caption and on click the user will be taken to the website you specify in the link. Also, you can specify width and height as you would on any other gallery example:{smoothgallery image=images/stories/folder/image.jpg&title=Nice title&caption=Nice caption&link=http://www.oscandy.com} Gallery from MenuThis option is a bit tricky and it's a first time I'm trying this, so we'll see how you like it. This will generate a gallery from a menu that you create. Menu image will be shown in the gallery and the title of the menu item is the title of the image, link in the menu is link. {smoothgallery menu=yourgallerymenu&caption=click on image to go to gallery} What is the syntax? {smoothgallery} in content intro text or full text is enough to trigger the mambot to generate a gallery Mosimage Setup and using default settings. If you would like to add options, separate options with &, for example: {smoothgallery alignment=left&timed=true} You can see more examples of syntax on Syntax Demo What can I customize?
You can customize your gallery using parameters that you specify when you write the content. There are 2 types of parameters, mambot parameters and SmoothGallery parameters. Mambot parameters will specify how the gallery is displayed on the page and where the images are taken from. SmoothGallery parameters allow you to configure mechanics of the gallery. SmoothGallery Parameters
Mambot Parameters
Examples
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Last Updated on Sunday, 01 March 2009 16:44 |