One way that you could do this would be to add in the update server behavior from the user confirm page to make the user automatically verified.
On the user registration page just after the insert user server behavior that ends around line 119 you would add in the update server behavior from the confirm page. Once this server behavior has been added you will need to update two parts of it, the trigger and the value for the userID. Here is what the updated code should be like:
<?php
// WA Application Builder Update
if (isset($_POST["Register_x"])) // Trigger
{
$WA_connection = $localhost;
$WA_table = "users";
$WA_redirectURL = "";
$WA_keepQueryString = false;
$WA_indexField = "UserID";
$WA_fieldNamesStr = "UserEmailVerified|UserVerificationCode";
$WA_fieldValuesStr = "1" . "|" . "".WA_RandomPassword(20, true, true, true, "") ."";
$WA_columnTypesStr = "none,none,NULL|',none,''";
$WA_comparisonStr = "=|=";
$WA_fieldNames = explode("|", $WA_fieldNamesStr);
$WA_fieldValues = explode("|", $WA_fieldValuesStr);
$WA_columns = explode("|", $WA_columnTypesStr);
$WA_where_fieldValuesStr = "".$_SESSION['UserID'] ."";
$WA_where_columnTypesStr = "none,none,NULL";
$WA_where_comparisonStr = "=";
$WA_where_fieldNames = explode("|", $WA_indexField);
$WA_where_fieldValues = explode("|", $WA_where_fieldValuesStr);
$WA_where_columns = explode("|", $WA_where_columnTypesStr);
$WA_where_comparisons = explode("|", $WA_where_comparisonStr);
$WA_connectionDB = $database_localhost;
mysql_select_db($WA_connectionDB, $WA_connection);
if (!session_id()) session_start();
$updateParamsObj = WA_AB_generateInsertParams($WA_fieldNames, $WA_columns, $WA_fieldValues, -1);
$WhereObj = WA_AB_generateWhereClause($WA_where_fieldNames, $WA_where_columns, $WA_where_fieldValues, $WA_where_comparisons );
$WA_Sql = "UPDATE `" . $WA_table . "` SET " . $updateParamsObj->WA_setValues . " WHERE " . $WhereObj->sqlWhereClause . "";
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
if ($WA_redirectURL != "") {
if ($WA_keepQueryString && $WA_redirectURL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "" && sizeof($_POST) > 0) {
$WA_redirectURL .= ((strpos($WA_redirectURL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
}
header("Location: ".$WA_redirectURL);
}
}
?>
Once that part is done the next part would be to update the email message to remove the link and let the user know that they are registered. To do this you will need to edit the WA_Universal_Email > Email_Templates > registration.php. In here update lines 8, 9 and 10. Remove the code on these lines and put in your own message to the new users.
WA_Universal_Email > Email_Templates > registration.php
<p>Please follow the link below in order to verify this email address:</p>
<p>
<?php echo($WAGLOBAL_Root_URL); ?>users_Confirm.php?ID=<?php echo(mysql_insert_id()); ?>&code=<?php echo($_SESSION['randomConfirm']); ?>
If you have a good working setup currently you should make sure to backup the files so that you can revert back if your updates don't work out.