| Re: Enable Notification to Self? |
| by marook on 2005/10/17 20:22:38 Yeah.. looking in /kernel/notification.php, I find this: le="color: #000000"><?php function triggerEvent ... if (!isset($omit_user_id)) { global $xoopsUser; if (!empty($xoopsUser)) { $omit_user_id = $xoopsUser->getVar('uid'); } else { $omit_user_id = 0; } } Guess I need to handle this in the " if (!empty($xoopsUser)) " part, or make a CASE looking at the preference set on the user/notification. If I add a special notification event to a module, could I simply add another param to the notification, like: $modversion['notification']['event'][n]['notify_self'] = 1; and check for this somehow? I guess this could set the $omit_user_id and the poster would get the notification? |
| Re: Enable Notification to Self? |
| by Herko on 2005/10/17 19:59:59 there's probably a filter there somewhere that excludes the notification being sent to the uid of the poster. That's where you'll need to put your preference I guess... Herko (not a core dev, sorry can't help you much more) |
| Re: Enable Notification to Self? |
| by marook on 2005/10/17 19:58:49 On a related mindset, it might be a nice option to enable some notifications to Force email delivery to the user... ?!? no matter the prefered delivery option set in the User Account... |
| Re: Enable Notification to Self? |
| by marook on 2005/10/17 19:53:40 Well, the point is, I'm working on doing a 'listserver' function for the Forum (CBB) and it would be nice to be able to get your own posts in email copy. So, maybe the question should be: How do I hack/patch XOOPS so a Notification Type can send-to-self if the user wants too? The other big issue, of cource, is to get emails into CBB, but that's a different thread...
|
| Re: Enable Notification to Self? |
| by Herko on 2005/10/17 19:45:56 you mean get notifications even when you post yourself? Doesn't that defeat the point of notifications in the first place? Herko |