By fred appleton on Monday, 23 April 2018
Posted in General
Likes 0
Views 1.2K
Votes 0
I have been trying to override the new post template for EasyBlog and have not been able to make it work. Cn you have a look and tell me what I am doing wrong?

Thanks in advance
Are you referring new post email notification content?

If yes, is it possible for you to explain to us how you did on your site regarding this and which part is not working?
·
Monday, 23 April 2018 22:44
·
0 Likes
·
0 Votes
·
0 Comments
·
So . . there are several things that I want to change in new.post email notification.

I would like to change the Header content which I can change in the Language file. This works, so there is not worry here.

I also want to delete the avatar from the email message and change the alignment. At this time the text is all left aligned, and for our purpose it is best of it is all centered. It would be best if the email notification maintained the same alignment as the post, but I have never been able to figure out how to make that work.


- I am using EB Pro 5.2.4,
- the Mail Activities/ E-mail Templates/ post.new.php
- I changed the color of the Heading

If I can get this working, I will make other changes to the way the notification looks.
·
Tuesday, 24 April 2018 04:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Fred,

Do you prefer as shown here: http://take.ms/JgI7X yes?
If yes, you can remove the code below in the file you customize above:

<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;">
<?php if ($templatePreview) { ?>
<img src="<?php echo JURI::root();?>components/com_easyblog/assets/images/default_blogger.png" 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;">
<?php } else { ?>
<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;">
<?php } ?>
</td>
</tr>
</table>
</div>

which is from line 46-58 (double check with the code above) - this one is remove the avatar in the new post email notification

for make it center for the whole body, you need to change all the below:

text-align: left;

to

text-align: center;


You're suggested to backup the file that you want to customize beforehand for precaution
·
Tuesday, 24 April 2018 11:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you. This has worked for me. I appreciate your help.
·
Tuesday, 24 April 2018 16:05
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Fred Glad to hear your issue has resolved.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding and have a nice day ahead
·
Tuesday, 24 April 2018 16:19
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post