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

ahoeben - June 23, 2008 - 07:46
AttachmentSize
limitnumber_limitremind.patch 3.04 KB

#2

nachenko - June 30, 2008 - 14:47

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

ahoeben - July 1, 2008 - 07:38

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

marcoBauli - February 22, 2009 - 17:27
Version:5.x-1.1-2» 5.x-1.x-dev

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>

AttachmentSize
limitnumber_limitremind_1-3.diff 2.23 KB

#5

ekrispin - January 26, 2009 - 15:44

And it shows the message (btw, also twice) when just editing a post.

#6

jdwfly - November 30, 2009 - 16:47
Status:needs review» won't fix

Sorry, but there is no more active development on the Drupal 5 version.

 
 

Drupal is a registered trademark of Dries Buytaert.