Live Counter! v1.0.3 (Php/Flash)
by Fabian Nikolovski

Live Counter! is a combination of Php code and a Flash movie. It
shows the counter state LIVE, without reloading the whole page.
This means, that every site access increases the loaded counter.
The counter receives about 1 byte/s, it is optimized to use a very
small bandwith.

Feel free to send me your own Flash counter movies with your
homepage link. I'll make a gallery.

If you use this script on your site, you can add the URL to
the Open Link List.


 

Installation

  1. copy the files to your server, except count.fla
  2. change the attributes of count.txt to chmod 666
  3. check if the counting script works, run count.php?c=00000
  4. open count.html, the counter should work

All counter files and your html file must be in the same directory!

Edit count.php to change the reload limit.

To use the counter on html sites in different directories, you
need to set in the Flash movie an absolute path to the counting
script:

  1. open count.fla (you need Flash 5 - Download the Trial here)
  2. modify the actions code in frame 1 and 72:
    replace "count.php" with "http://your.absolute.path/count.php"
  3. publish the Flash movie

Live Counter! works now on every site of your server. Don't forget
to add your URL to the Open Link List!


 

HTML Code

Copy and paste this code into your documents and modify the path to count.swf
if necessary (replace 'count.swf' with 'yourpath/count.swf').

 

<OBJECT
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=5,0,0,0" WIDTH=100 HEIGHT=39>
<PARAM NAME=movie VALUE="count.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="count.swf" quality=high bgcolor=#FFFFFF WIDTH=100 HEIGHT=39
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
Version=ShockwaveFlash">
</EMBED>
</OBJECT>

 


 

Copyright

You are free to use Live Counter! for personal needs. Any selling,
distributing and usage in commercial products is prohibited without
getting permission by the author. Any change in the source has to
be accompanied by information of the change, the secondary author,
and the date. Changing the originating lines in the code and deleting
the name of the author is prohibited.
This is given out for free, treat it accordingly.


(c) 2001 by Fabian Nikolovski
eMail: info@nweb.ch
Homepage: http://www.nweb.ch/scripts/


[last modified: 09.03.01]

> Back