Hello,
I install node limit 6.x-3.0 and i limited the node limit to 1 for authenticated role and when i tried to upload the content its showing "you cant create a content" as this was my 1st node creation.After i applied that limit to other role say general role than its working.I think the node limit module is not working with authenticated role, can anyone one help me regarding this.
Regards
Abhishek
Comments
Comment #1
abhishek sawant commentedHello,
Still no response i can use auto assign role module but this will not do any good for me as i am using logintoboggan module to validate roles any help will b highly appreciated.
Comment #2
sabyrodrigues commentedI am facing the same problem as I am too using LoginToBaggon to validate roles
Comment #3
sabyrodrigues commentedI found as per http://drupal.org/node/457426 Authenticated node limits overwrite other role limits ... In short Node Limit Module Does not work with Authenticated Role.
I am trying this.
LoginToBoggan Module Settings :: I set a non authenticated role called G5 in LoginToBoggan module. And Immediate login on filling the registration form
When the user Registers he is assigned a non authenticated role G5 with minimum permissions. Once he validates his account he is assigned the Authenticated Role with the desired permissions.
For this functionality to work we cannot use AutoAssign Role Module as this will conflict with LoginToBoggan.
And Auto Assign Role do not give you the immediate login Facility.
So a Solution to this is If LoginToBoggan assigns any other role apart from Authenticated Role e.g. call it G10 with all permissions of Authenticated User. This can solve the Node Limit Module issue as mentioned in line 1.
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
I am trying this
In the loggintobaggon.module file the it uses DRUPAL_AUTHENTICATED_RID to assign the role to an Authenticated ID.
DRUPAL_AUTHENTICATED_RID is defined in /includes/bootstrap.inc
\\
bootstrap.inc
\\
--line 105
/**
* Role ID for authenticated users; should match what's in the "role" table.
*/
define('DRUPAL_AUTHENTICATED_RID', 2);
[ NOTE :: Please Do this carefully with proper backup as you are messing up with the includes files ]
Add this ::
/**
* Role ID for general 10 users; should match what's in the "role" table.
*/
define('DRUPAL_GENERAL_RID', 3);
Check the rid for the role in the Roles table and make sure the role is defined
AUTHENTICATED has rid 2
My defined G10 has rid 3
\\
loggintobaggon.module
\\
Replace all the defined DRUPAL_AUTHENTICATED_RID to DRUPAL_GENERAL_RID
Comment #4
sabyrodrigues commentedNO problems so far after implementing the changes in loggintobaggon.module and /includes/bootstrap.inc
Comment #5
sabyrodrigues commentedOne Big Problem
When the user validates the link after he register, This message is seen ... The Authentication link have already been used and can be used only once.
So he cannot validate his account. As per loggintobaggon the role is assigned only when the Authentication Link Validates
Comment #6
sabyrodrigues commentedSo the role remains on the nonauthenticated G5
Comment #7
sabyrodrigues commentedDrupal Authentication link only works if the role to be changed is Authenticated.... it does not work with other roles once.
So I reverted all the changes made in loggintobaggon.module and /includes/bootstrap.inc
Comment #8
sabyrodrigues commentedA Temporary Solution
-----------------------------
I Integrated the Rules module for the above functionality mentioned in #3 to work.
When the user Registers he is assigned a Non Authenticated Role G5 by LoginToBaggon.
When he validates his link he is assigned the Authenticated Role by LoginToBaggon and gets logged in by default.
A block is exposed for Authenticated Users,
Your Email Id is now Authenticated. Please logout and login again to make use of all functionality.
------------
RULE
------------
When the user logs
---------------
Condition
---------------
User has a Role Authenticated.
-----------------
Action
-----------------
Assign a Role G10 (with all permissions.)
------------------------------------------------------------------------------------------------------------------------
By using this the Authenticated user role moves out of the picture. G10 Role is assigned to all validated members. And Node Limit Module works great
Any Other Solution will be appretiated...
Comment #9
cyberswat commentedsure would appreciate it if some of you LoginToboggan users could chime in on #317108: Auto Assign Role clobbers other set roles on insert ... it might be ... helpful
Comment #10
duaelfr