Mailer New Your Account Edits

From MontegoScriptsWiki
Jump to: navigation, search

Home>Mailer>New Installation>Core File Edits>modules/Your_Account/index.php

Given the vast number of *nuke-based forks and versions across all of these, we cannot possibly provide updates to all of them. In fact, the bulk of the updates will be based upon PHP-Nuke 7.6 just like the instructions for new installations. However, where possible, a few RavenNukeā„¢ specific notes will be added as helpful hints along the way.

Here are the required edits for this script:

Open File

Open the following file to edit:

modules/Your_Acount/index.php

Modify finishNewUser() Function Code

FIND THIS CODE BLOCK (ONE INSTANCE) WITHIN FUNCTION finishNewUser():

mail($user_email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());

REPLACE WITH:

/*
 * TegoNuke(tm) Mailer
 */
$mailsuccess = false;
if (TNML_IS_ACTIVE) {
    $to = array(array($user_email, $username));
    $mailsuccess = tnml_fMailer($to, $subject, $message, $adminmail, $sitename);
} else {
    $mailsuccess = mail($user_email, $subject, $message, 'From: '."$sitename <$from>\r\n".'X-Mailer: PHP/' . phpversion());
}
//mail($user_email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
/*
 * end of TegoNuke(tm) Mailer add
 */

Modify mail_password() Function Code

FIND THIS CODE BLOCK (TWO INSTANCES) WITHIN FUNCTION mail_password():

mail($user_email, $subject, $message, "From: $adminmail\nX-Mailer: PHP/" . phpversion());

REPLACE WITH:

/*
 * TegoNuke(tm) Mailer
 */
$mailsuccess = false;
if (TNML_IS_ACTIVE) {
    $to = array(array($user_email, $username));
    $mailsuccess = tnml_fMailer($to, $subject, $message, $adminmail, $sitename);
} else {
    $mailsuccess = mail($user_email, $subject, $message, 'From: '."$sitename <$adminmail>\r\n".'X-Mailer: PHP/' . phpversion());
}
//mail($user_email, $subject, $message, "From: $adminmail\nX-Mailer: PHP/" . phpversion());
/*
 * end of TegoNuke(tm) Mailer add
 */
Personal tools