Hey!
I've set up bootstrap darkroom to open photoswipe directly from the thumbnails and after that the view counts doesnt increase swiping through pictures (since its just showing an overlay and not reloading any pages). Is there any easy way to solve this or any suggestion to other theme or plugins that would make it possible to full screen swipe between pictures and have the hit counter increase?
One idea I had was to use ajax and send a request to ws.php (if there is a method for increasing the hit counter) in the js-file for photoswipe, but I dont think I'm good enough to start messing with that. Is there any url you can send with image id to ws.php to increase the counter?
Any suggestions are welcome!
Offline
After looking into this further and getting a better understanding about... everything, I have come to the conclusion that the most bullet proof way of logging visits would be to create a log parser that uses the nginx access log and updating the database that way. Seems like a pretty big thing for a piano tuner to do. I'm hoping that I could direct people to using a basic theme without lightbox or using the official app for browsing. My best bet (or laziest that is) is to get the app developer to have visit hits through it. Otherwise a log parser will be my next little project.
Am I missing something here? I've never thought about the complexity combining a highly customizable photo gallery with registering picture visits.
Offline