Hello!

I have a project coming up where I'll need this functionality (as well as at the user level). Do you have plans for a Drupal 6 port ? If not, I'd gladly help put one together once my project gets rolling.

Comments

nachenko’s picture

Sorry, I'm not working on this at this moment.

Of course any your help would be greatly appreciated.

I'm more interested in adding per-user limits feature. I think I'll add it someday this summer when I take on a big project this module was written for.

I also should add a hook to user page, so every user can see it's own limits in their user page.

If i port this to Drupal 6, it will be AFTER adding this feature.

ddyrr’s picture

I actually did a patch for this for Drupal 6, but was not able to create the install file. It was the first install file I had attempted for Drupal 6, and it just doesn't work. I ended up doing a hack and creating it by hand just so I could test it out on my new site, and everything else seems to work great. If someone else can do the install file, then we can put the two together.

meba’s picture

Just post the patch please and somebody will do the instlal file!

Thanks

jmaties’s picture

I subscribe

finex’s picture

I'm interested to the D6 port too.

daadmark’s picture

Hi there, if all goes well we will have a developer starting shortly (1-2 weeks) with reasonable PHP and some Drupal experience. Among their tasks will be to assist in upgrading (if possible) certain modules we require before upgrading some sites to D6.

Can you provide any update on how the upgrade is going and possibly where our developer could assist.

The current modules we're looking to get upgraded are below in order of importance to us.

http://drupal.org/project/matrix
http://drupal.org/project/ad
http://drupal.org/project/node_limitnumber
http://drupal.org/project/remember_me
http://drupal.org/project/taxonomy_batch_operations

Obviously if things are going well and no assistance is required then that's great news.

Thanks

joachim’s picture

subscribing.

ddyrr, could you post the patch or the your version of the updated module file? I can look at the install file as I need this module for D6.

ddyrr’s picture

StatusFileSize
new13.87 KB

