Registration system by PHP -
NLDBrian - 25.10.2017
Hi there!
I would like to know if its possible to do the following:
- Player connects to the server.
- Player gets a message: Please register a master account on our website.
- Player goes to website and presses register.
- Player gets redirected to the registration page and registers.
- Admins get a notification and have to verify/accept the registration.
- Player gets an email that his account has been accepted or denied.
Is this possible, and if so, how would I do this?
Re: Registration system by PHP -
kingmk - 25.10.2017
Yes it's possible. You just need to make a basic system registration in php, and connect it to your database game.
When a player connecting on your server, you need just to search the playername (GetPlayerName) in your database, tabel users.
If the name it's fined in your users tabel, then u just need to print out a message, and say there to register first on your website.
On the website, player got register, so the number players grow in your tabel.
Aslo u need to have a field, like user_comfirmed_register, this will need to have a default value, 0.
When the player connecton your server, the name it's fined in the database, users, but the user_comfirmed_register it's 0, so u will print out a message like: The admin did not comfirmed your account, please wait until it's confirmed.
Now, let's come back on the registration website. When a player got registred, the numbers of players in ur tabel grow.
You can use Timer in ur server, and check the tabel users, then when the players in user tabel grow, u print a message on admins like: You have a new registred user[SQLID] [PlayerName][Data/Time] and whatever else u want to printout. If u want to confirm account, type /comfirmaccount [SQLID].
Your command need to use the SQLID to catch the data of the newest player registred. Then u need to upload the user_comfirmed_register to 1.
Re: Registration system by PHP -
NLDBrian - 25.10.2017
Quote:
Originally Posted by kingmk
Yes it's possible. You just need to make a basic system registration in php, and connect it to your database game.
When a player connecting on your server, you need just to search the playername (GetPlayerName) in your database, tabel users.
If the name it's fined in your users tabel, then u just need to print out a message, and say there to register first on your website.
On the website, player got register, so the number players grow in your tabel.
Aslo u need to have a field, like user_comfirmed_register, this will need to have a default value, 0.
When the player connecton your server, the name it's fined in the database, users, but the user_comfirmed_register it's 0, so u will print out a message like: The admin did not comfirmed your account, please wait until it's confirmed.
Now, let's come back on the registration website. When a player got registred, the numbers of players in ur tabel grow.
You can use Timer in ur server, and check the tabel users, then when the players in user tabel grow, u print a message on admins like: You have a new registred user[SQLID] [PlayerName][Data/Time] and whatever else u want to printout. If u want to confirm account, type /comfirmaccount [SQLID].
Your command need to use the SQLID to catch the data of the newest player registred. Then u need to upload the user_comfirmed_register to 1.
|
I might take a deeper look into this!
As i am trying to get a system where the player puts a character story on his registration, and we(admins) have to check that to see if player is capable of RP. a system like lsrp for example!
Also this way I get more scripting knowledge etc!