Advanced search  

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

Pages: [1]   Go Down

Author Topic: Slideshow view = count per image, - with ''external' counter (bbclone)  (Read 3229 times)

0 Members and 1 Guest are viewing this topic.

kiig

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 141
    • Igel's Journaler

Hi all.

the following is for my 1.4.1 Beta version, - so bevare... :-) the CVS files are probably changed by now, but the idea might be usefull, even for a 1.3.x


I've read most of the messages regarding counting slideshow images as 'viewed', - and I have now made something that will allow BBCLONE to count the images viewed alongside Coppermine counting.

Basically I've followed the directions to have the title shown on the slideshow, - added the addpic in slideshow.inc.php to have Coppermine count as well, - but in the 'title' in slideshow.inc.php I use this :

Code: [Select]
$pfilename="<img src=\"bbclone_extern.php?page=".$picture['filename']."\">".$picture['filename'];
echo "Title[$i] = '" . $pfilename. "'\n"; 


thanx to some suggestions in the forum at bbclone.de

the file bbclone_extern.php contains :
Code: [Select]
<?php 

//------ Counter ----------------------------------- 
$counter_text "slideBillede ".$page
define("_BBC_PAGE_NAME"$counter_text); 
define("_BBCLONE_DIR""./stat/"); 
define("COUNTER"_BBCLONE_DIR."mark_page.php"); 
if (
is_readable(COUNTER)) include_once(COUNTER); 


header("Content-Type: image/gif;"); 
header("Location: images/red.gif"); 


?>

Only problem is that the 'red.gif' referenced in the bbclone_extern.php files only get's shown on every second image.. dunno why, - bit it count's the actual images being viewed, - not the entire row of images in the slideshow.

The above works with bbclone, - but the implementation, - with a call to a stand-alone php file could be uses to initiate all sorts of things.

Kim Igel.
« Last Edit: November 11, 2005, 01:15:40 am by GauGau »
Logged
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.