Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Link to Link to 'Subscribe' javascript command on main page?
Previous
 
Next
New Post
6/24/2008 2:39 PM
 

I'm trying to set up DNN as a subscription based site.  It won't have detailed content/multiple user roles/etc., I just need to collect payment, move the user to the 'Subscribers' role, and then provide them access to the 'subscribers only' page.

I have the PayPal payment info working in SandBox, but I would like to find an easier way to allow the user to subscribe rather than going to Edit Profile -> Subscribe, etc.  Is it possible to simply create a link to the javascript that is running when clicking on the "Subscribe" link in the Edit User Profile area?  I don't need anything fancy, I just want to be able to provide a link to subscribe to the site from the main page.

Thanks for any tips... And yes, I have read about the Ventrian subscribtion managment module, but considering I only need to manage one set of subsribtion credentials, I was hoping that the DNN core could handle it.

CJ

 

 
New Post
6/27/2008 4:24 PM
 

Got it taken care of:

Redirect to "PayPalSubscription.aspx" and send it the RoleID of the role that the user wants to subscribe to and the rest works by itself.

CJ

 

 
New Post
6/27/2008 8:54 PM
 

That sounds like something interesting!.. can you detail that a little more for me?

People register.. then?

Regards,
Rob

 
New Post
6/30/2008 11:38 AM
 

ROBAX wrote

That sounds like something interesting!.. can you detail that a little more for me?

People register.. then?

Regards,
Rob

 

The general 'flow' is:

  1. Button that text changes dynamically depending on what role the user is in.  The text is determined in Page_Load
  2. If Not IsInRole("Registered Users") and Not IsInRole("Subscribers") Then button1.text = "Click here to Register and Subscribe", etc. etc.
  3. Also in each 'If' statement is a different handler for the particular button need:  If they need to register and subscribe, it goes to a sub which displays text boxes to collect the user data and then creates the user account (registers them).  Once the user account is created (registered), it automatically calls the PayPalSubscription.aspx and sends the RoleId of 'subscribers' and works its magic for creating the paypal URL, handling IPN, etc. 
  4. Once the user is returned back to the main page (or whatever page you assign for 'returnurl'), the user is registered, subscribed, and logged in.

My basic goal was to make it as simple as possible for people to register and subscribe by going through as little user interaction as possible.

It's really pretty simple once you get into it.  DNN has all the core work there, it's just a matter of accessing it in a more 'user friendly' way.

CJ

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Link to Link to 'Subscribe' javascript command on main page?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out