1
costi
Adding auto-notifications when a news story is posted
  • 2003/12/15 21:14

  • costi

  • Just popping in

  • Posts: 15

  • Since: 2003/9/12


1. Backup your database.

2. Run this SQL code in MySQL or mysqladmin.
le="color: #000000"><?php insert into xoops_xoopsnotifications (not_modid, not_itemid, not_category, not_event, not_uid, not_mode) select 10 as not_modid, 0 as not_itemid, "global" as not_category, "new_story" as not_event, uid, 1 as not_mode from xoops_users;


3. Now, all users are notified by email when a news article is posted to your site.

Status of the hack: works for me.
http://trubadur.usr.ro/

2
fatman
Re: Adding auto-notifications when a news story is posted
  • 2003/12/19 5:18

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


this would be nice as an admin feature. I might try this and issolate it for certain user groups.

Would it be a bad idea to roll that idea into a function and give admin the ability to run it in a block below the notification window on articles/threads/ect..