Page 1 of 1

Shadowbox and image description

Posted: 11 Sep 2008, 12:00
by bulgarion
Hi,
first of all *THANK YOU* again Jan for adding Shadowbox to Phoca. It was the only thing standing between me and phoca gallery :P
Now. while I'm waiting for the 2.0b plugin that I desperately need, I have a question - is it possible to display an image description while in Shadowbox detail view? In the Modal Popup it shows up, but there's no way to making it shows with Shadowbox.
Thanks and keep up the good work,

Marco

ps. Why not adding lightbox too as a Detail View? It also has the possibility to show up descriptions!

Re: Shadowbox and image description

Posted: 11 Sep 2008, 13:37
by westperth
Shadowbox has been implemented on PhocaGallery? HAH! I just spent the last 2 hours implementing it myself. I also removed Mootools because I built a menu system that uses Jquery and they conflicted.

Re: Shadowbox and image description

Posted: 11 Sep 2008, 15:36
by Jan
Hi, if you have removed the mootols, then you should not use the zoom icon under the image in Phoca Gallery while shadowbox is enabled. Why?

Shadowbox takes for the slideshow all the links to images on the site and if you display the zoom icon under the image then there are two links to the same image and it can cause problems :

1 ... first link if user clicks on image
2 ... second link if user clicks on zoom icon

Shadowbox takes these two links (which link to one image) and think there are two images, so in slideshow it will display e.g. 12 images instead of 6 (2 x the same image) ... so there is a protection ... if shadowbox is used, only click on image is activated for shadowbox, click on zoom icon works still with mootols ... if you have mootols disabled, then you need to disable the zoom icon too while using shadowbox...

I hope you understand...
Jan

Re: Shadowbox and image description

Posted: 22 Sep 2008, 10:15
by westperth
I fixed this issue by renaming the rel tag dependant on if it is image or zoom icon. Simple really:

rel="shadowbox[1];options={counterType:'skip',continuous:true,animSequence:'sync'}" (for all images)

rel="shadowbox[2];options={counterType:'skip',continuous:true,animSequence:'sync'}" (for all zoom icons)

:)

Re: Shadowbox and image description

Posted: 22 Sep 2008, 16:16
by Jan
great solution, I will use this solution for next release