By yoluca on Sunday, 12 January 2014
Posted in General Issues
Replies 9
Likes 0
Views 1.2K
Votes 0
is it possible to have the post image shown... instead of author avatar for new blog post notification email ?
Hello Yoluca,

Yep, you just need to customize it in the theme files
·
Sunday, 12 January 2014 21:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi I'm new to this extension.

Did you manage to put the image of the post on the theme of email?

You know where i can change the theme code and how to get the image post on the theme?

Thanks in advance
·
Saturday, 10 May 2014 23:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello David,

You can alter this in the email template that is located in /components/com_easyblog/themes/default/email.blog.new.html.php
·
Sunday, 11 May 2014 00:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi thanks for reply

I have found where the avatar and the intro post with $blogAuthorAvatar and $blogIntro is declared, but i dont know how to call de image post variable,

Already that variable exists in this section or I have to define a controller?

Do you know where i can document about the variables of this component?

Thanks in advance
·
Sunday, 11 May 2014 01:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello David,

Hm, looking at the codes if your image is embedded to the content, you can't really get the image because the image itself is located in the content of the blog post. If you use a blog image, you could add a hack for this.

Edit the file /administrator/components/com_easyblog/tables/blog.php and locate these codes at around line 1109


$data[ 'blogIntro' ] = $this->intro;
$data[ 'blogContent' ] = $this->content;


Replace it with,


$data[ 'blogIntro' ] = $this->intro;
$data[ 'blogContent' ] = $this->content;
$data['blogImage'] = $this->getImage() ? $this->getImage()->getSource('frontpage') : '';


Then, in your email.blog.new.html.php file, you can access the variable $blogImage
·
Sunday, 11 May 2014 16:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark

Thanks for your answer helped me a lot
·
Monday, 12 May 2014 22:36
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Tuesday, 13 May 2014 02:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Have you thought about changing this behavior so we don't have to hack the core in order to use the large image in an email?
·
Wednesday, 24 December 2014 06:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Brian,

We haven't got any plan to do this in our tracker. However, you can write this feature in our Voices page here: http://www.stackideas.com/voices/easyblog and our developer will get back to you.
·
Wednesday, 24 December 2014 10:37
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post