could be possible add node action "create". I want that some user only can create new article if the have enough points.
thanks

Comments

BillyMG’s picture

Assigned: Unassigned » BillyMG
Priority: Normal » Minor

I'll have to think about that one. It's a bit of an odd choice, but it would probably fit in.

BillyMG’s picture

Status: Active » Needs review

I've added the functionality to the DEV branches for a create option.

esculcar’s picture

Thanks you very much I will test it...

Anonymous’s picture

It seems to work and I like the way the rules are managed all in one place. Your solution is much more user-friendly than that of "User points Nodes and Comments" module, because they scatter the configuration all over the content types. And they don't verify the user has enough userpoints by the way.

Would it be possible to deny access to node creation forms also before the form gets filled in? Otherwise users get annoyed.

BillyMG’s picture

Hmmm, that would require some additional effort. Seems a bit different since the rest of the methods need the form to be submitted first. I'm not sure, but hook_form_alter might be the solution. Let me think on it for a bit.

Anonymous’s picture

Yes, perhaps hook_form_alter and setting all fields to '#access' = false to disable the form. Then adding a new markup-field displaying the appropriate message.

hook_node_access is interesting too, but only if it's possible to display a message after denying access.

I'm currently too busy for supporting development of this module, but will consider participating later. Please keep doing your great job for another while.

BillyMG’s picture

Status: Needs review » Fixed

I'm going to mark this one as fixed since the original request is complete. If you wouldn't mind creating a new bug for your functionality request, I can address it separately.

Status: Fixed » Closed (fixed)

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

peterx’s picture

Follow on from request in #4: http://drupal.org/node/1661692