I've looked everywhere for this and cannot find an answer.
I have a site where users have limits to the amount of nodes they can create based on there role. What I want is a way to print there current limit so they know how many more they have left. Like the example below...
You have created 13 nodes, your current limit is XX <--- this is where i can't figure out.
It needs to check there role and then the limit associated with that role. I already have it displaying there current node count. this is the last piece of code I need for this section of my site.
PLEASE HELP!!!
Comments
Comment #1
Orangetree commentedI see there has been no action on this request, but i am interested in the same thing. It would be nice to to be able to show users how many posts they have remaining. Please respond. Thank you
Comment #2
duaelfrIt is not planned today and seems complicated because you can have a lot of limits applying to you directly or not. At this moment, this feature do not have the priority for me.
If you have some ideas, if you want to provide a patch or if you want to sponsor this feature, you know how to.
Comment #3
duaelfrAt this point, this issue is going to be marked as won't fix. This is either not in the direction of the project, or too out of the project scope.
Comment #4
Anonymous (not verified) commentedNot sure about older versions, but in 7.x you can easily access the limit for a particular limit ID by using node_limit_load();
Here's what I'm using to get what I need: