Counter bug? and how to customise layout.
Just getting started and finding my way around how to use the gallery (v2.4.7 from the zip file).
I couldn't get counters and ratings to work. Checking the <gallery>_image_counter.xml file I saw all the rows had the same NAME value, and it was always the last image I'd looked at.
Digging around I traced the code to the increaseCount function in inc/readxml.inc.php. On line 742 it builds the XML line, but it is using urlencode($image) which is the image from the browser - so it replaces the nae on every line of the xml with the current image name. Changing this to $imageName fixes the issue. I guess it's a cut and paste error from line 767 which builds a new line.
On customisation, I'd like to show some of the information from the info popup in the main screen. I've looked at FAQ 3 about adding html, but can I add php code in to display additional information? Particularly interested in showing the tags alongside each photo.
Not sure what you mean. Is there a encoding issue ?
What are your file names?
Best , Michael
I took a closer look. You are right. Seems I changed this some time ago without checking properly. I will fix and release anew version asap.
About the customization. You would need to change code there to do this.