The Daily Click ::. Downloads ::. Miscellaneous ::. Online Hi-Score System
 

Online Hi-Score System
Author: Flava Submitted: 22nd December, 2006 Favourites:0
Genre: Miscellaneous Downloads: 256
Rated:


Edited By Flava on 2/7/2009

Edited By Flava on 2/7/2009

Edited By Flava on 2/7/2009

Edited By Flava on 5/16/2007

Edited By Flava on 5/16/2007

Edited By Flava on 12/23/2006

Edited By Flava on 12/23/2006

Well I've had quite a lot of messages lately asking for help with online hi-score systems - and it seems people were mainly having problems with setting up their database and getting MMF to work properly with it. Recently, I also purchased VBulletin which is a forum system thing - which you download and install. I was quite impressed by how it created all the database stuff for you - and so I thought maybe it'd be a good idea to do the same thing for an online hi-score system.

The ZIP file (only 15kb!) includes the following files:
- install.php
- scores.php
- submit.php
- config.php
- example.cca
- Readme.html
+ admin
-- delete_scores.php

The install.php file takes you through the process of connecting to your database and setting up your hi-score table. This is obviously were all your scores will be stored and everything..

The scores.php file actually displays your scores. The submit.php file is used to submit scores. A very simple encryption of the name, score and an encryption key will hopefully prevent people from submitting false scores - at least, I've never had a problem with it in the Ectoprod's arcade.

The config.php file contains all your server information - you'll need to edit this. But it's not too hard to understand really. The readme file takes you through the whole process, and I was even kind enough to produce an example file for you! If you don't understand the example file, then you can just copy and paste the frame into your game and edit the strings so that it works with your server.

I'm hoping this will help a few people, and for those who already know how to do it, speed up the process too. It took me about 5 minutes to get a hi-score system set up with this system (not that I'm bragging or anything! )

Anyway, tell me what you think!
If it's popular and used often then I will be willing to update it by including more security options such as recording IP addresses (and also supporting more than one game). But for now, this is all there is!

Any questions, problems, issues, bugs - please post in the comments here!

Version 1.1 Update
- Fixed some bugs that may occur on certain web servers

Version 1.2 Update
- Admin folder added, with a delete scores script (which allows you to delete scores)

Review This Download



    


http://www.ectoprods.com/ohss/ohss102.zip (15kkb )



Posted by Joe.H 22nd December, 2006

Multiple games is easily done by adding an extra field
game_id
that's an int type to the table, and selecting scores relative to id (sorting by score desc)
 
Posted by Flava 22nd December, 2006

Yeh that's how the Ectoprod's arcade works - I was just a bit too lazy to put it in this file
 
Posted by Stian B. 23rd December, 2006

Nice,I will test it out.
 
Posted by Plooscva 23rd December, 2006

Ehh having problems with installing. Doing everything as said in the readme file. When it comes to step 2 and opening the install.php everything works until i press Next. It just doesnt do anything...
 
Posted by Johnny Look 23rd December, 2006

Woooo...cool
 
Posted by Flava 23rd December, 2006

Plooscva - does it display any error?
 
Posted by Plooscva 23rd December, 2006

Nop nothing, i just click it and it doesnt react in any way. I just noticed that it refreshes the page. Ehhh
 
Posted by Flava 23rd December, 2006

What browser are you using?
 
Posted by axel 23rd December, 2006

You have to have PHP installed on the webserver for it to work.
 
Posted by Plooscva 23rd December, 2006

I have a server that has installed PHP and i have a MySQL database... and browser... Mozilla Firefox. It didn't work using IE either...
 
Posted by Flava 23rd December, 2006

That's strange - mind if I take a look?
Send the URL of install.php to my DC mail and I'll try to sort it out for you
 
Posted by Johnny Look 23rd December, 2006

OH YEAH !!!!! IT WORKS !!!! I LOVE YOU FLAVA !!!
YEAH YEAH YEAH !!!
MAN UR THE BEST ADMIN EVER !!!!
 
Posted by Johnny Look 23rd December, 2006

Try 6te.net
They are awesome.
 
Posted by Plooscva 23rd December, 2006

It works! It works! There seemed to be a problem with the files that caused my database but Flava fixed it. Thanks *explodes from joy*
 
Posted by Flava 23rd December, 2006

Updated to version 1.1 - thanks to Plooscva for pointing out some bugs! It seems the script didn't work on some servers (although works on most).

If you have V1.0 installed, simply re-upload the submit.php file from the ohss101.zip file.
 
Posted by Johnny Look 23rd December, 2006

Warning:
The name of the user who's submitting the score can't contain spaces, otherwise it won't work.
 
Posted by Flava 23rd December, 2006

Why? Works fine for me
 
Posted by Plooscva 23rd December, 2006

Yeah i noticed that too. The name of the submitter cant contain any spaces. Otherwise it will not be sent try submitting your name as 'Your Name' it wont be sent But 'Your' works fine. Would be nice if you fixed that in future
 
Posted by Plooscva 23rd December, 2006

Also any special characters will make it not send. for example !"£$%, but that's nothing big It's the spaces the biggest problem as some people have 2 word nicknames...
 
Posted by Flava 23rd December, 2006

Ah yeh I see now - that's because URLs cannot contain spaces. You would probably have to edit your application so that string parser replaces spaces with %20 or something - i'll look into it!
 
Posted by Johnny Look 24th December, 2006

Thx that'd be usefull.
 
Posted by Stian B. 25th December, 2006

Download doesnt work.
 
Posted by /\/\@RCU$ [Modern Game Creations] 26th December, 2006

same
 
Posted by Flava 26th December, 2006

Works fine for me
 
Posted by Kamukoira 26th December, 2006

Works fine too
 
Posted by /\/\@RCU$ [Modern Game Creations] 27th December, 2006

really, its annoying me it sounds good
 
Posted by /\/\@RCU$ [Modern Game Creations] 29th December, 2006

it works now
 

 



Author

Favourite



Advertisement

Worth A Click