Maximum number of Photos in Gallery
Hi Jason,
Do Galleries have a maximum number of photos that can be added? When adding the eleventh photo to the "New Arrivals" gallery the Photo does not appear in the gallery on the index page.... This is a gallery that Ray had programmed. I believe it's a copy of RibbonLightbox.
When you add a product and add it to the New Arrivals category... it shows up in the New arrivals gallery on the index page.
When you scroll to the 11th photo (vintage 1960s...hippie bag) and click on it. no photo is displayed, when you select next then prev, etc eventually the photos do not match the description. The hippie bag ends up with a photo that was next to it.
The folder with the code is Galleries\new_arrivals
I will post the info you need in a PM
Second question:
Jason while looking into the above issue, I'm trying to move the (LEARN MORE) on this gallery up near the (Close ) button. I found the code but note sure what to move. see below: lines 30-71
Galleries\new_arrivals\js\gallery.js
//-----
//thumbs
this.thumbs = {
images: this.wrapper.getElements('.thumbs img'),
imagesSrc: []
};
this.thumbs.images.each(function(thumb) {
//store thumbnail info
var parts = thumb.get('title').split('##');
thumb.set('title', '');
thumb.store('index', parts[0]);
thumb.store('title', parts[1].length > 0 ? parts[1] + ':' : ' ');
thumb.store('tip:title', parts[1]);
thumb.store('description', parts[2]);
thumb.store('tip:text', parts[2]);
//click
thumb.addEvent('click', function() {
this.showImage(arguments[0]);
if (!document.getElementById('lbLearnMore')) {
var learnmorelink = new Element('a');
learnmorelink.setAttribute('id','lbLearnMore');
learnmorelink.setAttribute('class','ps_buttons');
learnmorelink.setAttribute('style','float:right;margin: 0 0 10px 0;');
var txt = document.createTextNode("Learn More");
learnmorelink.appendChild(txt);
document.getElementById('lbBottom').appendChild(learnmorelink);
} else {
learnmorelink = document.getElementById('lbLearnMore');
}
learnmorelink.setAttribute('href',"products_detail.php?ProductID=" + thumb.getAttribute("rel"));
///innerHTML += '<input type="button" id="lbLearnMore" class="ps_buttons" style="float:right;margin: 0 0 10px 0;" value="Learn More" >';
return false;
}.bind(this, parts[0]));
}.bind(this));