Attached is a straight upgrade from CVS 2.67.2.3 (module version 5.x-1.1) to support Drupal 6.
http://drupal.org/node/112657 has become a critical feature to my use of the module, so it's rolled into this patch, too.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | notify-6--1-190585.patch | 997 bytes | Standart |
| #11 | notify-6--1-190585.patch | 11.67 KB | Standart |
| #10 | notify-6--1-190585.patch | 9.65 KB | Standart |
| #9 | notify-6--1-190585.patch | 12.98 KB | Standart |
| notify-diff-2007-11-08-15-15-48.patch | 21.12 KB | deekayen |
Comments
Comment #1
webchickThis is a patch.
Comment #2
beginner commentedI will not be adding new features until the existing bugs are ironed out.
See:
http://drupal.org/node/159427
http://drupal.org/project/issues?projects=3270&categories=bug&states=8,14
http://drupal.org/project/issues?projects=3270&categories=bug&states=1,8...
Comment #3
zilla commentedhas this been or will it be rolled into a dev version for d6 installation (or a beta)???? i hope so!!
Comment #4
zilla commentedhi, sorry to pester if that's what this feels like, but it seems like there's been a raw port of this module to d6 (per above comments) including a rollup of a patch that wasn't yet committed per the other discussion.
is there any official d6 dev version coming to the cvs? sounds like there's still an issue queue to resolve for the 5x release...
i can't write code, but i'm happy to assist with documentation if there's a need (for new features, general editing, whatever)
Comment #5
Salvatore Montefusco commentedAfter applied the patch, users' notify settings are not saved.
The function notify_user_settings_form has to be upgraded to drupal 6:
Convert the following lines:
to:
So it works, but the code should be cleaned (addressing the case when $acc is NULL?).
Comment #6
Scott06 commentedThanks for the work.
Could anybody make a official package for easy uploading to drupal 6? Dev, beta or final?
Comment #7
beginner commentedsee #270847: Any reason why notify.module should not be obsoleted?
Comment #8
matt2000 commentedI've set up a dev snapshot for a D6 version based on this code. Please test & report back.
Comment #9
Standart commentedI don't think this should have been committed as it seems to be a quick and dirty patch. Also it contains a new feature which doesn't have anything to do with the issue.
Anyway, I fixed the changes my patch for #148454 was supposed to do and did some code clean-up.
There was also a bug which gave me errors on flushing the queue. In
_notify_send()the variable name "user" is used which seems to conflict with the global user as this global user is needed in Drupal 6 foruser_access('access content', $user). I registered the global user in the function and changed the name of the other user to "receiver".Attached is a patch agains 6.x-1.x-dev.
Comment #10
Standart commentedSo, this thing about the user/receiver is not really true. I think it should be sufficient to remove the second argument from
user_access('access content', $user)as it was in notify 5.x. I don't know why the original patch contains that argument but it fails because the local $user object doesn't contain the roles of the user that user_access needs. Without the argument it uses the global $user.Corrected patch attached.
Comment #11
Standart commentedDrupal 6 gives us
drupal_html_to_textwhich does everything that's needed to get plain text from HTML. It also includes wrapping, footnotes and even some basic formatting for <ol> and so on.Attached is a new patch which uses
drupal_html_to_textand removesnotify_entities_to_utf8,_notify_entity_to_utf8, and_notify_mail_urls.Comment #12
matt2000 commentedpatch applied. please test.
Comment #13
Standart commentedTwo minor corrections: I removed the $user parameter for all access checks in
_notify_send(). It worked both ways because the checks are cached but it should be corrected.Comment #14
matt2000 commentedComment #15
matt2000 commentedpatch committed
Comment #16
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.