Notifications
Clear all

Counter bug? and how to customise layout.

4 Posts
2 Users
0 Likes
943 Views
(@jonahquark)
Posts: 1
New Member
Topic starter
 

Hi,

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.

 

Thanks

 
Posted : 19/06/2020 12:36 pm
TinyWebGallery
(@admin)
Posts: 880
Prominent Member Admin
 

Not sure what you mean. Is there a encoding issue ?

What are your file names? 

Best , Michael

 
Posted : 20/06/2020 12:53 am
TinyWebGallery
(@admin)
Posts: 880
Prominent Member Admin
 

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.

Best, Michael

 
Posted : 20/06/2020 11:08 pm
TinyWebGallery
(@admin)
Posts: 880
Prominent Member Admin
 

About the customization. You would need to change code there to do this. 

Best, Michael

 
Posted : 20/06/2020 11:10 pm