By Marius Lead on Thursday, 19 April 2018
Posted in General Issues
Likes 0
Views 497
Votes 0
I know this may be out of support scope but appreciate your help.

I would like to modify email title to include a parameter from email.
administrator/components/com_easysocial/includes/mailer/mailer.php

$title = $this->translate($mail->title, $mail->params);
I would like to add new discussion id and discussion title instead

How can I access the content of the email template from here.
Hi there,

May i know that you referring to discussion created on your groups/evens/pages? If yes, you need to do some customization on files listed below.

include codes below here .../administrator/components/com_easysocial/includes/group/group.php under this codes if ($action == 'discussion.create')
[gist type="php"]
$params->discussionids = $data['discussionId'];
[/gist]

And include discussionids by <?php echo $discussionids; ?> respectively on this files ..../components/com_easysocial/themes/wireframe/emails/group/discussion.create.php

Please give it a try and see how it goes.
·
Thursday, 19 April 2018 18:34
·
0 Likes
·
0 Votes
·
0 Comments
·
thanks. This would be changing heading of the email I believe. I need to have subject to be "new discussion id" + "discussion title"
·
Thursday, 19 April 2018 21:24
·
0 Likes
·
0 Votes
·
0 Comments
·
After adding
$params->discussionids = $data['discussionId']; in discussion create part in
/administrator/components/com_easysocial/includes/group/group.php

I am trying to output email subject by chanign this in language file
COM_EASYSOCIAL_EMAILS_GROUP_NEW_DISCUSSION_SUBJECT="{discussionids} {title}"
but for some reason it doesnt pass discusisonids
·
Thursday, 19 April 2018 21:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Forgot to mention, I am using EasyDiscussGroup App
·
Friday, 20 April 2018 03:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

It seems that prompted steps are for built in discussion and not Easydiscuss. For easydiscuss, you can do your customization here ..../administrator/components/com_easydiscuss/includes/easysocial/easysocial.php Steps are most likely same with previous prompted steps and need to do some adjustment accordingly.

If you require us to perform the customization for you, you can always request for a quote from us at https://crm.stackideas.com and select "Customizations" . Our sales person would be glad to send you a quote for the customizations that you have requested.

Please give it a try and see how it goes.
·
Friday, 20 April 2018 12:48
·
0 Likes
·
0 Votes
·
0 Comments
·
It worked, thank you!
it was just $params->post = $post->id this time.
Thank you very much!
·
Friday, 20 April 2018 17:25
·
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.
·
Friday, 20 April 2018 18:41
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post