flyalaska Posted May 25, 2014 Report Share Posted May 25, 2014 I am trying to make it, that new pilots start with X virtual money. Anyone know how I go about doing that? Quote Link to comment Share on other sites More sharing options...
magicflyer Posted May 25, 2014 Report Share Posted May 25, 2014 Hi! Here's what I got: Go to your phpmyadmin Click on the table phpvms_pilots Go to the "Structures" tab Find "totalpay" and click on "change" in the menu to the right Under the "default" column, change the option menu to "As Defined:", then enter the X virtual money you want a pilot to start with. Click "Save" Everytime a new pilot registers, it will now default to the value entered in step #5 Quote Link to comment Share on other sites More sharing options...
flyalaska Posted May 25, 2014 Author Report Share Posted May 25, 2014 Thank you! Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted May 25, 2014 Members Report Share Posted May 25, 2014 Damn he got me my solution is @ line 93 in core/common/registrationdata.class.php add $money=Config::Get('SALARY_NEW_PILOT'); change the sql query to $sql = "INSERT INTO ".TABLE_PREFIX."pilots (firstname, lastname, email, code, location, hub, password, totalpay, salt, confirmed, joindate, lastip) VALUES ('{$firstname}', '{$lastname}', '{$data['email']}', '{$code}', '{$location}', '{$data['hub']}', '{$password}', '{$money}', '{$salt}', {$confirm}, NOW(), '{$_SERVER['REMOTE_ADDR']}')"; add in local.config.php Config::Set('SALARY_NEW_PILOT', '500.17'); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.