Comments

DuaelFr’s picture

Status: Active » Needs work

It is a good idea. I will take a look at this.

Donatoo’s picture

Suscribe. Any progress to this issue?

DuaelFr’s picture

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.

DuaelFr’s picture

Assigned: Unassigned » DuaelFr
Status: Needs work » Needs review

A 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.

dougsap’s picture

Status: Needs review » Reviewed & tested by the community

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.

DuaelFr’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Thank you Doug

iRex’s picture

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".

DuaelFr’s picture

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.

deen82’s picture

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.

VasyOK’s picture

Issue summary: View changes

not working in current dev