Issue after 7 images
![]() |
I am running into an issue that has happened on more then one gallery. It generates a link up to image 7, then it generates a link for the last image. I tried to skip the first 8 images and go from there, but after a while it starts back at one (after about 20 images or so) and then it gets to image 7 and generates a link for the last image. Any ideas on what could be causing this or how to fix this issue? |
![]() |
Same problem here. |
![]() |
The regular expression on the variable replace:
var re_img = /<a +href="([^"]*)"[^>]*>[ \t]*<img +src="([^"]{120,})"/;
as:
var re_img = /<a +href="([^"]*)"[^>]*>[ \t]*<img +src="([http:\/\/]{7}[^a-zA-Z]+\.[a-zA-Z0-9:\/\-=.?&;]+)"/;
Find me if any problem(s) still there. |
![]() |
HKG Sherlock is right, but the regular expression suggested by him doesn't work (causes parse error), here's the correction (ironically tested on a corrector yui gallery xD) var re_img = /<a +href="([^"]*)"[^>]*>[ \t]*<img +src="([^"]{120,})(jpg|png|gif)"/;
the "(jpg|png|gif)" part is intended to force the regular expression to match if the last words of the filter match with those words (instead of "ffs" or "qqm" that affects the order and cause the parser to go back, causing the issue) |

