The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About setting up an account system to MyBB Forum
Author Message
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
Post Reply 


Messages In This Thread
RE: About setting up an account system to MyBB Forum - Coruja - 09-22-2017 04:51 AM

Forum Jump:


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