UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline

Blog cover in email problem

Zeosing · ·
5:31 PM Wednesday, 25 July 2018
Urgent
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.
The replies under this section are restricted to logged in users or users with an active subscription with us