Closed (fixed)
Project:
Simplenews Roles
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2008 at 19:07 UTC
Updated:
11 Aug 2009 at 09:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
sutharsan commentedattachment is missing
Comment #2
Jorrit commentedI'm sorry for that
Comment #3
JuLearn commentedThanks a lot to Jorrit!
Trying to activate, I get the message
"This version is incompatible with the 6.5 version of Drupal core"Any hints?
Comment #4
Jorrit commentedYou have to edit the info file as well, add something like core = 6.x. I don't know exactly anymore, look in other info files.
Comment #5
JuLearn commentedYes, I edited simplenews_roles.info. But not enough. With a reduction to
it is running now. I am going to test it.
Comment #6
Babalu commentedsubscribing
Comment #7
zilla commentedis this converted version working? possible to move to project page for more testing?
Comment #8
trophaeum commentedsubscribing
Comment #9
kwgossett commentedsubscribing
Comment #10
rhache commentedsubscribing
Comment #11
kenorb commented+1
Comment #12
tobiass commentedsubscribing
Comment #13
sgdev commentedI attempted to use your module. If I sign on as a user, go to the user's User Profile > My Newsletters, and attempt to unsubscribe from the newsletter, I get the following error messages:
Comment #14
Valeratal commentedsubscribing
Comment #15
eff_shaped commentedsubscribing
Comment #16
axel pressbutton commentedAlso subscribing
Comment #17
encho commentedSubscribe
Comment #18
iaminawe commentedsubscribe
Comment #19
KhaledBlah commented@#13, ron_s:
This error occurs because there is no checking whether the "$edit" array actually has a "roles" array which it might have gotten from the form being used.
I have had another problem with the "simplews_newsletter_footer" theme function. Appearantly there already is such a function in simplenews and simplenews_roles tries to re-register the function. I have simply renamed the function "simplenews_roles_newsletter_footer" which got rid of my problem. However I have not tested yet whether this theme function is absolutely necessary.
Also, I have added a call to "simplenews_unsubscribe_user" for those users that don't have a matching role id for the current subscription. I know that this might be redundant because a sync is made before a newsletter is sent. However, this makes sure that when you manually remove a role from a user the subscription for this user will be deleted.
I have done two identical patch files, the one expects the filename to be "simplenews_roles.module.txt" (like uploaded above) while the other expects it to be "simplenews_roles.module" (like it might be in an installed module)
I have not done extensive testing yet so please be sure to use this at your own risk!
Feedback would be appreciated! I also plan on adding an opt-out feature so that once you opted out you won't get subscribed again even if you do have the specific role(s).
Comment #20
watersevenub commented"Feedback would be appreciated! I also plan on adding an opt-out feature so that once you opted out you won't get subscribed again even if you do have the specific role(s)."
Right now, when a user opts out, what action will trigger his re-subscription? Ot the newsletter just gets sent to him anyway?
(Could you post an updated module with patches applied? Any ETA for the feature above mentioned? Thank you)
Comment #21
vacilando commentedSubscribing
Comment #22
joachim commentedChanging status + subscribing.
Comment #23
joachim commentedWorks for me.
Here is the complete module from #2 with the patch from #19 and my changes:
There is no point in caching a variable_get. All variables are already cached by Drupal core.
No idea what is going on in simplenews_roles_nodeapi:
// Strip out non-Simplenews terms from taxonomy for posterity.
Added some missing function doc headers and made a few code style cleanups too :)
Comment #24
joachim commentedI've been given maintainership of this module, so I've gone ahead and committed the above (with a slight fix in my version of the info file -- I messed up the dependencies line!)
Thank you everybody for your hard work!
This should be available soon as a -dev version. Please test this further and report any bugs!
Comment #25
joachim commentedBTW, @BSLFE: if you're still interested in working on an opt-out feature, see #331080: unsubscribe reverts back after cron run.
Comment #26
eff_shaped commented@joachim - THANK YOU!
Comment #27
Jorrit commentedThanks :) Also thanks for all the people who took the effort to publish their patches.