forum.coppermine-gallery.net

Support => Older/other versions => cpg1.3.x Support => Topic started by: cionex on October 03, 2005, 01:54:26 am

Title: From thumbnail to popup full version [Done] BUT views not increasing!
Post by: cionex on October 03, 2005, 01:54:26 am
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!  ;)
Title: Re: From thumbnail to popup full version [Done] BUT views not increasing!
Post by: Joachim Müller on October 03, 2005, 07:57:40 am
Post a link to your coppermine install.
Title: Re: From thumbnail to popup full version [Done] BUT views not increasing!
Post by: cionex on October 03, 2005, 10:23:25 am
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.
Title: Re: From thumbnail to popup full version [Done] BUT views not increasing!
Post by: Stramm on October 03, 2005, 11:04:58 am
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
Code: [Select]
        if (!mysql_num_rows($result)) cpg_die(ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__);

above add
Code: [Select]
add_hit($pid);
Title: Re: From thumbnail to popup full version [Done] BUT views not increasing!
Post by: Joachim Müller 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.
Title: Re: From thumbnail to popup full version [Done] BUT views not increasing!
Post by: cionex on October 03, 2005, 06:22:57 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  :-*