Postponed
Project:
Simplenews Private Roles
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2011 at 20:01 UTC
Updated:
21 Jun 2012 at 10:11 UTC
Hi,
I've installed the module, but it does not seem to show any effect. It does not matter which role I allow to subscribe to a newsletter, every role can subscribe every newsletter.
Is there anything else I have to do?
Which further information do you need?
Best regards,
iwasnet
Comments
Comment #1
klim_ commentedHi,
any effect after installation on my website, too.
Up
Comment #2
aacraig commentedAre you seeing this in 6.x or 7.x? I can replicate this problem in 7.x, and it has been fixed in the latest release.
Comment #3
gsquirrelAlso can't get this to work - all roles still see all newsletters. Am using version 6.x-1.2
Comment #4
aim2xl commentedI also had this issue on Drupal 6.22, Simplenews 6.x-1.3 with Simplenews Private Roles 6.x-1.2.
After installing and enabling Private Roles I cannot find any changes to any of the Simplenews pages. Finally spotted that I have "Content Access" module running and the role I was using (Not super admin) had not been granted the "manage private simplenews roles" Permission. As soon as this was enabled everything seems to work.
HTH..................
Comment #5
gsquirrelThanks but I don't think it is quite the same issue. I have the permissions set for simplenews private roles and the settings are there so you can choose which roles you want to access each list, the problem is that it has no effect, i.e. as normal authenticated user you can still see all the newsletters when looking at your "my newsletters" page.
Comment #6
gsquirrelMaybe I am misunderstanding the module but the form I wanted to change has different form id to the one that is being altered by this module. If I change the form alter function to the user profile form the module seems to work as I expected it to originally.
In simplenews_private_roles.module I changed line 26 from
function simplenews_private_roles_form_simplenews_subscription_manager_form_alter(&$form, &$form_state) {
to
function simplenews_private_roles_form_user_profile_form_alter(&$form, &$form_state) {
Comment #7
aim2xl commentedgsquirrel,
You are right on both counts, I didn't check carefully enough the first time. All users were still able to select any newsletter in their "my newsletters" page.
After applying your code change I get the expected behavior, i.e. the "my newsletters" page only offers users the newsletters I want them to have based on their roles.
Comment #8
aacraig commentedThis has been fixed in 7.x-1.3. I'll apply your change to 6.x and get a new release out soon.
Comment #9
bserem commentedany update on the fix?
thanks in advance
Comment #10
xaris.tsimpouris commentedChanged the line 42 in file .module file, from
to
and problem solved for me!
EDIT: Sorry for the duplicate, made the same thing as http://drupal.org/node/1203078#comment-4798494 but I saw it afterwards.
Comment #11
iwasnet commentedhttp://drupal.org/node/1203078#comment-4798494 worked for me too, thank you.
i had an ugly error in the user/x/edit tab so i changed the code in the simplenews_private_roles.module like this:
and
maybe this is useful for someone.
best regards,
iwasnet
Comment #12
inascon commentedBy changing the name of the function
simplenews_subscription_manager_form, like in #6, #10, or #11, you solve one and create another problem, because the form on /newsletter/subscriptions (simplenews_subscription_manager_form) will then not work properly.To solve this issues I've added the following function to the .module:
HTH
Comment #13
aacraig commentedI've just released 6.x-1.3, which fixes this.
Comment #14
lavamind commentedI installed 6.x-1.3 (Drupal 6.24), but on the newsletter/subscriptions page, all newsletters are still available as an anonymous user, even though some of them require "authenticated user" role.
Comment #15
aacraig commented@lavamind, could you post the exact URL of the page you see the newsletters on? There are a few forms that show the newsletter choices, and it's likely I've missed one.
Comment #16
lavamind commented@aacraig: http://mydomain.com/newsletter/subscriptions
Comment #17
aacraig commentedDue to a major project I will be managing, I won't be able to support the 6.x branch of this module.
I am happy to take on a co-maintainer if someone wants to maintain the 6.x branch, but otherwise my only suggestion is to upgrade to Drupal 7, which I will continue to support.