from last image to first image in detail view (loop images)

Phoca Gallery - image gallery extension
kogos
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 20 May 2012, 16:34

from last image to first image in detail view (loop images)

Post by kogos »

I've been using phoca gallery for quite some time now, and i'm grateful that developers did this so easy to create slick and beautiful galleries. But now i need a feature that might not be there yet.

What i want to do in a few words is loop images in detail view....

I use a "no popup" detail view, but when i'm on the last image, the "next" button gets disabled. However, i need it enabled so i can go to the first image by clicking it, keeping images rotating when hitting "next" button, from last image to first image, and vice versa (that means, when i'm on the first image, clicking "previous" button should show me the last image of the category). Unfortunately, using another detail view style in not an option for me, so it has to be done in "no popup" style...

I understand that there might be some customizing needed for this, but i have no idea what needs to be modified or altered. Any help or suggestions on this would be appreciated. I looked around for an answer, but i couldn't find any. Sorry if this has been discussed before.

Thanks for you time, to whoever reply on this request.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: from last image to first image in detail view (loop imag

Post by Jan »

Hi, yes this needs to be customized and it is not so easy, as sql queries needs to be modified - in case no next image will be found, then the script should get first image (of course with all its clauses like ordering is, etc) For now, I didn't do such customization, so cannot give any exact advice :-(

Jan
If you find Phoca extensions useful, please support the project
kogos
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 20 May 2012, 16:34

Re: from last image to first image in detail view (loop imag

Post by kogos »

thanks for replying... i had a feeling that this wouldn't be easy...

I could start customizing stuff and give back feedback, so it can be added to a future version or something, but the problem is that i have no idea where to start...

What i did on another gallery extension to go around this issue was to set the detail view to automatic start a slideshow on page load with a large slideshow delay time, so it was like seeing images on detail view with no images changing, which gave me the "loop" function i needed. I might have some luck with "boxplus", since i see that there is an option to "Wrap around at end (boxplus)". However, i have 2 problems with it...

1) i can't get it to start the slideshow from the image i'm clicking on. It always starts the slideshow from the first image of the category i'm currently viewing.
2) i can't get it to show in iframe, like "no popup" option does.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: from last image to first image in detail view (loop imag

Post by Jan »

Hi,
1) yes, this is the feature of the javascript used library for the slideshow - you can start it from first image or from one which is randomly selected
2) what you cannot show in iframe?

Jan
If you find Phoca extensions useful, please support the project
Post Reply