- Posts: 8
- Thank you received: 0
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.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
Before posting new topics in this category
K 1.5.x Support: Please read this first.
Question K 1.5.11: Bug with subscription and moderated forums
15 years 11 months ago - 15 years 11 months ago #48115
by bochen87
K 1.5.11: Bug with subscription and moderated forums was created by bochen87
Hi,
I found a bug:
If you post a message in a moderated forum and then the moderator approves it, the subscribers do not get an email notification.
I found a bug:
If you post a message in a moderated forum and then the moderator approves it, the subscribers do not get an email notification.
Last edit: 15 years 11 months ago by sozzled. Reason: Changed subject to improve search relevance
Please Log in or Create an account to join the conversation.
15 years 11 months ago #48119
by sozzled
Blue Eagle vs. Crypsis reference guide
Read my blog and
Replied by sozzled on topic Re: Bug with subscription and moderated forums
What version Kunena?
What Kunena template are you using?
Do email notifications work from your site? Do subscription emails normally work even for non-moderated forums?
What Kunena template are you using?
Do email notifications work from your site? Do subscription emails normally work even for non-moderated forums?
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
15 years 11 months ago #48122
by bochen87
Replied by bochen87 on topic Re: Bug with subscription and moderated forums
hi,
i am using the newest version 1.5.11 and the default template.
yes, email notifications work in non moderated forums, i tested this.
i am using the newest version 1.5.11 and the default template.
yes, email notifications work in non moderated forums, i tested this.
Please Log in or Create an account to join the conversation.
15 years 11 months ago #48125
by sozzled
Blue Eagle vs. Crypsis reference guide
Read my blog and
Replied by sozzled on topic Re: K 1.5.11: Bug with subscription and moderated forums
I should have been clearer with my earlier question. The problem may or may not have something to do with categories that are marked Moderated = Yes. I think the problem is related to categories that are marked Review Posts = Yes.
On the one hand, I believe that all categories should be marked Moderated = Yes. On the other hand, I rarely use Review Posts = Yes, because I think they're a waste of time when you're dealing with adults. When you're dealing with immature people whom you can't trust to respect the rules of the forum, yes, I agree there may be a need to review what people write before you allow it onto the discussion board.
So, to clarify my earlier question, do subscription emails normally work for categories of your forum that you have marked Review Posts = No?
On the one hand, I believe that all categories should be marked Moderated = Yes. On the other hand, I rarely use Review Posts = Yes, because I think they're a waste of time when you're dealing with adults. When you're dealing with immature people whom you can't trust to respect the rules of the forum, yes, I agree there may be a need to review what people write before you allow it onto the discussion board.
So, to clarify my earlier question, do subscription emails normally work for categories of your forum that you have marked Review Posts = No?
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
15 years 11 months ago - 15 years 11 months ago #48145
by bochen87
Replied by bochen87 on topic Re: K 1.5.11: Bug with subscription and moderated forums
yes, if I set up review posts = yes, then subscriptions don't work and if i set up review = no, then they work.
My community is about 3k-4k big and they all consist of professors and elder researchers. We have always used a listserv and wanted to make a step forward.
I need the feature that everybody is subscribed to a forum and get's notificated, because that is what they use most, their email system. And prior to that: they want it like that.
But if you have this and the posts are not reviewed prior to publishing, then the problem arises, that they also get notificated about spam. so we definately need this function and I am waiting for the promising (and for us to make kunena usable) feature of a category subscription.
Meanwhile I found the error:
In moderate_messages.php:
function jbApprovePosts($kunena_db, $cid) (line 421)
you need to notify all the subscribers in this after it succeeded. Add this code before the return:
maybe it would make sense to create this as a new function somewhere because now you have the same code twice in your program..
My community is about 3k-4k big and they all consist of professors and elder researchers. We have always used a listserv and wanted to make a step forward.
I need the feature that everybody is subscribed to a forum and get's notificated, because that is what they use most, their email system. And prior to that: they want it like that.
But if you have this and the posts are not reviewed prior to publishing, then the problem arises, that they also get notificated about spam. so we definately need this function and I am waiting for the promising (and for us to make kunena usable) feature of a category subscription.
Meanwhile I found the error:
In moderate_messages.php:
function jbApprovePosts($kunena_db, $cid) (line 421)
you need to notify all the subscribers in this after it succeeded. Add this code before the return:
Code:
//get all subscriptions
$emailToList = CKunenaTools::getEMailToList($catid, $querythread, $fbConfig->allowsubscriptions && !$holdPost,
false, false, $kunena_my->id);
//Now manage the subscriptions (only if subscriptions are allowed)
if (count($emailToList)) {
jimport ( 'joomla.mail.helper' );
if (! $fbConfig->email || ! JMailHelper::isEmailAddress($fbConfig->email)) {
$app->enqueueMessage (_KUNENA_EMAIL_INVALID, 'error' );
} else {
$mailsender = JMailHelper::cleanAddress( stripslashes ( $board_title ) . " " . _GEN_FORUM );
$mailsubject = JMailHelper::cleanSubject("[" . stripslashes ( $board_title ) . " " . _GEN_FORUM . "] " . stripslashes ( $messagesubject ) . " (" . stripslashes ( $catName ) . ")");
foreach ( $emailToList as $emailTo ) {
if (! $emailTo->email || ! JMailHelper::isEmailAddress($emailTo->email)) continue;
if ($emailTo->subscription) {
$msg1 = $_COM_A_NOTIFICATION1;
$msg2 = $_COM_A_NOTIFICATION2;
} else {
$msg1 = $_COM_A_NOT_MOD1;
$msg2 = $_COM_A_NOT_MOD2;
}
$msg = "$emailTo->name,\n\n";
$msg .= $msg1 . " " . stripslashes ( $board_title ) . " " . _GEN_FORUM . "\n\n";
$msg .= _GEN_SUBJECT." : " . stripslashes($messagesubject) . "\n";
$msg .= _GEN_FORUM." : " . stripslashes($catName) . "\n";
$msg .= _VIEW_POSTED." : " . stripslashes($fb_authorname) . "\n\n";
$msg .= $msg2 . "\n";
$msg .= "URL: $LastPostUrl\n\n";
if ($fbConfig->mailfull == 1) {
$msg .= _GEN_MESSAGE.":\n-----\n";
$msg .= $mailmessage;
$msg .= "\n-----";
}
$msg .= "\n\n";
$msg .= "$_COM_A_NOTIFICATION3\n";
$msg .= "\n\n\n\n";
$msg .= "** Powered by Kunena! - http://www.Kunena.com **";
$msg = JMailHelper::cleanBody($msg);
JUtility::sendMail($fbConfig->email, $mailsender, $emailTo->email, $mailsubject, $msg);
}
}
}
maybe it would make sense to create this as a new function somewhere because now you have the same code twice in your program..
Last edit: 15 years 11 months ago by bochen87.
Please Log in or Create an account to join the conversation.
15 years 11 months ago #48164
by sozzled
Blue Eagle vs. Crypsis reference guide
Read my blog and
Replied by sozzled on topic Re: K 1.5.11: Bug with subscription and moderated forums
Thank you for reporting this matter and for the efforts that you have made to solve this problem. After discussing this with the developers, I understand that this problem was known to them but they haven't yet found a way to fix it properly. In fact, it seems that this issue may still be present in K 1.6.
We're looking at ways to address the matter. Something like what you've proposed might be usable. I'm sorry that we haven't got an immediate fix for you at present.
We're looking at ways to address the matter. Something like what you've proposed might be usable. I'm sorry that we haven't got an immediate fix for you at present.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
Time to create page: 0.288 seconds