xoops forums

lintu

Not too shy to talk
Posted on: 2010/5/21 17:42
lintu
lintu (Show more)
Not too shy to talk
Posts: 103
Since: 2005/9/18
#1

CBB: Email notification not going out to Moderator

Hi Folks,

I need a little bit of help. I have installed CBB 3.08 on my site and have setup a user as the moderator. New post require moderator approval before being published. I logged in as a test user and submitted a new post, but no email notification was sent to the moderator for approval. How can I resolve this issue?

Email notfications from other areas of the site are working properly and the moderator email address is correct.

Thanks in advance for your help.

ghia

Community Support Member
Posted on: 2010/5/22 19:23
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#2

Re: CBB: Email notification not going out to Moderator

I think that function is not provided. AFAIK there is only notification for approved posts.

To have this, you could add some notifications in post.php for the non approved case.
The destinators for it must be limited. You don't want to sent out notifications to all subscribed users that can't access these posts. There is a user_list parameter in the TriggerEvent function of /kernel/notification.php You can fill this list with the getModerators function of the forum object of /modules/newbb/class/forum.php.

lintu

Not too shy to talk
Posted on: 2010/5/23 5:02
lintu
lintu (Show more)
Not too shy to talk
Posts: 103
Since: 2005/9/18
#3

Re: CBB: Email notification not going out to Moderator

Thanks for your response! I will try to make the change that you suggested.

lintu

Not too shy to talk
Posted on: 2010/6/28 4:07
lintu
lintu (Show more)
Not too shy to talk
Posts: 103
Since: 2005/9/18
#4

Re: CBB: Email notification not going out to Moderator

Hi Ghia,

I spent some time trying to add the moderator notification as you suggested, but couldn't get it to work. Would it possible for you to give some code snippet?

Also, I noticed that there is a bug with the user 'new post added' notification if the moderator approval is turned on. After the moderator approves a post, no notification is going out to those who subscribed to new posts alert.

Please help! Thanks.

Abu

ghia

Community Support Member
Posted on: 2010/6/28 15:58
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#5

Re: CBB: Email notification not going out to Moderator

What did you already got?

lintu

Not too shy to talk
Posted on: 2010/6/28 17:57
lintu
lintu (Show more)
Not too shy to talk
Posts: 103
Since: 2005/9/18
#6

Re: CBB: Email notification not going out to Moderator

I did not get far. I did the following:

1. Added an entry on the XOOPSNotification table to receive the moderator notification.
2. Added an email template for moderator notification.
3. Modified post.php for sending alerts for the non approved case.

I also tried to modify viewpost.php, so that a notification goes out to all who subcribed to 'new post' alert when the moderator approves a post.

I don't have much experinece with PHP. So, have a bit of a learning curve here.

Thanks for all your help.