Closed (fixed)
Project:
Node Limit
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
21 Sep 2011 at 16:46 UTC
Updated:
23 May 2018 at 19:07 UTC
Jump to comment: Most recent
Comments
Comment #1
duaelfrIt is a good idea. I will take a look at this.
Comment #2
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 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 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 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 commentednot working in current dev