Jump to content

New Pilots Starting With VMoney


flyalaska

Recommended Posts

Hi! Here's what I got:

  1. Go to your phpmyadmin
  2. Click on the table phpvms_pilots
  3. Go to the "Structures" tab
  4. Find "totalpay" and click on "change" in the menu to the right
  5. Under the "default" column, change the option menu to "As Defined:", then enter the X virtual money you want a pilot to start with.
  6. Click "Save"
  7. Everytime a new pilot registers, it will now default to the value entered in step #5

Link to comment
Share on other sites

  • Members

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');

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...