I'm so sorry I didn't read this thread for all this time! I've been so busy, and never did get around to the install file. I've since learned how to do it, but don't have time, so I'll just upload what I have here. The module file itself works, but the other files need to be looked at and possibly updated (I know code, but don't really know how the Drupal community does things). :) Here ya go.

ddyrr’s picture

Correction: I just realized there are a lot of other files in there. What I should probably say is that everything works except the install file. You need to either fix the install file, or install the table shown in the schema by hand. Yes, I did the first part, which was to do the hook_schema, but hasn't been tested since I didn't do the few lines that tell it to actually install. It should be pretty simple to finish it off.

Muskwa’s picture

Can anybody confirm #8 is working well or add the install pls?

netbear’s picture

To install properly you need to add this code to node_limitnumber.INSTALL file

/**
 * Implementation of hook_install().
 */
function node_limitnumber_rules_install() {
  drupal_install_schema('node_limitnumber_rules');
}

/**
 * Implementation of hook_uninstall().
 */
function node_limitnumber_uninstall() {
  drupal_uninstall_schema('node_limitnumber_rules');
}
Rosamunda’s picture

subscribing!

bomarmonk’s picture

A bit of a problem with the above code: user warning: Table 'programreview.node_limitnumber_rules' doesn't exist query: SELECT * FROM node_limitnumber_rules WHERE class = 'role' in /home/.muckl/mysite.org/sites/all/modules/node_limitnumber/node_limitnumber.inc on line 132.

bomarmonk’s picture

By the way, this error happens when I access the page for the node limit settings in admin.

jcmarco’s picture

Status: Active » Needs review
StatusFileSize
new13.84 KB

I found this module very interesting as it allows to manage quotes by role.

I have been fixing the installation and also made some coder clean up from #8.

It works fine with Drupal 6.9, and IMHO the maintainer could realease this version as 6.x-dev or also as 6.x-1.0-beta.

After that there could be some new features developed:
- customization of error message/redirection page when a limit is reached (with rules integration is not really needed)
- Leave some log about limit reached (same with rules)
- Integration with rules to trigger an event when the limit is reached in some user in order to take actions (as show a message/redirect to a page/send an email/change role..)

Rosamunda’s picture

Going to test it... THANKS!!

Could an Organic Groups integration be possible?
For example: The user can create only one node of the forum type per organic group.
Or this can be achieved with rules?

Thanks again for your help with D6 version!!!

sokrplare’s picture

Subscribing!

Let us know how the test goes Rosamunda!

.:Joshua
::www.covenantdesign.com

reinholdlange’s picture

Subscribing - thank you!

Rosamunda’s picture

Title: Drupal 6 port... » Node - Limit Nomber: Drupal 6 port.

Working like a charm for me!

Rosamunda’s picture

Title: Node - Limit Nomber: Drupal 6 port. » Node - Limit Number: Drupal 6 port.
mairav’s picture

JCMARCO, I installed your fixed version of this module for Drupal 6.9 (#15) and It's working really nice by now. The only problem I found is when i try to modify the limit of a created rule.

If I assigned a 5 node limit to any of my roles, and then I decide to change it for 4 nodes and press the Modify button it says: "Limit field is required.". It's like the module believes I'm trying the create a new rule instead of modifying and old one.

Sorry for my English, and really thanks for the fixes. I'll be expecting the new features.

jcmarco’s picture

StatusFileSize
new13.87 KB

#mairav I have been checking your comments, and the module has a really messy form.
I fixed the update process and add a limit validation for creation but not for modification.
(the original field #validate functions are not working)

jdwfly’s picture

I just put #22 in my site and it works for me. Thanks

mairav’s picture

#jcmarco thanks for the fixes, now I can modify the limit of nodes a role can create.
I really appreciate your work. I hope this can be added as a version for drupal 6.x

Rosamunda’s picture

Me too.
I´m still testing, and everything is going smooth so far!

Zoologico’s picture

Subscribing.

netentropy’s picture

testing tonight will let yall know how it goes

can we get this committed as a developer version

nachenko’s picture

Status: Needs review » Closed (fixed)

For those that are looking for a D6 version of this module, check this:

http://drupal.org/project/node_limit

Written by davedelong. Hope it helps.

timpiche’s picture

This module works very well under Drupal 6.12. I have tested it in all scenarios on my site.

Thank you for the port to D6!!

liliplanet’s picture

Wonderful, thank you! Just to mention that there is a time-based limit for 5.-x at http://drupal.org/node/260055

Perhaps this can be included in 6.-x?

TapSkill’s picture

Status: Closed (fixed) » Needs review

Node Limit doesn't allow each user to have their own limit. This module, Node Limitnumber, seems to offer such functionality. I have not tested it, mind you.

altparty’s picture

We want each of our members to submit a maximum of 3 pictures in a photo competition. For this #22 appears to be the right solution. We hope this module will have a final D6 version soon.

jdwfly’s picture

Status: Needs review » Fixed

I believe that the maintainer has given me cvs access to this module. I already set up a drupal 6 dev package and barring any bugs with that there will be a 1.0 release very soon.

mairav’s picture

@jdwfly, I installed this version for a while, but due to the lack of support of the maintainer, I moved to node limit, but that module is not making any progress.

It would be great if you can include this features in the drupal 6 version.

- we can assign limits by role that can be applyed to each user of that role (each user can creat 5 nodes of certain type) or to the complete role ( the 5 node limit is between all the nodes created by the users that belong to that role), for example, making an "inclusive" checkbox that makes the second option work.
- we can assign limits by content type with the posibility of multiple content type selection, with an "inclusive" checkbox, so we can define if the specified limit is for each content type or shared by them.
- we can assign time frame limits, for example, create x nodes in one month.
- we can combine all of this limits in one, for example. I create a rule to limit my painters to create 5 nodes of news OR paintings (the inclusive checkbox unchecked) in one month.
- define if the more restrictive o permissive rule is applyed, or order the rules and that the order defines which rule wins.
- that we can define in a multilanguage site if the translations count as a node or not.
- that we can see somewhere (as admins or the user trying to create nodes) how many left nodes can a user create.

This is what I remember now that would be helpful, for me and for a lot of people that is waiting for some good module to limit nodes (as this was just for drupal 5 and node_limit is almost abandoned).

If you think you can make this, I offer myself to test it, and help you remove bugs. In that case please tell me which of this features you think you can make work, and how long would it take. You can contact me through the contact form.

Thanks for taking a drupal 6 version to make a release! (sorry for my english )

blueblade’s picture

Hi All,

I am a little confused. Is the file submitted by jcmarco (Thread #22) working for Drupal 6? Please let me know.

Thanks.

BB

mairav’s picture

Yes, it was working when I tried it last time. It had some problems, but as I understood, @jdwfly has gain cvs access and will launch and official drupal 6 release with bug fixes.

blueblade’s picture

Thanks mairav =D thats a great news!! I hope the official version will be up soon. Do you have any ideas when?

00110000’s picture

Hello all and thanks for pointing me in this direction mairav.

I'd be glad to help test out in anyway possible, as I definitely need a module with this capability to administer on specific user roles.

Will be keeping a close eye on this.

Thank you.

blueblade’s picture

Hi all,

Are you guys planning to add time interval for each limit for Node Limit Number for Drupal 6?

I personally think it makes more sense to maintain Node Limits module (http://drupal.org/project/node_limit) than node limitnumber module (http://drupal.org/project/node_limitnumber) because Node Limits does do a lot more than Node Limit Number and is actually working quite well even now. It just needs to be updated. What do you guys think?

BB

jdwfly’s picture

From what node_limit says on the project page it only does one more thing (per user limits) than this module. Not to mention the fact that it is no longer updated and I only have cvs access to this module.

I'll be working on new features, so keep the ideas coming. Someone should start a new issue with features requests instead of using this one.

blueblade’s picture

Hi jdwfly,

There are at least two things we can't do with Node Limit Number: Limit by user and time interval for each limit; both are very useful. The second one is especially important for me because my site can't live without being able to set time interval for each limit.

The only problem I have with Node Limit module right now is that the list of limit I created does not sort well alphabetically (bugs?) and it makes my job difficult because I have a very long list for different user roles and content types. The other thing is that the list does not show all details of the limits we set; we have to go to each page or each limit to check for mistakes.

I like how Node Limit Number allows us to set limits without having to go to a different page every single time. It would be real great if it allow us to see the created list by User Roles, Content Types etc too in the future (for example: 'Show Limits or User Role XYZ only').

I hope you will include at those two functions mentioned above in the new Node Limit Number module, especially time interval. Thank you for your work!! =)

BB

mairav’s picture

Here is the Feature request for Drupal 6. You can add more there: http://drupal.org/node/586064
As jdwfly said, node_limit is not being mantained for month, and its creator its not answering the issues or mails through the contact form.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.