PDA

View Full Version : Visitor Counter


HaYLaZ
10 Feb 2006, 16:38
Add your page visitor counter:D

demo:http://www.haylazturk.com/adult/index.php?styleid=3

installing

1:unzip attached file and upload counter folder to forums root
2:Open counter folder>>config.php and write your information like below:
database name
database username
database userpassword
you can change page background color and text colors in config.php too
3:go to phpmyadmin>>select your database>>click sql querry than make this sql querry below:
CREATE TABLE counter (
countnr int(10) NOT NULL auto_increment,
tag int(2) NOT NULL default '0',
monat int(2) NOT NULL default '0',
jahr int(4) NOT NULL default '0',
KEY countnr (countnr)
) TYPE=MyISAM;

4:Open your footer template and at the end of the codes add below:<!--haylaz_counter-->
<br />
</tr>
</table><br />
<if($imprint_url != '')>
<then>
</then>
<else>
<if($imprint_text != '')>
<then>
</then>
</if>
</else>
</if>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder" align="center">
<tr>
<td class="tablea"><span class="smallfont"><center><iframe width=200 height=83 frameborder=0 src="http://www.yoursite.com/counter/counter.php"
name="counter" scrolling="no">Your browser doesnt support frames!</iframe><center></a></span></td>
<!--haylaz_counter_finished-->

EDİT THE GREEN THE CODES ABOVE
thats all enjoy:D:D:D

NOTE:change counter folder and files CHMOD to 777

Snake
10 Feb 2006, 17:37
Oh I love this, thanks!

bashy
10 Feb 2006, 17:54
oooo 1st install :)

Thanks for this i do like it a lot....
How can i code it so that the STATISTICS link is at the top of the stats table?
Also any chance of the stats being in english?

TIA

HaYLaZ
10 Feb 2006, 19:21
you can change all English sections in counter folder files.
example months,date,times ect:D

bashy
10 Feb 2006, 19:22
I was more of refferring to the words that show in the image?

HaYLaZ
10 Feb 2006, 20:26
sorry but ı dont understand:(

bashy
10 Feb 2006, 20:28
When you click the STATISTICS link in the little box showing the stats....
It opens a popup with more stats....thats where i would like the translation to english
please?

Ziki
10 Feb 2006, 21:12
Too bad I don't need it.Have the same thing on the main site

HaYLaZ
11 Feb 2006, 08:31
replace attached file monat.php wiht counter>>monat.php

palerider
12 Feb 2006, 06:14
I'm getting some errors after installing this:


Warning: fopen(counter.csv): failed to open stream: Permission denied in /***/public_html/forums/counter/counter.php on line 64

Warning: fwrite(): supplied argument is not a valid stream resource in /***/forums/counter/counter.php on line 65

Warning: fclose(): supplied argument is not a valid stream resource in /****public_html/forums/counter/counter.php on line 66

Warning: fopen(counter.csv): failed to open stream: Permission denied in /****/public_html/forums/counter/counter.php on line 71

Warning: fclose(): supplied argument is not a valid stream resource in /****/public_html/forums/counter/counter.php on line 83
Date: 12.02.06

palerider
12 Feb 2006, 06:16
Fixed. Nevermind :)

Thanks for the hack.

Langly
14 Feb 2006, 02:33
How did you fix it? I'm getting this same error.

palerider
14 Feb 2006, 03:13
CHMOD the folder and files to 777.

Langly
15 Feb 2006, 23:29
What causes the stats on the pic and the stats on the link in the pic to be way off. My user count for the link in the pic is way higher than what the little pic says it is.