Issue 432: If i define the "forcetype" as image then the gallery is not working
Status:  Accepted
Owner: ----
Reported by morphe...@gmail.com, Feb 16, 2010
What steps will reproduce the problem?
1. define forcetype = 'image'
2. put rel="gal"
3.

What is the expected output? What do you see instead?
the galleries total number of images is correct but when i click on an img
the counter is always 0/12 (i have 12 images). Then if i click next it goes
to the first image only (for every image)

What version of the product are you using? On what operating system?
jquery.nyroModal-1.6.1.js windows XP firefox 3.5.7

Please provide any additional information below.


Feb 17, 2010
#1 morphe...@gmail.com
had no luck yet to fix the problem...
any tips or hints?
Mar 7, 2010
#2 ondrej.h...@gmail.com
Similar bug here. I FORCETYPEd image because its full url (http://etc. to flickr 
images and nyroModal opens it as Iframe.
Apr 8, 2010
#3 tonipinel@gmail.com
Same problem tha morpheus. it looks like the next and prev buttons always point to
the first element.
Apr 17, 2010
Project Member #4 nyro...@gmail.com
On line 353, the from settings was reinitialized to true even if there was a DOM
element. That was causing the error you experienced.

To fix it, replace the line:
if (!currentSettings.content)
by
if (!currentSettings.content && !currentSettings.from)

This will be fixed in the next release.
Status: Accepted
Oct 27, 2010
#5 Sylvain.Guiblain@gmail.com
Thanks nyrodev, this solution is working as expected now !

(Gallery doesn't working correctly if the setting "forcetype" is used)