Kunena 6.2.6 released

The Kunena team has announce the arrival of Kunena 6.2.6 [K 6.2.6] which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2

Solved Modify Subject EMail Notification

More
6 years 4 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
6 years 4 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
6 years 4 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
6 years 4 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
6 years 4 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
6 years 2 months ago #6 by bcraigie
In libraries/kunena/forum/message/message,php on line 397 you can change the subject line. For example:
Code:
$mailsubject = JMailHelper::cleanSubject ( $topic->subject . " (" . $this->getCategory ()->name . ")" );
change to
Code:
$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
5 years 11 months ago #7 by mario87
Thanks!

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

Time to create page: 0.479 seconds