First of all, thanks for this excellent module.
I found a problem if using node limit for a node type in which form block is used for submissions. If the limit has been reached (in my test case, a 1 per 60 second interval), the submitter is blocked from even viewing the page containing the node add form block (in my case, the front page). It redirects to the node/add page, with the error "You can't create more content of type xyz".
So it appears that node limit somehow is evaluating the limit if the add node form is even being viewed, prior to actually even submitting the form?
This is a bit of a show stopper with form blocks. It would be ideal if the evaluation and limit error message only happened when attempting to submit the form. Is this something that's possible?
Comments
Comment #1
doublejosh CreditAttribution: doublejosh commentedHaving this same problem.
Again, show stopper.
Comment #2
doublejosh CreditAttribution: doublejosh commentedFor now I hacked the module to allow a quick check in the block PHP conditions.
Added to block...
Added to module...
What should really be done is to fix the
drupal_goto('node/add');
line in thenode_limitnumber_nodeapi()
function to be smart enough to hide the block not just redirect to thenode/add
pageComment #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.