By chiggsy on
I have content that is members only. I've assigned it to a category, and allowed only my "members" role to have access to that content ( using the taxonomy_access module ) . So far so good. I've enabled the ecommerce module. Now all i need to do is work out how to make the user have to register to see the members content... can anyone give me a hint? thanks
Comments
using ecommerce?
Are you talking about you want them to have to pay to get the "members" role? Their is a contributed module to ecommerce that does that. Or do you just want them to have access when they sign-up. If the second one is the case, why not just use the default "authenticated user" for the content you want to protect?
Great ... but which module is that exactly?
Yes that is exactly what i would like, they have to pay to become members. I've already installed the ecommerce module.. so which contributed module is the one that i need to configure for this behaviour?
Use product module
You need to enable recurring payment option in payment settings there u can add the role inhertiance. after the payment is made the user will be assigned to the adminsiter defined role.
when the payment expires the user will be removed from that role.
Use product module and create a membership page(create product) -lets say one year memebrship price $10 etc. here u can define the no of payment cycles, intervals etc.
Note:require cron jobs for automated role assign.
If u want to see other modules
http://drupal.org/project/paypal_subscription
http://drupal.org/node/28873
Sunny
www.gleez.com
thank you very much for this reply
thank you very much... i was going crazy with this issue.
Welcome
After u'have successful with the setup just post the workflow.
So that it would be helpful to others. If time premits it.
Sunny
www.gleez.com
If you are using PayPal, and
If you are using PayPal, and don't want to make use of the full power of the ecommerce modules, you can write an IPN handler that puts the user into a particular role once payment is verified. Its very, very easy to add someone to a role -- INSERT INTO users_roles (uid,rid) VALUES ('',''). I can post my code if anyone is interested.
Could you post teh code?
I am interested, could you Plz post teh code
Sunny
www.gleez.com | www.sandeepone.com
Here it is. Modify as required...no warranties :-)
There are some hacks in here, driven by laziness. I'll be refactoring soon, but this is good enough to get the idea from. The main piece for drupal is:
'3' is a role id on my site, something that would be different from site to site.
Thank you
Thank you, i'll look into it, Did you check this one http://drupal.org/node/53888#comment-110841
Sunny
www.gleez.com | www.sandeepone.com
I saw it, and I noticed that
I saw it, and I noticed that it uses a cron job or something to remove expired roles. What I want to do is extend what I have now to automatically respond to subscriptions renewal and expiry from Paypal. When I get a chance I may look into that module a bit more, certainly before I work my own stuff a bit more.
working
Did anyone else try this and get it working?