Closed (won't fix)
Project:
Node Limit
Version:
6.x-0.3
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
29 Apr 2009 at 17:45 UTC
Updated:
30 Jan 2013 at 22:39 UTC
If I want to limit a node creation with a time interval i can only select seconds, minutes, hours, days, weeks and years, but there is no month option.
Users pay a subscription and they are allowed to create 3 nodes of certain type per month. Each first of the month they are allowed to send three new nodes. Is there any way you can add the "month to the selection", and that it accurattely takes into consideration the 28, 30 and 31 lenght of the month?
Thanks for this module, its awesome!
Comments
Comment #1
davedelong commentedI originally left it out because of how _interval is working internally. It's storing the magnitude of the interval, and also the unit value (minute = 60, hour = 3600, etc). To get the interval, it just multiplies those two together.
However, I can put in a check for a "Month" option that can compute (on the fly) when the first of this month was and then use the time interval since then.
I'll try and work it into the next commit. =)
Dave
Comment #2
davedelong commentedComment #3
davedelong commentedI'm not sure this will be able to work quite how you've described. Users need to be able to specify an arbitrary number months (seconds, minutes, etc), so having the month interval only go back to the beginning of the current month doesn't quite work. What I can do, and which would work consistently, is to subtract X months from the current day. For example, if the user says "limit to 3 nodes of a certain type in the past 3 months", then this would count all nodes of a certain type since January 29th, 2009 (since today is April 29th, 2009).
Is that acceptable?
Dave
Comment #4
mairav commentedI don't know how does your module exactly work, but I need this. Users pay and anual subscription, and for that anual subscription they are allowed to create 3 new nodes of a certain type per month. When they reach the three nodes, they are not allowed to add a new one until the start of the new month, that's why I talked about the first day of each month.
I only need to set 1 month, never more that that. I could select 30 days, but the months have 28, 30 or 31 days, and it would be great to have the correct values.
One question... any selection I make now is counted from that moment and backwards? so if I select 30 días, it will count the nodes created the last 30 days... I think I understand the idea now. The problem is that I don't know if that will suit my customer.
Comment #5
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.