×
Kunena 5.2 Beta 1 Released (24 Sep 2020)

The Kunena team is thrilled to announce the first public beta release of Kunena 5.2, a native Joomla extension for Joomla 3.9. This is a development release and should be only be used for testing; this version is not recommended for live websites at this stage.

The purpose of this release is to encourage testing by downloading, installing and identifying any problems or shortcomings that people may discover. K 5.2.0 B1 is stable and we are aware that people will discover defects. We encourage you to use the forum to report defects, as soon as they are discovered, so that the development team can work through the problems before the release of K 5.1 as a stable product. Reporting defects does not mean that the problems can or will be fixed. The Kunena team is looking forward to hearing your feedback on how well we have achieved our design goals.

Solved Modify Subject EMail Notification

More
2 years 9 months 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
2 years 9 months 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
2 years 9 months 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
2 years 9 months 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
2 years 9 months 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
2 years 7 months 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
2 years 5 months 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 edit your message.
Time to create page: 0.093 seconds