From thumbnail to popup full version [Done] BUT views not increasing! From thumbnail to popup full version [Done] BUT views not increasing!
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

From thumbnail to popup full version [Done] BUT views not increasing!

Started by cionex, October 03, 2005, 01:54:26 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

cionex

Please, feel free to move this thread if necessary. I couldn't post this at the coppermine area.

Anyways... I installed coppermine gallery and followed these (http://forum.coppermine-gallery.net/index.php?topic=15671.0) steps and got what I really wanted. I was really happy but somehow when i click a thumbnail and the popup window with the original version of the photo show up, the counter (# Views) at the bottom of the pic doesn't increase. How can i fix this? Thank you very much in advance!  ;)

Joachim Müller


cionex

What do you mean? Here's url to the gallery: www.katebosworthweb.com/fotox

Let me know if you need any file at my server and thanks so much.

Stramm

of course... the normal pic tiggles the counter, not the fullsize popup. Would be kinda silly to do it the other way round

but here's a fix for you... tell me if it works
in displayimgage.php find
        if (!mysql_num_rows($result)) cpg_die(ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__);


above add
add_hit($pid);

Joachim Müller

You should have posted in the first place that you have applied the "thumbnail to full-size pop-up" mod, 'cause this is what kept your files from being counted.

cionex

Quote from: GauGau on October 03, 2005, 02:05:09 PM
You should have posted in the first place that you have applied the "thumbnail to full-size pop-up" mod, 'cause this is what kept your files from being counted.

??? I did... I even added a link to the thread where i took the solution from to make the thumbnail to full-size pop-up...
Anyway yeah!!! it worked! Thanks so much Stramm, you guys are great! Thanks for helping me! I searched the forums but didn't find the solution  :-*