[EDIT by kbahey to add more info.]
Need a way to allow users to create nodes only when they have points.
In effect, this can be used to create a pay-to-publish site where users pay real money to get a certain number of points, then use those points for creating nodes.
What is needed is a mechanism to forbid node creation if the number of points is less than what is needed.
Perhaps using hook_form_alter() and checking the $form_id argument ($node->type .'_node_form') is the way to do this?
Comments
Comment #1
marcoBauli commentedanybody knows if this works in version 2.0 (4.7, 5.0)? i'm actually looking for the same thing. Does Action.module help someway? thanks
Comment #2
jredding commentedComment #3
lameei commented+1 here
Comment #4
MJH commentedI am also interested in that functionality to let users pay for nodes they create:
they can buy points through ubercart and for each node they create, 1 point is removed. That works so far.
But of course, they should not be able to post nodes if they have 0 points or less ;)
So any chance to see this in User Points?
Comment #5
kbahey commentedThis issue is set to wont fix because it will never be a feature of the Userpoints API.
There is already an ubercart store credit module, which allows you to use points as a currency to pay for things in the store.
Combine that with http://www.ubercart.org/forum/bounties/7878/pay_node_ubercart and you get what you want.
Other modules that can be used as a basis are http://drupal.org/project/pay2publish and http://drupal.org/project/paypernode
Comment #6
BillyMG commentedThis would be solved in another module, namely this one: http://drupal.org/project/userpoints_node_action. This module allows you to make rules for users to pay for node actions like publishing. I think this should match what you need, and doesn't need to be part of the built-in Userpoints API.