Quick easy way to make PhpBB3 create a game account for Mangos (3.1.3) menu

User Tag List

Results 1 to 3 of 3
  1. #1
    milla247's Avatar Member
    Reputation
    3
    Join Date
    Oct 2008
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Quick easy way to make PhpBB3 create a game account for Mangos (3.1.3)

    This guide is just a simple easy way to make phpbb3 registration also create a game account with the same forum username and password.

    Open ucp_register.php in (forum root folder)\includes\ucp\

    Find:
    Code:
    $user_row = array(
    					'username'				=> $data['username'],
    					'user_password'			=> phpbb_hash($data['new_password']),
    					'user_email'			=> $data['email'],
    					'group_id'				=> (int) $group_id,
    					'user_timezone'			=> (float) $data['tz'],
    					'user_dst'				=> $is_dst,
    					'user_lang'				=> $data['lang'],
    					'user_type'				=> $user_type,
    					'user_actkey'			=> $user_actkey,
    					'user_ip'				=> $user->ip,
    					'user_regdate'			=> time(),
    					'user_inactive_reason'	=> $user_inactive_reason,
    					'user_inactive_time'	=> $user_inactive_time,
    				
    );
    				// Register user...
    Above those lines add :
    Code:
    $mangos_username=$data['username'];
    $mangos_passw=$data['new_password'];
    $mangos_email=$data['email'];
    $mangos_ip="0.0.0.0";
    $mangos_lock_acc="0";
    $mangos_expansion="2";
    $mangos_sql = "INSERT INTO `account` (`username`,`sha_pass_hash`,`email`,`last_ip`,`locked`,`expansion`) VALUES (UPPER('".$mangos_username."'),SHA1(CONCAT(UPPER('".$mangos_username."'),':',UPPER('".$mangos_passw."'))),'".$mangos_email."','".$mangos_ip."','".$mangos_lock_acc."','".$mangos_expansion."')";
    
    $mangos_link = mysql_connect('Localhost','mangosuser','mangospassword');
    $mangos_db_sel = mysql_select_db('realmd', $mangos_link);
    $mangos_result = mysql_query($mangos_sql);
    mysql_close();
    Replace the red mangosuser and mangospassword with your database root login

    it should look like this..
    Code:
    $mangos_username=$data['username'];
    $mangos_passw=$data['new_password'];
    $mangos_email=$data['email'];
    $mangos_ip="0.0.0.0";
    $mangos_lock_acc="0";
    $mangos_expansion="2";
    $mangos_sql = "INSERT INTO `account` (`username`,`sha_pass_hash`,`email`,`last_ip`,`locked`,`expansion`) VALUES (UPPER('".$mangos_username."'),SHA1(CONCAT(UPPER('".$mangos_username."'),':',UPPER('".$mangos_passw."'))),'".$mangos_email."','".$mangos_ip."','".$mangos_lock_acc."','".$mangos_expansion."')";
    
    $mangos_link = mysql_connect('Localhost','root','ascent');
    $mangos_db_sel = mysql_select_db('realmd', $mangos_link);
    $mangos_result = mysql_query($mangos_sql);
    mysql_close();
    
    				$user_row = array(
    					'username'				=> $data['username'],
    					'user_password'			=> phpbb_hash($data['new_password']),
    					'user_email'			=> $data['email'],
    					'group_id'				=> (int) $group_id,
    					'user_timezone'			=> (float) $data['tz'],
    					'user_dst'				=> $is_dst,
    					'user_lang'				=> $data['lang'],
    					'user_type'				=> $user_type,
    					'user_actkey'			=> $user_actkey,
    					'user_ip'				=> $user->ip,
    					'user_regdate'			=> time(),
    					'user_inactive_reason'	=> $user_inactive_reason,
    					'user_inactive_time'	=> $user_inactive_time,
    				
    );
    				// Register user...
    Now everytime a guest registers it will create a game account.
    Note that all the PHPBB3 register settings and controls will now apply to the game account.

    (only one email, mx record check, captcha check, etc)

    Enjoy =)

    Quick easy way to make PhpBB3 create a game account for Mangos (3.1.3)
  2. #2
    Wast3d's Avatar Member
    Reputation
    1
    Join Date
    May 2009
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is amazing... Could you do the same for vbulletin aswell?

  3. #3
    Xees's Avatar Contributor

    Reputation
    92
    Join Date
    Aug 2009
    Posts
    189
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol i feel like noob

Similar Threads

  1. Easy way to make custom weapons and armor
    By Nimaasuss in forum WoW EMU Guides & Tutorials
    Replies: 72
    Last Post: 01-30-2013, 07:40 PM
  2. Obvious, but REALLY easy way to make quick gold.
    By Deranged in forum World of Warcraft Guides
    Replies: 5
    Last Post: 03-31-2008, 12:02 AM
  3. Easy Way to Make Quick Gold
    By m0rbidang3l in forum World of Warcraft Guides
    Replies: 14
    Last Post: 11-01-2007, 11:04 AM
  4. Easy way to make quick money, completely and utterly unbannable
    By m0rbidang3l in forum World of Warcraft Exploits
    Replies: 30
    Last Post: 05-08-2007, 11:51 PM
All times are GMT -5. The time now is 09:02 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search