18
hello,
This is my hack:
1. Added these in xoops_version.php
$modversion['notification']['category'][1]['name'] = 'agenda';
$modversion['notification']['category'][1]['title'] = "cat_title";
$modversion['notification']['category'][1]['description'] = "cat_desc";
$modversion['notification']['category'][1]['subscribe_from'] = array('index.php');
$modversion['notification']['event'][1]['name'] = 'add_event';
$modversion['notification']['event'][1]['category'] = 'global';
$modversion['notification']['event'][1]['title'] = "event_title";
$modversion['notification']['event'][1]['caption'] = "event_caption";
$modversion['notification']['event'][1]['description'] = "event_desc";
$modversion['notification']['event'][1]['mail_template'] = 'global_newcategory_notify';
$modversion['notification']['event'][1]['mail_subject'] = "event_mailsub";
2. Copied notification_update.php from newsbb to module/agendax directory. Also copy
modules/news/language/english/mail_template/global_newcategory_notify.tpl to
modules/agendax/language/english/mail_template/global_newcategory_notify.tpl
If directory doesn't exist, create it.
You should change the file global_newcategory_notify.tpl that u copied accordingly as this is the mail body.
3. Add the line <{include file='db:system_notification_select.html'}> in modules/agendax/templates/agendax_flatview.html
4. Added lines below in modules/agendax/index.php in (case"addevent")
$notification_handler =& xoops_gethandler('notification');
$tags=array();
$notification_handler->triggerEvent('agenda', 0, 'add_event', $tags);
Now try adding an event using another user. After you subscribed it with the admin user. Now log in as the admin user and check your inbox.
Stewart