By Kane on Saturday, 19 September 2015
Posted in General Issues
Replies 3
Likes 0
Views 725
Votes 0
A little help getting the html code right would be greatly appreciated.

I have attached two images, one is "what I have", the other is "What I want. When I try to left align parts, others left align as well. Here is the code, please help me get it right. Also image is missing, thanks a bunch, you guys never let us down.

<?php
/**
* @package EasyBlog
* @copyright Copyright (C) 2010 - 2015 Stack Ideas Sdn Bhd. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* EasyBlog is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die('Unauthorized Access');
?>
<tr>
<div style="font-family:Arial;font-size:32px;font-weight:normal;color:#333;display:block; margin: 4px 0;">
<img src="http://www.wefloat.net/images/WeFloat-Email-BannerLogo.jpg">
</div>
</tr>

<tr>
<td style="background: #fff; padding: 40px 100px; text-align: center">


<div style="padding-top: 30px;">
<a href="/<?php echo $blogLink;?>" style="text-decoration: none; font-weight: bold; color: #247acf; font-size: 24px; letter-spacing: -.5px;"><?php echo $blogTitle;?></a>
</div>
</td>
</tr>

<tr>
<td style="background: #fff; padding: 0 40px 40px”>
<div style="padding: 50px; background: #fafafa; text-align: center">
<img src="/<?php echo $blogAuthorAvatar;?>" width="60" height="60" style="border-radius: 100%; display: inline-block;" />
<div style="padding-top: 20px 0 40px;">
<a href="/<?php echo $blogAuthorLink;?>" style="text-decoration: none; font-weight: bold; color: #247acf;"><?php echo $blogAuthor;?></a>
<div style="font-size: 14px; font-weight: bold; color: #888; letter-spacing: -.5px;">
<?php echo JText::_('COM_EASYBLOG_EMAIL_POSTED_ON');?> <?php echo $blogDate;?>
</div>
</div>
<div style="padding: 40px 30px; text-align: left”>
<?php echo $blogIntro; ?>
</div>
<div>
<a href="/<?php echo $blogLink;?>" style="
background: #3ab54a;
display: inline-block;
line-height: 50px;
text-decoration: none;
text-align: center;
font-weight: bold;
color: #fff;
width: 160px;
border-radius: 3px;
margin: 0 5px;
"><?php echo JText::_('COM_EASYBLOG_NOTIFICATION_READ_MORE');?></a>
</div>
</div>
</td>
</tr>
Hi Kane,

Regarding your issue, can you pass me your Joomla backend admin access and your ftp account so that I can modify the email template directly from your server? Also, please tell me which email template file you are actually editing

Please advise.
Sam
·
Saturday, 19 September 2015 11:31
·
0 Likes
·
0 Votes
·
0 Comments
·
OK, so i edited the post to include site details, however, I would prefer the code simply be posted here. The email template I would like to alter is "post.new.php". I already have an override file in
/template/yoo_nano3/html/com_easyblog/emails/html
·
Sunday, 20 September 2015 07:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Kane,

I am really sorry for the delay of this reply as it weekends for all of us here. I've made code adjustment inside your /templates/yoo_nano3/html/com_easyblog/emails/html/post.new.php . However I am not able to see the output directly due to cache mechanism on your side. Can you verify it for me and see how it goes? Below is the full code inside the file:
<?php
/**
* @package EasyBlog
* @copyright Copyright (C) 2010 - 2015 Stack Ideas Sdn Bhd. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* EasyBlog is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die('Unauthorized Access');
?>
<tr>
<div style="font-family:Arial;font-size:32px;font-weight:normal;color:#333;display:block; margin: 4px 0;">
<img src="http://www.wefloat.net/images/WeFloat-Email-BannerLogo.jpg">
</div>
</tr>

<tr>
<td style="background: #fff; padding: 40px 100px; text-align: center">


<div style="padding-top: 30px;">
<a href="<?php echo $blogLink;?>" style="text-decoration: none; font-weight: bold; color: #247acf; font-size: 24px; letter-spacing: -.5px;"><?php echo $blogTitle;?></a>
</div>
</td>
</tr>

<tr>
<td style="background: #fff; padding: 0 40px 40px; text-align: left">
<div style="padding: 50px; background: #fafafa; text-align: left">
<img src="/<?php echo $blogAuthorAvatar;?>" width="60" height="60" style="border-radius: 100%; display: inline-block;" />
<div style="padding-top: 20px 0 40px;">
<a href="<?php echo $blogAuthorLink;?>" style="text-decoration: none; font-weight: bold; color: #247acf;"><?php echo $blogAuthor;?></a>
<div style="font-size: 14px; font-weight: bold; color: #888; letter-spacing: -.5px;">
<?php echo JText::_('COM_EASYBLOG_EMAIL_POSTED_ON');?> <?php echo $blogDate;?>
</div>
</div>
<div style="padding: 40px 30px; text-align: left">
<?php echo $blogIntro; ?>
</div>
<div>
<a href="<?php echo $blogLink;?>" style="
background: #3ab54a;
display: inline-block;
line-height: 50px;
text-decoration: none;
text-align: center;
font-weight: bold;
color: #fff;
width: 160px;
border-radius: 3px;
margin: 0 5px;
"><?php echo JText::_('COM_EASYBLOG_NOTIFICATION_READ_MORE');?></a>
</div>
</div>
</td>
</tr>
·
Monday, 21 September 2015 13:43
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post