How to make other sites work with WeChall
To make a site work we need to interact with it.
In particular we need a script to validate accounts on your site,
as well as a scoring script.
The script and variables name can all be chosen freely.
1: A script to validate that a user owns an account at your site.
validatemail.php?username=%USERNAME%&email=%EMAIL%this script must return simply "1" OR "0",
1:email/username combination exists.
0:combination does not exist.
2: A script that returns the users score on your site.
userscore.php?username=%USERNAME%
The format of the output does not matter, since we write seperate code for each site.
Your output must contain at least userscore and maxscore.
So the output of this script could be like "userscore:maxscore".
You can also output something like "username has solved solved
of total and is rank rank of usercount"
(see point 5)
WeChall is also capable of updating user and challenge count via this script.
Good output for this script is: rank:score:maxscore:usercount:challcount
3a: An icon, 32*32, transparent gif preferred.
3b: A description of your site, can be in the sites language.
4: [OPTIONAL] A page that shows your users profile.
profile.php?username=%USERNAME%This is more part of your site, optional, and will show a (complete) profile of the user.
If you like to support us with this script, make sure you dont need to login for that.
5: [OPTIONAL] Updating WeChall automatically
http://wechall.net/remoteupdate.php?sitename=%SITENAME%&username=%USERNAME%It is possible to let WeChall know when a user has solved a challenge by making a request to the above url.
If you opt to do this, we won't have to make periodical requests to your site to see if any of our users have a change in their score.
Please contact us if you need more information or help with writing your scripts.