Customizing SMF > SMF Coding Discussion

Email notifications bug?

<< < (4/5) > >>

[Unknown]:
Sources/Post.php, find: (in notifyUsersTopic()...)

--- Code: --- if (!in_array(0, $allowed) && !in_array($rowmember['ID_GROUP'], $allowed) && count(array_intersect($allowed, explode(',', $rowmember['additionalGroups']))) == 0)
{
log_error('Skipping notification on ' . $topic . ' for ' . $rowmember['emailAddress'] . ' due to no access.');
continue;
}
--- End code ---

Replace:

--- Code: --- if (!in_array(0, $allowed) && !in_array($rowmember['ID_GROUP'], $allowed) && count(array_intersect($allowed, explode(',', $rowmember['additionalGroups']))) == 0)
{
log_error('Skipping notification on ' . $topic . ' for ' . $rowmember['emailAddress'] . ' because they have access with ' . $rowmember['ID_GROUP'] . ' and ' . $rowmember['additionalGroups'] . ' but not to ' . implode(', ', $allowed) . '.');
continue;
}
--- End code ---

And see what shows in the error log...

-[Unknown]

[Unknown]:
 ! Notifications can now be sent by post group access too...

-[Unknown]

Martje:
Hi :)

--- Quote ---! Notifications can now be sent by post group access too...

-[Unknown]
--- End quote ---
doe this mean it will be in the next beta?

I have similar problems. I changed all the code as described above. admins can post and everyone is getting a notification, but if one of my members post it  no one is getting a notification.

I have turned

--- Quote ---Notify on Announcements
Sends an email to members when new topics are posted.
--- End quote ---
on on my boards.
and my members have


--- Quote --- 
x Receive forum announcements and important notifications by email.
  Receive topics email notification ONLY in 1st unread reply.
x Turn notification on when you post or reply to a topic.
--- End quote ---
turned on in their profile

I thought this would be all but perhaps i am missing some ?

 :) Would it be an idea to assign notification to a membergroup so that everyone you put in that membergroup gets a notification when someone of that membergroup post in whatever thread or board? or that you can add a member to a list in your profile so that if that member posts you get a notification... or do I make it much more complicated that it is? :P

thanks
maime

[Unknown]:
It should be solved in the next beta.

-[Unknown]

Martje:
ok thanks  :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version