Hi, with the hack doing by one of our colleges we try to insert post cover in emails template but for some reason it doesn´t appear
The hack code is :
// custom hack for display post cover in email
$this->normalizeBlogImage();
$mm = EB::mediamanager();
$url = $mm->getUrl($this->image);
$path = $mm->getPath($this->image);
$exists = JFile::exists($path);
if ($exists) {
$uri = JURI::getInstance();
$scheme = $uri->toString(array('scheme'));
$scheme = str_replace('://', ':', $scheme);
$image = $scheme . $url;
$blogImage = $image;
}
// end customisation
And in the post.new.php overrides has :
<div align="center" class="img-container center autowidth fullwidth " style="padding-right: 0px; padding-left: 0px;">
<!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr style="line-height:0px;line-height:0px;"><td style="padding-right: 0px; padding-left: 0px;" align="center"><![endif]-->
<?php if ($templatePreview) { ?>
<img class="center autowidth fullwidth" align="center" border="0" src="https://site.com/images/placeholder.gif" alt="Image" title="Image" style="outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;clear: both;display: block !important;border: 0;height: auto;float: none;width: 100%;max-width: 498px" width="498">
<?php } else { ?>
<img class="center autowidth fullwidth" align="center" border="0" src="/<?php echo $blogImage;?>" alt="Image" title="Image" style="outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;clear: both;display: block !important;border: 0;height: auto;float: none;width: 100%;max-width: 498px" width="498">
<?php } ?>
<!--[if mso]></td></tr></table><![endif]-->
</div>
Can you give a hand ?
Thanks.