Page 1 of 1
[solved] Gallery module - a HowTo - where????
Posted: Thu Jan 21, 2010 1:09 pm
by Mads Rasmussen
Hi,
I've been looking for a sort of manual for the Gallery Module, but I can't seem to find any.
Yes, I did look in the forum and I can see that people are saying that it's easy to use, but - oh, well ....
At least I can't figure it out.
Mads
EDIT: [solved] This helps others...
Re: Gallery module - a HowTo - where????
Posted: Thu Jan 21, 2010 1:12 pm
by Jos
There is no manual I'm afraid. But did you read the module-help in the admin section?
You can state your questions here. I'll be glad to help

Re: Gallery module - a HowTo - where????
Posted: Thu Jan 21, 2010 4:10 pm
by Mads Rasmussen
eh-øh-oops!?
Sorry!
Better read that one first

And give it a try.
Thanks Jos!

Mads
Re: Gallery module - a HowTo - where????
Posted: Thu Jan 21, 2010 5:04 pm
by Mads Rasmussen
Well, now gave it a try.
Into the content I added:
Code: Select all
{Gallery dir="uploads/images/Gallery/sutton" template="Lightbox"}
The code is visual in the WYSIWYG editor - which it shouldn't be.
Clicking preview. I get this:
string(63) "Smarty error: unable to read resource: "module_db_tpl:Gallery;""
Reinstalling didn't help.
if I remove uploads/images/Gallery form the URL, it sort of works and looks like this:
Clicking on the thumbs does sort of works. But it looks like there are two Lightboxes.
So where did I go wrong?
Mads
Re: Gallery module - a HowTo - where????
Posted: Thu Jan 21, 2010 5:07 pm
by Jos
You strumbled on a known bug ;) It should give a neat error message there
Will be fixed in a next release
The point is that you have to define the directory relative to uploads/images/Gallery
so your tag would be something like: {Gallery dir="
sutton" template="Lightbox"}
edit:
I seem to have missed the second part of your post...
Clicking on the thumbs does sort of works. But it looks like there are two Lightboxes.
Well I would have to take a look at your page for this.. could you place a url or PM me?
Re: Gallery module - a HowTo - where????
Posted: Thu Jan 21, 2010 5:28 pm
by Mads Rasmussen
You strumbled on a known bug

It should give a neat error message there
Will be fixed in a next release
Hmmm!
Jos wrote:
The point is that you have to define the directory relative to uploads/images/Gallery
so your tag would be something like: {Gallery dir="sutton" template="Lightbox"}
edit:
I seem to have missed the second part of your post...
Well I would have to take a look at your page for this.. could you place a url or PM me?
This is what I use: {Gallery dir="sutton" template="Lightbox"}
Clicking on the thumbs does sort of works. But it looks like there are two Lightboxes.
Please take a look at the image I posted.
Unfortunately, I'm working locally and have nothing online. What do you want? Code?
Mads
Re: Gallery module - a HowTo - where????
Posted: Thu Jan 21, 2010 5:34 pm
by Jos
I would like to see a working page....
I remember this double lightbox thing being discussed before in the German boards, i believe it was related to the album module back then. Unfortunately I don't remember the solution provided there.
Do you call {Gallery} just once? Or are there more gallery-tags?
Do you have another module that uses lightbox?
Did you try slimbox?
Re: Gallery module - a HowTo - where????
Posted: Thu Jan 21, 2010 6:08 pm
by Mads Rasmussen
>>I would like to see a working page....
I can appreciate why, but it's not possible - sorry.
The HTML code:
(As you can see the Gallery is called once only).
Code: Select all
Manufactors: Royston (Roy) Sutton and his son, Shaun.
<p><img title=" " src="uploads/images/billeder/img/finlinie.gif" border="0" alt="Image" vspace="10" width="324" height="7" /></p>
<p><img title=" " src="uploads/images/replica_img/sutton_img/sutton_badge.jpg" border="0" alt="Image" width="150" height="175" /></p>
<p><span class="courticy_photo">Photos courtesy of © Geoff Butterworth, owner</span><br /> (As you might noticed the former owners name, a neighbour of the Suttons is stamped in the head badge).</p>
<p><img title=" " src="uploads/images/billeder/img/finlinie.gif" border="0" alt="Image" vspace="10" width="324" height="7" /></p>
<img title=" " src="uploads/images/replica_img/sutton_img/gb1_small.jpg" border="0" alt="Image" width="300" height="225" /><br /> <span>Enlarge Photo</span> (102kb)
<p><img title=" " src="uploads/images/billeder/img/finlinie.gif" border="0" alt="Image" vspace="10" width="324" height="7" /></p>
<img title=" " src="uploads/images/replica_img/sutton_img/gb4_small.jpg" border="0" alt="Image" width="300" height="245" /><br /> <span>Enlarge Photo</span> (60kb)
<p><img title=" " src="uploads/images/billeder/img/finlinie.gif" border="0" alt="Image" vspace="10" width="324" height="7" /></p>
<img title=" " src="uploads/images/replica_img/sutton_img/gb3_small.jpg" border="0" alt="Image" width="300" height="183" /><br /> <span>Enlarge Photo</span> (72kb)
<p><img title=" " src="uploads/images/billeder/img/finlinie.gif" border="0" alt="Image" vspace="10" width="324" height="7" /></p>
<img title=" " src="uploads/images/replica_img/sutton_img/gb2_small.jpg" border="0" alt="Image" width="250" height="434" /><br /> <span>Enlarge Photo</span> (72kb)
{Gallery dir="sutton" template="Slimbox"}
This is installed modules:
AkismetCheck
Captcha
CGSimpleSmarty
CMSMailer
FileManager
Gallery
MenuManager
ModuleManager
News
nuSOAP
Printing
Search
TemplateExternalizer
ThemeManager
TinyMCE
Thank you for your effort.
Mads
Re: Gallery module - a HowTo - where????
Posted: Thu Jan 21, 2010 6:18 pm
by Jos
I see a snippet of html code that can
not be generated by Gallery, and a Gallery call beneath it.
What does this mean:
What will enlarge these photos? Is there more javascript in your pagesource that could interfere with Gallery?
[SOLVED] Re: Gallery module - a HowTo - where????
Posted: Thu Jan 21, 2010 6:38 pm
by Mads Rasmussen
Jos wrote:
I see a snippet of html code that can
not be generated by Gallery, and a Gallery call beneath it.
What does this mean:
What will enlarge these photos? Is there more javascript in your pagesource that could interfere with Gallery?
IT'S WORKING!!!
I'm very sorry to have waisted your time, Jos.
The error was in my template. I had put code into it, and completely forgot about it, that shouldn't go there. I know Lightbox very well, used it lots of places but not as in your module, so I automatically put ref's to style sheets and JS's in template - dohhhhh! - me bad.
I'm redesigning and old hobby site of mine (originally designed in GoLive) and the "Enlarge Photo" comes from the old code. That is, I deleted the trigger for the enlargement, being uncertain of how to design the page (
http://www.dursley-pedersen.net/replicas/sutton.html)
So next time a bonehead like me, talks about double Lightbox. tell him to look in the template.
Thank you for being so helpful!!!!!!!!!!!!
Best Regrads
Mads Rasmussen
Re: [SOLVED] Re: Gallery module - a HowTo - where????
Posted: Thu Jan 21, 2010 6:42 pm
by Jos
Mads Rasmussen wrote:
I'm very sorry to have waisted your time, Jos.
You better be ;D
I'm very glad it works now... 8)
Re: [solved] Gallery module - a HowTo - where????
Posted: Thu Mar 11, 2010 7:58 am
by vidaest
I have another question. Why do pics (I have 5) get displayed in a single column when I change the template. From Lightbox I remove the line {$numimages} that displays the number of images. After saving my images are displayed in a single column with no style. Even if I reset to original the images remain in a column. I have to reinstal the whole module to get it back. Anyone got a clue?
Re: [solved] Gallery module - a HowTo - where????
Posted: Thu Mar 11, 2010 10:11 am
by Jos
vidaest: You may probably have deleted a or ? Is your page still xhtml valid after your change??
When you get images in one column, the surrounding box is too small. This is more a layout/css question, then that is has to do something with the Gallery module.