- Posts: 15
- Thank you received: 0
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
6 years 4 months ago #1
by mario87
Modify Subject EMail Notification was created 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
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.
6 years 4 months ago #2
by 810
Replied by 810 on topic Modify Subject EMail Notification
you should edit all files in the email dirs.
components\com_kunena\template\templatename\layouts\email
Then it should work.
components\com_kunena\template\templatename\layouts\email
Then it should work.
Please Log in or Create an account to join the conversation.
6 years 4 months ago #3
by mario87
Replied by mario87 on topic Modify Subject EMail Notification
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
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.
6 years 4 months ago #4
by mario87
Replied by mario87 on topic Modify Subject EMail Notification
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
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.
6 years 4 months ago #5
by mario87
Replied by mario87 on topic Modify Subject EMail Notification
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
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.
6 years 2 months ago #6
by bcraigie
Replied by bcraigie on topic Modify Subject EMail Notification
In libraries/kunena/forum/message/message,php on line 397 you can change the subject line. For example:
change to
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.
Code:
$mailsubject = JMailHelper::cleanSubject ( $topic->subject . " (" . $this->getCategory ()->name . ")" );
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.
5 years 11 months ago #7
by mario87
Replied by mario87 on topic Modify Subject EMail Notification
Thanks!
Please Log in or Create an account to join the conversation.
Time to create page: 0.479 seconds