By Brad Wendel on Wednesday, 01 January 2014
Posted in Technical Issues
Replies 8
Likes 0
Views 0.9K
Votes 0
I am modifying the PHP files for the e-mail notifications for my Easy Blog site. I am wondering if there is a way to include the blog Category into the body of the e-mail. Also, is there a way to modify the subject line of the e-mail? I'm looking to personalize the e-mail notifications based on the category they are in. Thanks!
Hello Brad,

You can customize the email subject by modifying the language file which is located in /language/en-GB/en-GB.com_easyblog.ini and locate the codes below:


COM_EASYBLOG_EMAIL_TITLE_NEW_BLOG_ADDED_WITH_TITLE="New blog post - %1s"


As for personalizing the contents of the email, what you can do is to add the code below into the file /administrator/components/com_easyblog/tables/blog.php and at line 1086 add the codes below:


$category = EasyBlogHelper::getTable( 'category' );
$category->load( $this->category_id );
$data[ 'blogCategory' ] = $category->title;


Then in your e-mail template, add the code below to output the category title


<?php echo $blogCategory;?>
·
Wednesday, 01 January 2014 14:58
·
0 Likes
·
0 Votes
·
0 Comments
·
@mark
show the respective category in email's would be in general a nice feature for next version.
·
Thursday, 02 January 2014 01:33
·
0 Likes
·
0 Votes
·
0 Comments
·
I will add the variable of the $blogCategory to the e-mail
·
Thursday, 02 January 2014 01:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark

I change the constant COM_EASYBLOG_EMAIL_TITLE_NEW_BLOG_ADDED_WITH_TITLE="New blog post - %1s" with COM_EASYBLOG_EMAIL_TITLE_NEW_BLOG_ADDED_WITH_TITLE="%1s" to only show the post title but automatically cut the title and add a "..." to the email title.

There is a way to remove the "..." and let the title complete?

Thanks in advance
·
Monday, 12 May 2014 23:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello David,

Sorry but I don't quite get you here.
·
Tuesday, 13 May 2014 02:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark wrote:
You can customize the email subject by modifying the language file which is located in /language/en-GB/en-GB.com_easyblog.ini and locate the codes below:

COM_EASYBLOG_EMAIL_TITLE_NEW_BLOG_ADDED_WITH_TITLE="New blog post - %1s"



Hi Mark

I change the constant


COM_EASYBLOG_EMAIL_TITLE_NEW_BLOG_ADDED_WITH_TITLE="New blog post - %1s"


to


COM_EASYBLOG_EMAIL_TITLE_NEW_BLOG_ADDED_WITH_TITLE="%1s"


For only show the post title as the mail subject, but when I send a notification the subjet of the mail appears cut and with a ... at the end.

There is a way to make that the post title appears complete and without the "..."?

Thanks in advance
·
Tuesday, 13 May 2014 04:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark

Never mind, It was a bad configuration on my Backend settings.

Thanks for your replies
·
Tuesday, 13 May 2014 05:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating David Glad that your issues are resolved now.
·
Tuesday, 13 May 2014 16:26
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post