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

Post Reply  Post Oekaki 
 

Posted By Message

LB



Registered
  8/8/2009
Points
  25

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

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

 
Get your own Viewcounter!!
http://www.create-games.com/forum_post.asp?id=269660

Ricky

loves Left For Dead 2

Registered
  12/28/2006
Points
  4110

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

cool.

Edited by Ricky

 
-

-UrbanMonk-

Professor Spectrum

Registered
  7/7/2008
Points
  6133

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 Fool
17th March, 2010 at 7:45:41 PM -

Hmm.

Edited by -UrbanMonk-

 
http://www.soapcow.com <- Flash games, featuring MMF made games!
http://www.jsoftgames.com <- Old blog I don't keep up anymore

LB



Registered
  8/8/2009
Points
  25

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

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

 
Get your own Viewcounter!!
http://www.create-games.com/forum_post.asp?id=269660

The Cecilizer

You Done Got Cecilized

Registered
  3/19/2005
Points
  1602

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!Computer
18th March, 2010 at 12:10:34 AM -

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.

 
Image

>> http://www.cecilectomy.com <<

LB



Registered
  8/8/2009
Points
  25

Wii Owner
18th March, 2010 at 12:43:18 AM -

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.

 
Get your own Viewcounter!!
http://www.create-games.com/forum_post.asp?id=269660

The Cecilizer

You Done Got Cecilized

Registered
  3/19/2005
Points
  1602

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!Computer
18th March, 2010 at 12:59:46 AM -

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

 
Image

>> http://www.cecilectomy.com <<

-UrbanMonk-

Professor Spectrum

Registered
  7/7/2008
Points
  6133

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 Fool
18th March, 2010 at 3:58:47 AM -

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-

 
http://www.soapcow.com <- Flash games, featuring MMF made games!
http://www.jsoftgames.com <- Old blog I don't keep up anymore

Marko

I like you You like you

Registered
  5/8/2008
Points
  2797

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

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
  8/8/2009
Points
  25

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

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

Edited by LB

 
Get your own Viewcounter!!
http://www.create-games.com/forum_post.asp?id=269660

-UrbanMonk-

Professor Spectrum

Registered
  7/7/2008
Points
  6133

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 Fool
18th March, 2010 at 3:57:23 PM -

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.

 
http://www.soapcow.com <- Flash games, featuring MMF made games!
http://www.jsoftgames.com <- Old blog I don't keep up anymore

LB



Registered
  8/8/2009
Points
  25

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

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.

 
Get your own Viewcounter!!
http://www.create-games.com/forum_post.asp?id=269660

-UrbanMonk-

Professor Spectrum

Registered
  7/7/2008
Points
  6133

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 Fool
18th March, 2010 at 11:09:47 PM -

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

I'm a beginner also.

 
http://www.soapcow.com <- Flash games, featuring MMF made games!
http://www.jsoftgames.com <- Old blog I don't keep up anymore

HitmanN

What's this

Registered
  9/12/2009
Points
  2902

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

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
  8/8/2009
Points
  25

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

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

 
Get your own Viewcounter!!
http://www.create-games.com/forum_post.asp?id=269660

Flava



Registered
  7/30/2002
Points
  688

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

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
  5/14/2006
Points
  2946

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

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

 
n/a

LB



Registered
  8/8/2009
Points
  25

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

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

 
Get your own Viewcounter!!
http://www.create-games.com/forum_post.asp?id=269660

Silveraura

God's God

Registered
  8/8/2002
Points
  6744

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 9:47:52 PM -

Thank you for that.

 
http://www.facebook.com/truediamondgame
   

Post Reply



 



Advertisement

Worth A Click