Shadowbox and image description

Phoca Gallery - image gallery extension
bulgarion
Phoca Member
Phoca Member
Posts: 15
Joined: 11 Sep 2008, 11:28

Shadowbox and image description

Post 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!
westperth
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 31 Jul 2008, 17:30

Re: Shadowbox and image description

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49279
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Shadowbox and image description

Post 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
If you find Phoca extensions useful, please support the project
westperth
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 31 Jul 2008, 17:30

Re: Shadowbox and image description

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

:)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49279
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Shadowbox and image description

Post by Jan »

great solution, I will use this solution for next release
If you find Phoca extensions useful, please support the project
Post Reply