Posted by mkdi on March 7, 2008 at 1:20am
Hi all,
I am using nodeprofile, and nodefamily modules in conjunction with a few more modules. One of my task was to restrict the number of nodes a user can create, for example a story node. But when i restrict general users of my site to 'say' 5 nodes per user, i as administrator am also restricted to the same limit. Is there a work around it, any help ll be greatly appreciated.
Comments
how are you restricting
how are you restricting them?
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
Thanks for the reply,
Thank v.much for a prompt reply, by having the node family module activated, i go to my content type in "Administer » Content management » Content types>>story" and in there i type 5 in the box, "Maximum population: [5 ]Maximum number of nodes of this content type per user. Enter 0 for no limit". thats how i restrict them to only 5 story nodes per user, but at the same time, i restrict myself as well as administrator.
a quick search on the issue
a quick search on the issue queue resulted in this post User 1 should not be limited.
it looks as if you can avoid the problem by setting the author on the nodes created by user 1 to "anonymous".
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
That works.
Thanks alot, it works, but in the access control area of my site, i do not give anonymous role a permission to create story content, so i am really not sure whether it will generate any errors or conflicts later on with the access permissions system. But i guess if this is my only option then i have to take it. Thanks once again.
You're welcome. And I
You're welcome. And I thought about that... and it's actually better that anons don't have access (if they did, you couldn't differentiate between admin posts and true anon posts). I don't particularly like it as a "solution" though, it's more of a work around. It's also not going to work for someone that wants to keep posts authored by "admin" (or whatever the username for user 1 is) as admin for theming purposes. But at least it solves your problem for now.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
solution
This exactly what the module Node - limit Number does.
---
http://www.openify.com - Drupal Services in Israel
---
http://www.openify.com - Drupal Services in Israel
The Node Limit Number project
The Node Limit Number project has been resurrected and many new features have been added. This module now integrates with Rules and the limits are very easy to create. Head over to the Node Limit Number project and grab the latest development copy. The 2.0 release will be out soon for Drupal 6.
Limit nodes for anonymous users ?
Limit nodes for anonymous users ?
Hi,
Do you know how to limit nodes that can create anonymous users ?
I would like to use this function on ads/classified website and I don't want to force users to register to publish their ads.
Thanks for help.