Active
Project:
Node Limit Number
Version:
6.x-2.0-beta2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Feb 2011 at 11:48 UTC
Updated:
24 Feb 2011 at 17:34 UTC
Hi there
Is it possible to create a rule to allow certain users to add more content than others based on username NOT user role?
Thanks!
Comments
Comment #1
weka commentedYes, limits can be applied to roles, users, dates, or anything that can be accessed using PHP.
See the issue #812966: Add documentation about conflicting limits about conflicts etc.
Comment #2
GlitchFreak commentedSo just to clarify, should I access the rule on the node via php or create the rule including the php inside it?
Thanks!
Comment #3
weka commentedI would create new rule and add PHP condition. There may be some examples in the issue queue.
Comment #4
GlitchFreak commentedApologies, can you please give me a quick example of how I would go about creating this rule? I'm not sure where to put the php.
Thanks!!
Comment #5
weka commentedWhile adding a condition to a rule use the option Execute custom PHP code.
Comment #6
GlitchFreak commentedThanks Weka.
I'm really stuck regarding how to structure the code.
I'm trying to limit all users but allow certain users to create more than one node. Would it be easier to allocate those specific users to a role and then base the node limit on the role? If so, could you maybe give me some code as a starting point please?
Much appreciated, thanks!
Comment #7
weka commentedSorry, I can't help you with that, maybe someone else will.