I replaced:
function integrate_outgoing_email($subject, &$message, $headers)
{
global $boardurl, $mosConfig_live_site, $Itemid, $scripturl, $mosConfig_sef, $modSettings;
$message = str_replace ('&?', '&', $message);
if (strpos($message, $scripturl) != 0)
{
$message = str_replace ($scripturl, '="' . $scripturl, $message);
$message = un_htmlspecialchars(ob_mambofix($message));
$message = str_replace ('="', '', $message);
if ($mosConfig_sef == '1'){
$message = str_replace ($mosConfig_live_site . '/index.php', 'index.php', $message);
preg_match ('~index\.php.+~', $message, $url);
if (isset($url[0])){
$new_url = sefReltoAbs(trim($url[0]));
$new_url = str_replace(';', '/', $new_url);
$message = str_replace($url[0], $new_url, $message);
}
}
}
}
With:
function integrate_outgoing_email($subject, &$message, $headers)
{
global $boardurl, $mosConfig_live_site, $Itemid, $scripturl, $mosConfig_sef, $modSettings;
$message = str_replace ('&?', '&', $message);
if (strpos($message, $scripturl) != 0)
{
$message = str_replace ($scripturl, '="' . $scripturl, $message);
$message = un_htmlspecialchars(ob_mambofix($message));
$message = str_replace ('="', '', $message);
}
}
And the link still takes me back to the home page of the website. Here is what the email is sending out now.
A reply has been posted to a topic you are watching by beemerboy.
View the reply at: http://www.wiscbmwclub.com/index.php?option,com_smf&Itemid,49&topic,108.new/topicseen,topicseen#new
Unsubscribe to this topic by clicking here: ,"http://www.wiscbmwclub.com/index.php?option=com_smf&Itemid=49&action=notify;topic=108.0
More replies may be posted, but you won't receive any more notifications until you read the topic.