YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Help!? Differing subscription terms, 2 pw files Options
loopi
#1 Posted : Friday, December 13, 2002 12:35:17 PM
Rank: Starting Member

Groups: Registered

Joined: 12/6/2002
Posts: 2
Location: ,
Ok, I have a basic subscription with two options (one month recurring, or 3 month non-=recurring), and that is fine. My third option is a Guide I wrote which includes one month free subscription, then recurrring normal sub after. I did this by just setting trial period to the GUIDE PRICE and One Month, and then it becomes a normal subscription at the normal rate. Still all was fine. Now what I need is for the GUIDE buyers to have access to the guide and the sub area, but for Subscription ONLY accounts NOT to have access to the guide. So I set up .htpasswd and .htpasswdgd, now I just need to know how I would go about implementing this in paypal.pl. What I need specifically is how to modify the multi-subscription script (the one posted here for 3 different subscription options) so that the option which is the GUIDE would then write to BOTH password files. It doesn't need to ever do anything else (remove the second password) since once they buy the Guide it is forever, so it just needs to (one time) write their password to the Guide Password file and ONLY for users who choose that option. If anyone can help I would so appreciate it, since I do not want to mess up the file and make it not work. James
Sponsor  
 
paypal_pb
#2 Posted : Friday, December 13, 2002 4:33:03 PM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
Use two paypal.pl scripts and specify the Notification URL in a notify_url field in your sign up buttons.

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
loopi
#3 Posted : Saturday, December 14, 2002 9:44:35 AM
Rank: Starting Member

Groups: Registered

Joined: 12/6/2002
Posts: 2
Location: ,
Ok, understood, but still where would I write to the two password files from within paypal.pl? I still need the Guide users to be in BOTH password files. I just thought the script you wrote for three differing subscription options would work if one had a sort of "If Option B, then write to .htpasswdgd as well" type thing, I'm just totally unsure how to implement that and so my problem is still there, in how do I implement the actual writing to two password files within the script? I can do it either way you think best, from your modified 3 option file, or from two seperate files, if you just explain the line of code I need insert to get it to do the actual writing to two password files.

Thanks so much for your reply!

James
paypal_pb
#4 Posted : Saturday, December 14, 2002 11:23:27 PM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
You'd need to modify paypal.pl to write to two htpasswd files. There may only be a few lines of code to add/modify but it's beyond the scope of support we can provide.

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.145 seconds.