Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About setting up an account system to MyBB Forum
Author Message
serveradmin
Apprentice
*

Posts: 8
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Sep 2017
Reputation: 0



Post: #1
About setting up an account system to MyBB Forum
I want to set an auto account system which will create in-game accounts according to the registeration on my "Mybb" forums. Shortly, forum accounts will create in-game accounts. Is there a way to do that? I guess there is..
I've a little knowledge about mysql so that iff you can clearly explain it to me I'll be grateful.

Best wishes
09-22-2017 02:40 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: About setting up an account system to MyBB Forum
the basic behavior to create the account can be easily done, but maybe an complete engine to sync perfectly every single data will be a hard task even for expert developers

basically you will need to do all these checks:
- setup sphere SQL to connect on this same SQL server
- edit your MyBB account database to add an new entry like "account_is_created_ingame" = true/false, using "false" as default value
- create an function on sphere that will run at every X minutes, to connect on SQL and search login/password of accounts with "account_is_created_ingame = false"
- if the search return an value, create these accounts using the login/password from SQL and change the SQL entry to "account_is_created_ingame = true"

with this code sphere will created the account when the MyBB account got created. But now the hard task is create more functions to sync the data of both accounts:
- ingame account must be deleted when forum account got deleted
- forum account must be deleted when ingame account got deleted
- ingame password must be changed when forum password got changed
- forum password must be changed when ingame password got changed
- etc
09-22-2017 04:51 AM
Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #3
RE: About setting up an account system to MyBB Forum
I barely knew any mysql and got mine working, check out this page: https://forum.spherecommunity.net/Thread...acc_update
09-22-2017 09:47 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)