Shoutbox

hitcounter re-explained - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: hitcounter re-explained (/showthread.php?tid=53329)

hitcounter re-explained by stoshrocket on 11-26-2005 at 01:51 PM

I have just read the thread explaining the hitcounter in something called Awstats :S but im confused :$. I just want a simple counter on my page in text, how can i do this??

i have seen the php in the thread on awstats but i dont know where to put it, ie how to make it show in the html document...


RE: hitcounter re-explained by TazDevil on 11-26-2005 at 02:31 PM

http://www.phpjunkyard.com/


RE: hitcounter re-explained by hmaster on 11-26-2005 at 02:51 PM

loads of simple ones here
http://hotscripts.com/PHP/Scripts_and_Programs/Counters/index.html


RE: hitcounter re-explained by stoshrocket on 11-26-2005 at 03:04 PM

thank-you!



erm.... im confused :S
im not getting this, none of the help files/setup files are understandable to me, thanks anyway!
RE: hitcounter re-explained by hmaster on 11-27-2005 at 06:50 PM

post a sample code and we'll help?


RE: hitcounter re-explained by stoshrocket on 11-27-2005 at 07:03 PM

oh! thanks for asking/offering to help but in a mad craze with coding i went on an overnight coffee rant and learned php! so, ive sorted it now thanks!!! :D


RE: hitcounter re-explained by hmaster on 11-27-2005 at 07:29 PM

thats cool then.
suggestion for your site, add the images at the bottom to the homepage too ;)


RE: RE: hitcounter re-explained by stoshrocket on 11-27-2005 at 09:12 PM

quote:
Originally posted by hmaster
thats cool then.
suggestion for your site, add the images at the bottom to the homepage too ;)


wha? :S im back to confused, which site do you mean? the old one or new design?? expand and explain please ;-)

ah! i get it! but the home page has the images in the center enlarged ^o) ill test it and see how it looks, it mihgt be becuase they might not be uploaded, gimmie a sec...

hmm... the icons are uploaded and the directory is right, but they arent showing up for some reason, you can see they are supposed to be there in the source. ah well, ive already started on a new design that i like, hehe, hopefully this one ill stick with, thanks for the help!!
RE: hitcounter re-explained by hmaster on 11-27-2005 at 09:30 PM

Nope seems it cant find the files
eg:
http://methos2.skarz.co.uk/icons/graphics(mouseover).png

quote:
he requested URL /icons/graphics(mouseover).png was not found on this server.

misspelled directory/filenames?

but yeh the new design looks better, it needs a background colour/image
RE: hitcounter re-explained by illuzn on 11-28-2005 at 02:17 AM

Yes it is a directory error compare:

quote:
Originally posted by index.html

<a href="msn.html" onmouseover="image6.src='icons/msn(mouseover).png';" onmouseout="image6.src='icons/msn(mouseoff).png';">
<img name="image6" src="icons/msn(mouseoff).png" border=0></a>

with

quote:
Originally posted by comp.html

<a href="index.html" onmouseover="image5.src='images/footer-home-over.png';" onmouseout="image5.src='images/footer-home-off.png';">
<img name="image5" src="images/footer-home-off.png" border=0></a>


Unless they are supposed to be different pictures?
RE: hitcounter re-explained by John Anderton on 11-28-2005 at 08:42 AM

If you want you can use the one that im using. Its coded by -dt- and its too simple to use.

It has 2 files, the counter.php and the count.txt

Include the counter.php in your page where ever you want using the code

code:
<?php include('counter.php'); ?>

The counter.php increments (increases) the count in count.txt by 1 and then displays it ... :D

You can see it in action at http://jalife.be at the bottom.
The script is at http://www.jalife.be/counter.php Just hit refresh and see it run ;)

Just thought (*stares at dt*) i should add the source code before you ask ...

http://www.jalife.be/up/files/Web%20Counter.zip

Just get that zip ;)

I wrote a readme and stuff way back once when i got bored :P
RE: hitcounter re-explained by stoshrocket on 11-28-2005 at 03:33 PM

quote:
Originally posted by illuzn
Yes it is a directory error compare:

quote:
Originally posted by index.html

<a href="msn.html" onmouseover="image6.src='icons/msn(mouseover).png';" onmouseout="image6.src='icons/msn(mouseoff).png';">
<img name="image6" src="icons/msn(mouseoff).png" border=0></a>

with

quote:
Originally posted by comp.html

<a href="index.html" onmouseover="image5.src='images/footer-home-over.png';" onmouseout="image5.src='images/footer-home-off.png';">
<img name="image5" src="images/footer-home-off.png" border=0></a>


Unless they are supposed to be different pictures?

yeah, JS to create animation, hmm... ill see if i can sort them out in a min...

quote:
Originally posted by John Anderton
If you want you can use the one that im using. Its coded by -dt- and its too simple to use.

It has 2 files, the counter.php and the count.txt

Include the counter.php in your page where ever you want using the code

code:
<?php include('counter.php'); ?>

The counter.php increments (increases) the count in count.txt by 1 and then displays it ... :D

You can see it in action at http://jalife.be at the bottom.
The script is at http://www.jalife.be/counter.php Just hit refresh and see it run ;)

Just thought (*stares at dt*) i should add the source code before you ask ...

http://www.jalife.be/up/files/Web%20Counter.zip

Just get that zip ;)

I wrote a readme and stuff way back once when i got bored :P

thanks! ill have a look at that, it looks pretty similar to the one im using, thanks again!