If is not in English Language (such as Portuguese), always report "Sorry, you've reached the maximum number of invitations." However, if you change the default language to English, works brilliant! Congrats for the module! I hope you can fix it soon.
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | invite_role.patch | 4.98 KB | andypost |
| #12 | invite_role.patch | 1.04 KB | andypost |
Comments
Comment #1
artscoop commentedIndeed, same message for fr-FR either.
I'm going to investigate, to see if I can suggest a quick fix.
Comment #2
artscoop commentedOk, I fixed it by creating a new Role, and by adding this role to the users.
The code seems buggy for the built-in roles.
Comment #3
edalcin commentedThanks! That was fast! This is a new release or, it's a round about?
Update: Humm..... Doesn't work for me. How do exactly you do the fix?
Comment #4
artscoop commentedHi,
To fix the bug,
I create a new user role (you can name it as you want, let's call it "Members" for this case)
(To do it, I go to Administer -> Users settings -> Roles and create the role)
Then you have to add proper permissions for the role, in order to send invitations.
Then you have to go to the user list, select the users you want to grant the power to send invites, and chose the option to add the Members role to the users.
Is it what you've done ?
Comment #5
edalcin commentedActually no. I've tried to define as the target role the new role I've created. The problem is that I want to every registerd user to be able to invite new users. Is there a way to set up this new role to all the registered user? Or any idea about a new release of this wonderful module?
Thanks for your attention!
Comment #6
artscoop commentedExcellent question :)
Looks like we have to do it manually until a new version is released.
Besides, I've found some code in the module that checks the number of invites a user can send. (This code is bugged and prevents an authenticated user to invite)
I can only remove the invites limit, but I can't control the number of invites allowed per user.
Maybe you'll want to see how it can be done ?
Comment #7
artscoop commentedAlso, you can use the Auto Assign Role module.
Comment #8
edalcin commented>> Maybe you'll want to see how it can be done ?
Definitively! If is not a problem to you. Will be great because that's the module that I've been dreamming for. I just migrate my site (www.ovelho.com - In portuguese), from XOOPS to Drupal and you module is the solution that I've been waiting for.
So, if you don't mind, I can use this round about until a new fixed release is out. Is this ok?
Thanks!
Comment #9
edalcin commented>> Maybe you'll want to see how it can be done ?
Still waiting.
Comment #10
altparty commentedThis error still exist (using the latest dev (6.x-2.x-dev)).
Comment #11
andypostThis caused by
invite_get_role_limit()which check $account->roles that are not translated against user_roles!!!Suppose better to convert this to role_id to remove confusion with translatable role names in multilingual sites
Comment #12
andypostHere is a first quickfix but I still wants to make patch to change role name to RID
Comment #13
andypostPatch with upgrade path from old settings. Needs review mostly with modules that can use old settings style.
Comment #14
andypostCurrent variable names does not working with multilingual sites bacause user_roles() always translate authenticated rolename
Comment #15
andypostDuplicate of #322748: Only administrator can send invitations on multilingual installation.