This is what the email source looks like for the image location:
This is how it should be:
http://domain.com/emailer/system/data/u ... y_logo.gif
session_start(); $Config['UserFilesPath'] = $_SESSION['oemPro']['Settings']['DataRelativePath'].'/user_uploads/'.$_SESSION['oemPro']['Administrator']['AdministratorID'].'/';
// Fixes FCKEditor image source bug
function FixFCKEditorImageSourceBug($Content, $ArrayConfig)
{
preg_match_all("/src\=\"(.*)\/data\/user_uploads(.*)\"/iU", $Content, $ArrayMatches, PREG_SET_ORDER);
foreach ($ArrayMatches as $EachMatch)
{
$TMPImageURL = $EachMatch[1].'/data/user_uploads'.$EachMatch[2];
$TMPCorrectImageURL = $ArrayConfig['URLs']['Software'].$TMPImageURL;
$Content = str_replace('src="'.$TMPImageURL.'"', 'src="'.$TMPCorrectImageURL.'"', $Content);
}
preg_match_all("/src\=\"(.*)\/data\/editors\/fckeditor(.*)\"/iU", $Content, $ArrayMatches, PREG_SET_ORDER);
foreach ($ArrayMatches as $EachMatch)
{
$TMPImageURL = $EachMatch[1].'/data/editors/fckeditor'.$EachMatch[2];
$TMPCorrectImageURL = $ArrayConfig['URLs']['Software'].$TMPImageURL;
$Content = str_replace('src="'.$TMPImageURL.'"', 'src="'.$TMPCorrectImageURL.'"', $Content);
}
return $Content;
}
RE: Absolute image path problem
RE: Absolute image path problem
RE: Absolute image path problem
echo '<?xml version="1.0" encoding="utf-8" ?>' ;RE: Absolute image path problem
Thanks!
Jake
RE: Absolute image path problem
Anyone around? Anyone willing to help?
Jake