Closed (won't fix)
Project:
Notify
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2005 at 20:10 UTC
Updated:
12 Jan 2013 at 18:59 UTC
Jump to comment: Most recent file
Comments
Comment #1
onionweb commentedI added an opt-in during registration checkbox to notify. Just a single checkbox that flips the master switch and content options to enabled.
The way I did it was to add the hook user function to notify, which puts serialized data in the user table: "notify_status"
Then I wrote another function which does a left join on the users and the notify tables, grabs all the uids that are not already present in the notify table, checks them in users for "notify_status" and, if the status is present, adds their records to the notify table. This function is triggered by notify_cron.
So, when cron runs, anybody who opted in during registration gets added to notify. If they've already changed their notify settings before cron runs, they are ignored. Maybe there's a better way to do this. Any suggestions?
Also, I couldn't figure out how to remove the notify switch from the user table after it has been checked, although that really doesn't affect the functionality.
Comment #2
onionweb commentedMaybe there's a better way to do this with far less code:
Comment #3
onionweb commentedThis patch does several things. Some of the code was inspired by this: http://drupal.org/node/28040
1. admin interface:
a. limit notifications by node type;
b. Allow simple opt-in checkbox in user registration form;
1. If simple checkbox is enabled, set the default values for notifications enabled via user registration checkbox. Users can always change them later.
2. user interface
a. checkbox visible in user registration form.
This is a patch against 4.6.
Comment #4
onionweb commentedhere's screenshot of admin/notify
Comment #5
kweisblatt commentedThis is great! Thanks for your work!
I am trying to allow users to be notified when a certain field in cck matched theirs. For example, I have cck fields: street address, city, state, zip. If they live in NY, it would be useful if they could be notified everytime someone in NY creates a page. (I have tried subsciptions, but that only uses categories.)
Comment #6
beginner commentedpatch is old.
Comment #7
nevmoor commentedWhat about for sites that add the notify module AFTER there are current members? Is there a way to add an administrative setting to turn this on at install? I just don't want to have to do it for every member by hand......
Comment #8
mdowsett commentedany idea if this patch works for v5?
nevmoor (#7) - if you are using v5, see here (http://drupal.org/node/36163) for getting existing users' notifications turned on....it worked for me.
Comment #9
gisleVersion 4 and 5 is no longer supported, and since nobody has worked on this in 5.5 years, it is not likely to happen now. In Drupal 6 and Drupal 7, there is a tab that lets users opt in during registration. If you want this, please upgrade to Drupal 6 or Drupal 7.