Forums
This topic is locked
How did you do that?
Posted 13 Aug 2003 15:13:25
1
has voted
13 Aug 2003 15:13:25 Wayne Hultum posted:
How do you know when i have bought one of the extensions.I'm intersestd because I'm looking at setting up a site with restricted content. You wont be able to view the content untill you have paid a one of fee via paypal.
So what i'm wanting to know is when the user has registered and paid the subscription fee how does he view the content and stop people who haven't paid form viewing it.
like what you have done with the download button on the extensions, i can be registered and logged in but i cant view the download button untill i've paid.
i know what you're thinking and no it's not a porn site.
i hope i've explained myself and that someone can help.
thanks in advance
wayne<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle><img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle><img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Replies
Replied 14 Aug 2003 07:35:41
14 Aug 2003 07:35:41 Dave Clarke replied:
Hi
Assuming you are using the standard DW log-in behaviour.
You would need a user status field in your database that would contain possible values for your users, e.g Guest, Member or Paidmember.
Then to hide the button to the restricted content you would use something like this
<b>
<% if Session("MM_UserAuthorization"
= "Paidmember" then %>
<a href="your link"></a>
<% end if %>
</b>
To deny access to the actual content there is a "Restrict Access To Page" behaviour that you can use on each page that you want to restrict.
Hope this helps
Dave
ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome
Edited by - Davecl on 14 Aug 2003 07:39:15
Assuming you are using the standard DW log-in behaviour.
You would need a user status field in your database that would contain possible values for your users, e.g Guest, Member or Paidmember.
Then to hide the button to the restricted content you would use something like this
<b>
<% if Session("MM_UserAuthorization"

<a href="your link"></a>
<% end if %>
</b>
To deny access to the actual content there is a "Restrict Access To Page" behaviour that you can use on each page that you want to restrict.
Hope this helps
Dave
ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome
Edited by - Davecl on 14 Aug 2003 07:39:15
Replied 14 Aug 2003 09:44:19
14 Aug 2003 09:44:19 Wayne Hultum replied:
Thanks Dave, that's helped but how do I know when a member has paid their subscription. I know paypal can send an email when a user has subscribed but that would mean setting his access level to paidmember manually.
Is there a way that this can be done automatically, so as soon as they have subscribed his access level is set to paiduser?
Thanks again
Wayne
Is there a way that this can be done automatically, so as soon as they have subscribed his access level is set to paiduser?
Thanks again
Wayne
Replied 14 Aug 2003 14:49:25
14 Aug 2003 14:49:25 Dave Clarke replied:
It is possible using PayPal to do this, they have something called Instant Payment Notification (IPN) but it is quite complex to set up and I haven't done it myself, other than that you would have to do it manually.
Take a look at the PayPal website for details of IPN
Dave
ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome
Take a look at the PayPal website for details of IPN
Dave
ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome