Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
None yet, I am quite busy for the moment but I do not forget this project.
If somebody have the time to work on this, fell free to drop a patch or ask me for a maintainer access.
In the current Development (7.x-1.x-dev) and Recommended Releases (7.x-1.0-alpha3) the node/add links do not display if the Node Limit restriction has been reached.
The original request made reference to either hiding the link OR displaying a message that the user could no longer create another node. I am interested in the second option. Here's my use case to illustrate what I would like to do:-
Each authorized use can create x number of nodes (the link would be enabled and have a specific text, e.g., "Apply Here"). When the limit is reached I'd like the link to be disabled and the text changed to, say, "You have already applied".
Please open another issue to ask for a new feature but know that I am very busy and I do not have the time to extend this module.
If you know how to, you can have a look at the 7.x-1.x-message branch which contains a work in progress to allow admins to define a custom error message or a custom redirection when the user tries to create a node over his limit.
Subscribing to this as well (running the latest dev on Drupal 7). Trying this module out and same as OP, I'm looking for a way to either automatically hide the content type's node/add link from showing up in any menu, or for the error messages to work. I can see that the error messages are part of the module but they never show up on my site when a user tries to add another node after reaching their limit.
I seem to remember this was working some time late last year (2012) and only recently I've noticed that the node/add link doesn't disappear automatically. Is there a particular build of this module that allowed the node/add link to disappear?
EDIT: so it looks like this was my own mistake here. The menu I had the node/add link displayed on had the absolute URL (http://www.mywebsite.com/node/add) instead of a relative URL (node/add). As a result, the Node Limits module wasn't removing the link when the user had reached their limitation. Changing the URL on the menu back to relative solved the problem. I must have re-done the menu at some point in the past and not thought twice about it till now.
Comments
Comment #1
DuaelFrIt is a good idea. I will take a look at this.
Comment #2
Donatoo CreditAttribution: Donatoo commentedSuscribe. Any progress to this issue?
Comment #3
DuaelFrNone yet, I am quite busy for the moment but I do not forget this project.
If somebody have the time to work on this, fell free to drop a patch or ask me for a maintainer access.
Comment #4
DuaelFrA new commit has been pushed on the dev branch for this functionnality
http://drupalcode.org/project/node_limit.git/commit/72637b7
Remember to empty Drupal's cache to see improvements.
Comment #5
dougsap CreditAttribution: dougsap commentedIn the current Development (7.x-1.x-dev) and Recommended Releases (7.x-1.0-alpha3) the node/add links do not display if the Node Limit restriction has been reached.
Comment #6
DuaelFrThank you Doug
Comment #7
iRex CreditAttribution: iRex commentedThe original request made reference to either hiding the link OR displaying a message that the user could no longer create another node. I am interested in the second option. Here's my use case to illustrate what I would like to do:-
Each authorized use can create x number of nodes (the link would be enabled and have a specific text, e.g., "Apply Here"). When the limit is reached I'd like the link to be disabled and the text changed to, say, "You have already applied".
Comment #8
DuaelFrPlease open another issue to ask for a new feature but know that I am very busy and I do not have the time to extend this module.
If you know how to, you can have a look at the 7.x-1.x-message branch which contains a work in progress to allow admins to define a custom error message or a custom redirection when the user tries to create a node over his limit.
Comment #9
deen82 CreditAttribution: deen82 commentedSubscribing to this as well (running the latest dev on Drupal 7). Trying this module out and same as OP, I'm looking for a way to either automatically hide the content type's node/add link from showing up in any menu, or for the error messages to work. I can see that the error messages are part of the module but they never show up on my site when a user tries to add another node after reaching their limit.
I seem to remember this was working some time late last year (2012) and only recently I've noticed that the node/add link doesn't disappear automatically. Is there a particular build of this module that allowed the node/add link to disappear?
EDIT: so it looks like this was my own mistake here. The menu I had the node/add link displayed on had the absolute URL (http://www.mywebsite.com/node/add) instead of a relative URL (node/add). As a result, the Node Limits module wasn't removing the link when the user had reached their limitation. Changing the URL on the menu back to relative solved the problem. I must have re-done the menu at some point in the past and not thought twice about it till now.
Comment #10
VasyOK CreditAttribution: VasyOK commentednot working in current dev