By Kevin Burk on Thursday, 31 December 2015
Likes 0
Views 1.4K
Votes 0
How do you edit the eMail notification template that goes out to subscribers? There's no longer an eMail Templates option (that I can find).
Hi Kevin,

to edit email notification you can go to components/com_easyblog/themes/wireframe/emails/html/post.new.php
·
Thursday, 31 December 2015 15:13
·
0 Likes
·
0 Votes
·
0 Comments
·
That doesn't help at all. It's all PHP and all of the text that I want to change is pulled from somewhere within the EasyBlog component.

If you're not going to make it easy to change the look and feel  — and the text — included in these emails, please at least create a decent tutorial that explains how it can be done.
·
Friday, 01 January 2016 00:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Kevin,

I am really sorry for the delay of this reply as it is actually a public day off for us here. These are the contents that are passed to the email templates,


$data = array(
'blogTitle' => $this->title,
'blogAuthor' => $author->getName(),
'blogAuthorAvatar' => $author->getAvatar(),
'blogAuthorLink' => $author->getExternalPermalink(),
'blogAuthorEmail' => $author->user->email,
'blogIntro' => $blogIntro,
'blogContent' => $blogContent,
'blogCategory' => $category->getTitle(),
'blogLink' => $this->getExternalPermalink(),
'blogDate' => $this->getCreationDate()->format(JText::_('DATE_FORMAT_LC')),
'blogCover' => $this->getImage()
);


Assuming that you want to display the category title, you could add this in your email template,


// Displaying blog category
<?php echo $blogCategory;?>

// Displaying blog's date
<?php echo $blogDate;?>

// Displaying blog cover
<img src="<?php echo $blogCover; ?>" />


Hope this helps!
·
Friday, 01 January 2016 18:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you. I'm more concerned with being able to change the introductory text, the header, and the subject line of the email. I want the email to reflect my brand.
·
Saturday, 02 January 2016 06:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Kevin,

These data cannot be altered unless you hack the core files which is in /administrator/components/com_easyblog/includes/post/post.php under the method @toEmailData

If you want to modify the general template of the email, the email template structure is located in /components/com_easyblog/themes/wireframe/emails/html/template.php

As for the subject, it cannot be modified in a template file. It uses the language string syntax and you can alter it on the language file /language/en-GB/en-GB.com_easyblog.ini


COM_EASYBLOG_EMAIL_TITLE_NEW_BLOG_ADDED_WITH_TITLE="New blog post - %1s"
·
Saturday, 02 January 2016 13:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark,

I've almost got things working the way I want them to. The only problem is that the cover image doesn't show up in the actual email when it's sent.

When I preview an email in the queue in EasyBlog, it's correct, and the cover image is there. But when I send the eMail, it ends up with a broken image link where the cover image should be.

I've given you admin access to my site — can you look into this and see what the problem is?
·
Sunday, 10 January 2016 10:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Kevin,

Can you view the source of the email and see the contents and if the url to the image is correct?
·
Sunday, 10 January 2016 13:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Standby … bad " in the code.
·
Sunday, 10 January 2016 14:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Sure, update here once you are ready
·
Sunday, 10 January 2016 15:17
·
0 Likes
·
0 Votes
·
0 Comments
·
No. I can't view the code in the eMails. The images are not coming through. Please investigate and let me know why this is happening. The eMails are correct on the website (images display there).

When the emails are sent, it substitutes the image placeholder for the actual cover image.
·
Sunday, 10 January 2016 15:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Please forward me the email to mark AT stackideas.com
·
Sunday, 10 January 2016 15:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Sent you an example email.
·
Monday, 11 January 2016 00:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Kevin,

I am really sorry for the delay of this reply as it is a weekend for us here. Hm, it seems like the missing "protocol" is causing the image to not appear. Are you using a post cover for the post?

Can you edit your post above to include the FTP access?
·
Monday, 11 January 2016 15:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Updated post with FTP access. Thanks.
·
Tuesday, 12 January 2016 12:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Kevin,

Could you give this a try again? I have applied a fix in the file /administrator/components/com_easyblog/includes/post/post.php at line 2341,


'blogCover' => $this->getImage()


Replaced with,


'blogCover' => $this->getImage('original', false, true)
·
Tuesday, 12 January 2016 13:28
·
0 Likes
·
0 Votes
·
0 Comments
·
It didn't work — and now the cover image doesn't show up in the HTML preview in the Mail Queue, either.
·
Tuesday, 12 January 2016 14:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Kevin,

Your customized post.new.php is incorrect. There should not be a preceeding / in the src attribute. I have fixed this for you and it works fine now.
·
Tuesday, 12 January 2016 17:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks so much!
·
Wednesday, 13 January 2016 00:12
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Kevin
·
Wednesday, 13 January 2016 00:22
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post