Show limit when submitting a post
ahoeben - June 23, 2008 - 07:46
| Project: | Node Limit Number |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Description
The attached patch shows the limit for the current content type, as well as the number of posts of that type already made by the user. The patch also discerns between the author, and a site moderator editing a post.
Slightly changed the wording, as I felt the 'sorry' was not appropriate.

#1
#2
Thanks for the patch.
Doing a local test on XAMPP, I found this when creating a new node:
"You can't create any more items of this type, but you can edit this item."
The second part of the message ("you can edit") sounds a bit out of context in this situation (creating a new node).
Unfortunately I can't test this these weeks. Moving to a new house and lots of stuff related to this. I appreciate your work, but I don¡'t know when i'll be able to commit this.
#3
The 'you can edit' bit should only show when editing a node, not when posting a new node. I'll see if I can find out why you saw it on creating a new node.
#4
rerolled patch against 1.3
The 'You can't create new nodest..' message does not appear on new nodes creation, as it should be.
Also, i see twice the "This is item x out of a maximum number of x contentype items you may post." message on node edit, and is not styled..see output html below:
<div class="messages "><ul>
<li>This is item 1 out of a maximum number of 1 of Node items you may post.</li>
<li>This is item 1 out of a maximum number of 1 of Node items you may post.</li>
</ul>
</div>
<div class="messages status">Your <em> Node </em> has been created.</div>
#5
And it shows the message (btw, also twice) when just editing a post.
#6
Sorry, but there is no more active development on the Drupal 5 version.