Hello Kent and users. How to create the Ring-game and Tournament (through API), demanding a name of the user and the password and PlayerLevel (in server modul accounts-edit. if level> 20 that can create...)
Thx...
create Ring and Tourney (API)
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: create Ring and Tourney (API)
Do you have any experience with HTML forms and a server-side script like PHP? I have some examples of both at http://www.briggsoft.com/docs/pmavens/API_Examples.htmdeisss wrote:Hello Kent and users. How to create the Ring-game and Tournament (through API), demanding a name of the user and the password and PlayerLevel (in server modul accounts-edit. if level> 20 that can create...)
Thx...
Generally speaking, you would first create a web page with a form that prompted the player for their name and password. That could be submitted to a PHP page that would call the AcountsGet API command with the player's name and use the results to confirm the password was correct and the level matched your requirements. If not you would display an error message and stop the script. If ok, you would then call the RingGamesAdd and RingGamesOnline API commands to create and put a ring game online. You could do the same for a tournament with the TournamentsAdd and TournamentsOnline API commands.
Re: create Ring and Tourney (API)
You have an example??Kent Briggs wrote: Generally speaking, you would first create a web page with a form that prompted the player for their name and password
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: create Ring and Tourney (API)
The "Create New Account" example on the link I posted has a form that prompts for several items including name and password.deisss wrote:You have an example??Kent Briggs wrote: Generally speaking, you would first create a web page with a form that prompted the player for their name and password
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
-
- Posts: 107
- Joined: Wed May 06, 2009 12:59 pm
- Contact:
Re: create Ring and Tourney (API)
I have a PHP form that validates the PlayerName and Password, then creates a Ring Game and puts it online.
See it in action here: http://playersclub.ca/createring.php
Feel free to take the code.
See it in action here: http://playersclub.ca/createring.php
Feel free to take the code.
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: create Ring and Tourney (API)
You can't see php code from the client side since it's parsed on the server.CanadaWest wrote: See it in action here: http://playersclub.ca/createring.php
Feel free to take the code.
-
- Posts: 107
- Joined: Wed May 06, 2009 12:59 pm
- Contact:
Re: create Ring and Tourney (API)
OOps, I'll post the files. And some other neat stuff too. Under new threads.
but here is a zip package with my forms to Create and Delete Ring Games
ReadMe.txt included.
but here is a zip package with my forms to Create and Delete Ring Games
ReadMe.txt included.
- Attachments
-
- Create Delete Ring Games.zip
- (3.51 KiB) Downloaded 461 times
-
- Posts: 107
- Joined: Wed May 06, 2009 12:59 pm
- Contact:
Re: create Ring and Tourney (API)
Hey Everyone,
If you have any problems with those attached files, don't bother Kent with them. PM me and I will help if I can
If you have any problems with those attached files, don't bother Kent with them. PM me and I will help if I can
Re: create Ring and Tourney (API)
Thx CanadaWest.. Do you have this with tourney tab???