Hi,
It turns out the above changes to variable names lets it install but it's not passing the data from the whmcs form to the sql insert. I tested the custom script installer directly in softaculous. The variables are getting from that form to database, but not from the whmcs auto-installer hook.
Code $GLOBALS['softaculous_conf']['custom_fields']['user_name'] = 'Admin Name';
$GLOBALS['softaculous_conf']['custom_fields']['user_password'] = 'Admin Pass';
$GLOBALS['softaculous_conf']['custom_fields']['user_email'] = 'Admin Email'
and the install.xml inputs
Code <input type="text" name="user_name" size="30">
<head>{{user_name}}</head>
</input>
<input type="text" name="user_password" size="30">
<head>{{user_password}}</head>
<handle>__admin_pass</handle>
</input>
<input type="text" name="user_email" size="30">
<head>{{user_email}}</head>
</input>
I really appreciate the help.
|