Mailer New Submit News Edits

From MontegoScriptsWiki
Jump to: navigation, search

Home>Mailer>New Installation>Core File Edits>modules/Submit_News/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/Submit_News/index.php

Modify the Article Submit Code

FIND THIS CODE BLOCK HERE:

mail($notify_email, $notify_subject, $notify_message, "From: $notify_from\nX-Mailer: PHP/" . phpversion());

REPLACE WITH:

/*
 * TegoNuke(tm) Mailer
 */
$mailsuccess = false;
if (TNML_IS_ACTIVE) {
    $mailsuccess = tnml_fMailer($notify_email, $notify_subject, $notify_message, $notify_from, $sitename);
} else {
    $mailsuccess = mail($notify_email, $notify_subject, $notify_message, "From: $sitename <$notify_from>\r\nX-Mailer: PHP/" . phpversion());
}
//mail($notify_email, $notify_subject, $notify_message, "From: $notify_from\nX-Mailer: PHP/" . phpversion());
/*
 * end of TegoNuke(tm) Mailer add
 */
For RavenNuke™ 2.20.xx to 2.4x.xx

For RavenNuke™, the code is a little different. It should end up looking like this:

/*
 * TegoNuke Mailer added by montego for 2.20.00
 */
$mailsuccess = false;
if (TNML_IS_ACTIVE and validate_mail($notify_from) !== false) {
	$mailsuccess = tnml_fMailer($notify_email, $notify_subject, $notify_message, $notify_from, $sitename);
} else {
	$mailsuccess = mail($notify_email, $notify_subject, $notify_message, "From: $sitename <$notify_from>\nX-Mailer: PHP/" . phpversion());
}
/*
 * end of TegoNuke Mailer add
 */

It has the extra email validation routine in there.

Personal tools