1
XOOPS Version: 2.2.3
Module Name/Version: sytem
PHP Version: 4.3.5
MySQL Version: 4.0.11a-gamma
Web Server Software (Apache/IIS/Other): Apache
Operating System: Linux
I would like to have an "Announcements" forum where only certain users can post, but ALL users get emailed the posts.
(I know I could use the "email user" function, but I would like to have a record of all announcements on the website. Are there any other alternatives?)
I see that the table xoops_xoopsnotifications has an entry for each notification. I know what I would like the table to contain (for each user: not_modid=4, not_itemid=6, not_category=forum, not_event=new_fullpost, not_mode=0) Am I right that not_mode is "via email" when set to 0?
I've also noticed that there are functions "subscribe" and "unsubscribe" which get called in notification_update.php when a user changed his notifications, and which add/remove notifications from the table.
I imagine it wouldn't be terribly hard to do a PHP script:
for each user in database {
subscribe(forum 6 full_post etc)
}
(or maybe there's a way of using SQL)
OR maybe a row could be inserted in the table when a user is created?
BUT...... I'm scared of messing it up! Has anyone done this before?
I'd appreciate any help! Tell me if you need more information. Thank you.