[solved] Gallery module - a HowTo - where????

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Mads Rasmussen
Forum Members
Forum Members
Posts: 19
Joined: Thu Jan 14, 2010 5:25 pm

[solved] Gallery module - a HowTo - where????

Post 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...
Last edited by Anonymous on Fri Jan 22, 2010 10:15 pm, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Gallery module - a HowTo - where????

Post 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  ;D
Mads Rasmussen
Forum Members
Forum Members
Posts: 19
Joined: Thu Jan 14, 2010 5:25 pm

Re: Gallery module - a HowTo - where????

Post by Mads Rasmussen »

eh-øh-oops!?

Sorry!

Better read that one first ;-) And give it a try.
Thanks Jos!

:-) Mads
Mads Rasmussen
Forum Members
Forum Members
Posts: 19
Joined: Thu Jan 14, 2010 5:25 pm

Re: Gallery module - a HowTo - where????

Post 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:
Image

Clicking on the thumbs does sort of works. But it looks like there are two Lightboxes.

So where did I go wrong?

:-)

Mads
Attachments
SafariScreenSnapz002.jpg
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Gallery module - a HowTo - where????

Post 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?
Last edited by Jos on Thu Jan 21, 2010 5:12 pm, edited 1 time in total.
Mads Rasmussen
Forum Members
Forum Members
Posts: 19
Joined: Thu Jan 14, 2010 5:25 pm

Re: Gallery module - a HowTo - where????

Post 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
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Gallery module - a HowTo - where????

Post 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?
Mads Rasmussen
Forum Members
Forum Members
Posts: 19
Joined: Thu Jan 14, 2010 5:25 pm

Re: Gallery module - a HowTo - where????

Post 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
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Gallery module - a HowTo - where????

Post 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:

Code: Select all

<span>Enlarge Photo</span>
What will enlarge these photos? Is there more javascript in your pagesource that could interfere with Gallery?
Mads Rasmussen
Forum Members
Forum Members
Posts: 19
Joined: Thu Jan 14, 2010 5:25 pm

[SOLVED] Re: Gallery module - a HowTo - where????

Post 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:

Code: Select all

<span>Enlarge Photo</span>
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
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: [SOLVED] Re: Gallery module - a HowTo - where????

Post 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)
vidaest
New Member
New Member
Posts: 2
Joined: Fri Dec 04, 2009 6:39 pm

Re: [solved] Gallery module - a HowTo - where????

Post 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?
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: [solved] Gallery module - a HowTo - where????

Post 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.
Post Reply

Return to “Modules/Add-Ons”