AAAAcomponents/com_chronoforms/form_actions/email_verification_sender/email_verification_sender.ctp 0000604 00000011303 15137653251 0036151 0 ustar 00 home/academiac/www/administrator
Header(array('settings' => 'Settings', 'help' => 'Help'), 'email_verification_sender_config_{n}'); ?>
tabStart('settings'); ?>
getTableList();
$options = array();
foreach($tables as $table){
$options[$table] = $table;
}
?>
input('action_email_verification_sender_{n}_table_name_config', array('type' => 'select', 'label' => 'Table', 'options' => $options, 'empty' => " - ", 'class' => 'medium_input', 'smalldesc' => 'The table to which the form data will be stored, form fields names should match the table columns names.')); ?>
input('action_email_verification_sender_{n}_verify_field_config', array('type' => 'text', 'label' => "Verification code field name", 'class' => 'medium_input', 'smalldesc' => 'The field name at which the verification code will be stored.')); ?>
input('action_email_verification_sender_{n}_verification_status_field_config', array('type' => 'text', 'label' => "Verification status field name", 'class' => 'medium_input', 'smalldesc' => 'The field name at which the verification status (0 or 1) will be stored. (a TINYINT(1) field is perfect)')); ?>
input('action_email_verification_sender_{n}_files_array_field_config', array('type' => 'text', 'label' => "Files array field name", 'class' => 'medium_input', 'smalldesc' => 'The field name at which the form files array is going to be saved, this is necessary only if your form is uploading some files, should be of type TEXT')); ?>
input('action_email_verification_sender_{n}_verification_link_path_config', array('type' => 'text', 'label' => "Verification link path", 'class' => 'big_input', 'value' => '', 'smalldesc' => 'The verification link path, this is typically the link to your form event which has the "Email verification response" action.')); ?>
tabEnd(); ?>
tabStart('help'); ?>
- Select the db table where you want your form data to be stored at along with the verification code.
- Your table should have some field to store the verification code.
- Enter the name of your verification code field without any spaces.(preferably a VARCHAR(255) field)(e.g: verify)
- Enter the name of your verification status field without any spaces.(preferably a TINYINT(1) field)()e.g: verified
- Enter the path to your "Email verification response" processor action, this is usually the link to your form in the frontend (you can add it to any other form you want).
- Add an Email action after this action to send the verification email, you can use {verification_link} to display the link in your email, you can use {verify} to display the verification code only.
tabEnd(); ?>