By Ulysses Gonzalez on Thursday, 06 July 2017
Posted in General Issues
Replies 4
Likes 0
Views 551
Votes 0
This might be an easy one, but I have to ask.
Especially since I am not able to find it within settings.

Is there any way on the backend to simply remove the following from email notifications;

  • author image
  • author name
  • date published
Hi there,

It should not be overwritten once you have made any update/upgrade, if you followed my steps above as those steps are the same way on how to do template override but more simple way.

But somehow, in case of emergency/bad case scenario, it would be best if you can do backup on that files and re-apply them again.

Please advice
·
Monday, 10 July 2017 16:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You can go to Backend>Components>Easyblog>Emails>Emails template and edit post.new.php files and removes codes below and see how it goes
[gist type="php"]
//For avatar
<div style="display:inline-block; margin: 0 -2px; max-width: 84px; min-width:64px; vertical-align:top; width:100%;" class="stack-column">
<table role="presentation" aria-hidden="true" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td dir="ltr" style="padding: 0 10px 10px 10px;">
<img src="<?php echo $blogAuthorAvatar;?>" aria-hidden="true" width="64" height="64" border="0" alt="" class="center-on-narrow" style="width: 100%; max-width: 64px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">
</td>
</tr>
</table>
</div>

//For published date and author name
<div style="display:inline-block; margin: 0 -2px; max-width:86.66%; min-width:320px; vertical-align:top;" class="stack-column">
<table role="presentation" aria-hidden="true" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td dir="ltr" style="font-family: sans-serif; font-size: 20px; line-height: 28px; color: #555555; padding: 0px 10px 0; text-align: left;" class="center-on-narrow">
<a href="<?php echo $blogLink;?>" target="_blank" style="color: #4E92DF; text-decoration: none; line-height: 28px;"><?php echo $blogTitle;?></a>

<p style="margin:0px 0 10px 0;font-size: 14px; line-height: 28px;">
<a href="<?php echo $blogAuthorLink;?>" target="_blank" style="color: #4E92DF; text-decoration: none;"><?php echo $blogAuthor;?></a> <?php echo JText::sprintf('COM_EASYBLOG_MAIL_TEMPLATE_POSTED_ON', $blogDate);?>
</p>
</td>
</tr>
</table>
</div>
[/gist]

Please give it a try and see how it goes
Note:
Steps above are quick way to do template override and new features on our latest version. And it required for you to generate a new emails in order to make sure those changes take place.
·
Thursday, 06 July 2017 16:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Edited that and a few other things.
All went very well, thanks, Warith.

Also, going to be backing up these revised templates.
However, I am compelled to ask, will the next update remove these templates that have overrides?
·
Monday, 10 July 2017 15:23
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post