create Ring and Tourney (API)

For discussion of the Poker Mavens server module and other administration topics

create Ring and Tourney (API)

Postby deisss » Thu Sep 10, 2009 6:34 am

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...
deisss
 
Posts: 31
Joined: Sun Aug 30, 2009 6:10 am

Re: create Ring and Tourney (API)

Postby Kent Briggs » Thu Sep 10, 2009 9:28 am

deisss 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...


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.htm

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.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3909
Joined: Wed Mar 19, 2008 8:47 pm

Re: create Ring and Tourney (API)

Postby deisss » Thu Sep 10, 2009 10:35 am

Kent Briggs wrote:Generally speaking, you would first create a web page with a form that prompted the player for their name and password

You have an example??
deisss
 
Posts: 31
Joined: Sun Aug 30, 2009 6:10 am

Re: create Ring and Tourney (API)

Postby Kent Briggs » Thu Sep 10, 2009 10:51 am

deisss wrote:
Kent Briggs wrote:Generally speaking, you would first create a web page with a form that prompted the player for their name and password

You have an example??


The "Create New Account" example on the link I posted has a form that prompts for several items including name and password.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3909
Joined: Wed Mar 19, 2008 8:47 pm

Re: create Ring and Tourney (API)

Postby Kent Briggs » Thu Sep 10, 2009 10:53 am

Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3909
Joined: Wed Mar 19, 2008 8:47 pm

Re: create Ring and Tourney (API)

Postby CanadaWest » Sun Sep 13, 2009 12:47 pm

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.
George
(CanadaWest)
www.playersclub.ca
CanadaWest
 
Posts: 107
Joined: Wed May 06, 2009 12:59 pm

Re: create Ring and Tourney (API)

Postby Kent Briggs » Sun Sep 13, 2009 1:10 pm

CanadaWest wrote:See it in action here: http://playersclub.ca/createring.php
Feel free to take the code.


You can't see php code from the client side since it's parsed on the server.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3909
Joined: Wed Mar 19, 2008 8:47 pm

Re: create Ring and Tourney (API)

Postby CanadaWest » Sun Sep 13, 2009 2:24 pm

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.
Attachments
Create Delete Ring Games.zip
(3.51 KiB) Downloaded 196 times
George
(CanadaWest)
www.playersclub.ca
CanadaWest
 
Posts: 107
Joined: Wed May 06, 2009 12:59 pm

Re: create Ring and Tourney (API)

Postby CanadaWest » Sun Sep 13, 2009 2:25 pm

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
George
(CanadaWest)
www.playersclub.ca
CanadaWest
 
Posts: 107
Joined: Wed May 06, 2009 12:59 pm

Re: create Ring and Tourney (API)

Postby deisss » Mon Sep 14, 2009 1:31 am

Thx CanadaWest.. Do you have this with tourney tab???
deisss
 
Posts: 31
Joined: Sun Aug 30, 2009 6:10 am

Next

Return to Site Administration

Who is online

Users browsing this forum: No registered users and 6 guests

cron