×
Kunena 5.1.3 Released (19 Aug 2018)

The Kunena team has announce the arrival of Kunena 5.1.3 [K 5.1.3] which is now available for download as a native Joomla extension for J! 3.8.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1. This is a maintenance release.

Solved Modify Subject EMail Notification

More
9 months 2 weeks ago #1 by mario87
Hi,
i am trying to change the subject line for the email notifications for the subscriptions.

The default setting for the subject is: title (category)

Is it possible to change the subject line?

I am looking in the default.php in the folder: com_kunena\template\templatename\layouts\email\subscription\
I try to change the variable $subject. But these change doesn't work.
The mails sent in plain format.

I look forward to hearing from you soon.

best regards

Mario

Please Log in or Create an account to join the conversation.

More
9 months 2 weeks ago #2 by 810
you should edit all files in the email dirs.
components\com_kunena\template\templatename\layouts\email

Then it should work.

Please Log in or Create an account to join the conversation.

More
9 months 2 weeks ago #3 by mario87
Hi thanks for this information.
The problem is still there.
The subject in the mailbody is gone but the subject line in the mail is still there.
HTML example:
Notice: Undefined variable: subject in \components\com_kunena\template\crypsis\layouts\email\subscription\default.php on line 165
Betreff :
Kategorie : News

I deleted all subject variables in the three files.
Is there any other file, where i can change the subject for the Mail?

I look forward to hearing from you soon.

best regards
Mario

Please Log in or Create an account to join the conversation.

More
9 months 2 weeks ago #4 by mario87
a few news:
i have renamed all files in components\com_kunena\template\templatename\layouts\email.
The notification works!
The file default.php in components\com_kunena\template\system\layouts\email\subscription sents the notification mail.
The subject line isnĀ“t set in this file. I set comments to find the subject line.
Where is the place to find the subject line for the notification mails?
I look forward to hearing from you soon.
best regards
Mario

Please Log in or Create an account to join the conversation.

More
9 months 1 week ago #5 by mario87
Are there any news?
this is the last "problem" to solve. after that the forum 'll go online.
i looked in other files. for example in the com_mailto.

best regards
Mario

Please Log in or Create an account to join the conversation.

More
7 months 1 day ago #6 by bcraigie
In libraries/kunena/forum/message/message,php on line 397 you can change the subject line. For example:
$mailsubject = JMailHelper::cleanSubject ( $topic->subject . " (" . $this->getCategory        ()->name . ")" );
change to
$mailsubject = '[My Site Name] '.JMailHelper::cleanSubject ( $topic->subject . " (" . $this->getCategory        ()->name . ")" );

This prepends [My Site Name] to the email subject line. I don't know why this obvious requirement has not been parameterised. Be aware that when Kunena is updated, this file could be overwritten.

Hope that helps.
The following user(s) said Thank You: mario87

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #7 by mario87
Thanks!

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.120 seconds