forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: encoro on May 12, 2008, 11:21:18 pm
-
how do I make my hit counter go up by say 3 or 4 instead of 1 when a pic gets viewed?
I now it's cheating but...........
my gallery is http://encoro.net
-
in include/functions.inc.php
find
function add_hit($pid)
{
global $CONFIG, $raw_ip;
cpg_db_query("UPDATE {$CONFIG['TABLE_PICTURES']} SET hits=hits+1, lasthit_ip='$raw_ip', mtime=CURRENT_TIMESTAMP WHERE pid='$pid'");
And edit "hits+1" accordingly.
-
hi - i dont have a file include/functions.inc.php
where else should i be looking for that function?
-
Where is your gallery for a start? that link you posted isn't your CPG gallery. You must have that file.
-
http://encoro.net/viewer
-
http://encoro.net/viewer/include/init.inc.php < that's the file you need to edit. Navigate to it on your FTP client and edit as i mentioned above.
-
got it - ty much - 1 more thing how can i make the theme a fixed size so it the stuff doesnt move around when the ie gets resized!
-
One issue per thread - you agreed that board rule when signing up. Your initial question got solved, so I'm marking this thread accordingly and locking it.