By Yann Anderson on Thursday, 17 August 2017
Posted in Technical Issues
Likes 0
Views 559
Votes 0
Hi folks,

As you can see with attached picture "mail.jpg", I've got a bad layout with my own site-logo when emails are send to users after a new blog post was created. I have an override located on mysite/templates/official/html/com_easyblog/emails/template.php and on this file, i have make some changes (img max-width:100%) but changes are not applied. Maybee the file "template.php" is not the good file that I need to upload on my template-overrides ? I am able to make some changes myself, please tell me just why I obtain a "full-size" logo...


Best Regards,

Yann Anderson

http://www.yannanderson.com
I FOUND THE PROBLEME: the url override must be :

templates/official/html/com_easyblog/emails/html/template.php

instead of:

templates/official/html/com_easyblog/emails/template.php
·
Thursday, 17 August 2017 19:09
·
0 Likes
·
0 Votes
·
0 Comments
·
It seems like that was known issue, try modify this file -> JoomlaFolder/templates/official/html/com_easyblog/emails/template.php
and apply following code and see how it goes.
[gist type="php"]
// LINE 202
<img src="<?php echo $logo;?>" aria-hidden="true" border="0" style="height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">

// Replace with
<img src="<?php echo $logo;?>" aria-hidden="true" border="0" style="width: 119px; height: auto; background: #dddddd; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;">
[/gist]
·
Thursday, 17 August 2017 11:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

In my case, it doesn't work! My templates/official/html/com_easyblog/emails/template.php is not read/executed, Easyblog execute the php file located in components/com_easyblog/themes/wireframe/emails/html/template.php. I have modified that file, so it work nice, but the next time i will update EB, I need to re-upload my own template.php in the components folder. Do you know why ?
·
Thursday, 17 August 2017 19:01
·
0 Likes
·
0 Votes
·
0 Comments
·
You're right.

Original file :
JoomlaFolder/components/com_easyblog/themes/wireframe/emails/html/template.php

Template override file :
JoomlaFolder/templates/YourCurrentTemplate/html/com_easyblog/emails/html/template.php
·
Thursday, 17 August 2017 19:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your help, it was an error from me, wrong overrides-url-path, now it work fine.

Enjoy your day !
·
Thursday, 17 August 2017 19:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Thursday, 17 August 2017 19:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post