Based on the code in that file, I think this is likely to be the portion of interest:
function confirmNewUser($username, $user_email, $user_password, $user_password2, $random_num, $gfx_check) {
global $stop, $EditedMessage, $sitename, $module_name, $minpass;
include("header.php");
include("config.php");
$username = filter($username, "nohtml");
$user_email = filter($user_email, "nohtml");
$user_viewemail = "0";
userCheck($username, $user_email);
So, you could try placing the 'include()' line right before the line with "$user_viewemail = "0";, like this:
function confirmNewUser($username, $user_email, $user_password, $user_password2, $random_num, $gfx_check) {
global $stop, $EditedMessage, $sitename, $module_name, $minpass;
include("header.php");
include("config.php");
$username = filter($username, "nohtml");
$user_email = filter($user_email, "nohtml");
include('/path/to/botscout/file.php');
$user_viewemail = "0";
userCheck($username, $user_email);
(Change the path to where the BotScout file is, of course.)
In the botscout file, you'll need to set a couple of things:
1) Make sure you set the file to use a CUSTOM apptype by uncommenting this section:
// for custom settings or unlisted board type
// see documentation for setting the 'CUSTOM' fields
$apptype='CUSTOM';
Then in this section, change the code to look like this:
}elseif($apptype='CUSTOM'){
// create your own custom form fields here
// see documentation for more information
$XUSER = $username;
$XMAIL = $user_email;
}else{