Kunena 7.0.9 & Kunena 6.4.14 – Security Updates Released

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

Solved Modify Subject EMail Notification

More
8 years 10 months ago #197014 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
8 years 10 months ago #197057 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
8 years 9 months ago #197072 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
8 years 9 months ago #197095 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
8 years 9 months ago #197180 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
8 years 7 months ago #198314 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.

Time to create page: 0.264 seconds