The Daily Click ::. Forums ::. Daily Click ::. NEW! Viewcounter you can use anywhere!
 

Post Reply  Post Oekaki 
 

Posted By Message

LB



Registered
  08/08/2009
Points
  25

Wii Owner
17th March, 2010 at 17:36:10 -

As you will have seen from the other thread ( http://www.create-games.com/forum_post.asp?id=259259 ), I have made a new viewcounter that you don't have to upload to a server. It's on my site and you can have your own 20-character ID for it.

IMPORTANT NOTE: It can only be 20 letters long, and may only contain letters (a-z, A-Z) underscores (_) and dashes (-). Any other characters will be ignored. I'd appriciate it if you don't abuse my server.

Just use this image code to use it:
< img src="http://www.LB-Stuff.com/Services/Viewcounters/Myviewcount.php5?ID=PUT-YOUR-ID-HERE!" >
For proof that it works, check out how many people have seen this topic: Image

Please enjoy!

Edited by LB

 
Just found this old account from when I was 15 lol

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4175

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
17th March, 2010 at 18:16:25 -

cool.

Edited by Ricky

 
-

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49567

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
17th March, 2010 at 19:45:41 -

Hmm.

Edited by UrbanMonk

 
n/a

LB



Registered
  08/08/2009
Points
  25

Wii Owner
18th March, 2010 at 00:07:35 -

What's with the one word replies and the edits?

EDIT: Wow and how the heck did it get from 20 to 200 views!?

Edited by LB

 
Just found this old account from when I was 15 lol

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
18th March, 2010 at 00:10:34 -

haha i thought you were just resetting the counter, but ive been spamming it with a simple mmf app. it was at 10,000 earlier, then it reset. at one point it started counting backwards. might want to look into that.

 
n/a

LB



Registered
  08/08/2009
Points
  25

Wii Owner
18th March, 2010 at 00:43:18 -

Well it doesn't function properly if you spam it like that! It runs more than one PHP script at the same time if you spam it like that, and the interfere with eachother.

 
Just found this old account from when I was 15 lol

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
18th March, 2010 at 00:59:46 -

thats bad design. it should still function even under request stress.

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49567

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
18th March, 2010 at 03:58:47 -

Add flood protection.

Whenever the php file is accessed add the ip address and date to a table. When 5 minutes has passed remove the ip address.

If someone tries to access the file again before 5 minutes have passed just refresh the date on their ip, and display the counter without adding 1 to it.

Edit: oh yeah, and if a user tries to create a new counter that doesn't exist make sure they haven't already created one from that ip address. Otherwise you may end up with a huge table from someone who's bored.

Edited by UrbanMonk

 
n/a

Marko

I like you You like you

Registered
  08/05/2008
Points
  2804

Has Donated, Thank You!Game of the Week WinnerVIP Member360 OwnerDos Rules!Happy FellahCrazy EvilI am an April FoolGingerbread House
18th March, 2010 at 05:32:37 -

Nice start - i went back and to the post to see the counter go up each time.. and it did!

 
Image

Subliminal Dreams. . ., daily gaming news and the home of Mooneyman Studios!
www.mooneyman-studios.webs.com

LB



Registered
  08/08/2009
Points
  25

Wii Owner
18th March, 2010 at 15:34:12 -

UrbanMonk what are you talking about with tables!? And how am I suppost to handle flood control or whatever?

Edited by LB

 
Just found this old account from when I was 15 lol

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49567

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
18th March, 2010 at 15:57:23 -

I was talking about a mysql database, but if you are using a flat file database I suppose you should use that instead.

Basically you just need a way to store ip's that access your php file, then make sure they don't trigger it again.

That will cut down on abuse of your script.

 
n/a

LB



Registered
  08/08/2009
Points
  25

Wii Owner
18th March, 2010 at 19:01:39 -

Thing is, I don't care if the script it abused. It's a simple viewcounter so you know if you're actually getting attention or not. I'd be glad if you made your own.

Currently the only database I have is for my forums and I can't really do much with databases. I'm only a beginner at php. Plus, my server uses php4 unless I name a file with the extensin ".php5" or something, so it's kind of hard to use advanced tools that have multiple scripts named just ".php", so I can't do easy database cleanups. This is why I don't do databases.

Thanks for checking it out, though.

 
Just found this old account from when I was 15 lol

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49567

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
18th March, 2010 at 23:09:47 -

Ok, well I was just trying to help you out.

I'm a beginner also.

 
n/a

HitmanN

What's this

Registered
  12/09/2009
Points
  3002

360 OwnerVIP MemberGOTM February 2010 3rd Place WinnerComputerGOTW WINNER MAY 2010!GOTW WINNER JUNE 2010!Ornament RedOrnament GreenOrnament Gold
22nd March, 2010 at 00:15:28 -

If it counts every visit, then it's not a very efficient way of measuring attention. Over 90% of those views are probably search robots.

But yeah, for what it's supposed to do, it does seem to work. For a more efficient counter, a flood protection and ways of identifying some of the common search bots would need to be added though. I think I did a flood protected counter once, but dunno about bots.

 
"He who controls the chicken, controls the egg!"

LB



Registered
  08/08/2009
Points
  25

Wii Owner
2nd April, 2010 at 20:42:04 -

Search bots don't activate it because they don't usually look for images.

 
Just found this old account from when I was 15 lol

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
2nd April, 2010 at 23:23:58 -

I've got to say, if you're a beginner at PHP then it's a pretty nice script - doesn't have much security but it doesn't seem like you're too bothered, so considering that you've done a good job (it seems to work afterall)!

Nice work I've been doing PHP for years now and I don't think I could've done this when I started out

 
This is a signature. Have this one on me.

Johnny Look

One Happy Dude

Registered
  14/05/2006
Points
  2942

VIP Member
3rd April, 2010 at 14:48:49 -

I think that could be pretty useful for the projects page.

 
n/a

LB



Registered
  08/08/2009
Points
  25

Wii Owner
11th June, 2010 at 19:47:42 -

People can use it on all their project pages for all I care

 
Just found this old account from when I was 15 lol

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
11th June, 2010 at 21:47:52 -

Thank you for that.

 
http://www.facebook.com/truediamondgame
   

Post Reply



 



Advertisement

Worth A Click