Registration system by PHP
#1

Hi there!

I would like to know if its possible to do the following:
  1. Player connects to the server.
  2. Player gets a message: Please register a master account on our website.
  3. Player goes to website and presses register.
  4. Player gets redirected to the registration page and registers.
  5. Admins get a notification and have to verify/accept the registration.
  6. Player gets an email that his account has been accepted or denied.
Is this possible, and if so, how would I do this?
Reply
#2

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.
Reply
#3

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)