Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Andy] [ Update ] Expire_Links v2

Quote Reply
Re: [Andy] [ Update ] Expire_Links v2 In reply to
I just wanted to say thanks to Andy for this great plug-in. It works very well and is pretty straight forward and simple. I've seen some questions about trial periods and renewals and such, so I thought I'd share what I have done.

First, I create a date called 'Purchase_Date', and put the date the link was purchased in it. Next, I added a renewal link to the modify page so the LinkOwner can buy a renewal whenever they want. If they buy before it expires, we add a free 30 days. The way this is implemented is a bit of a hack, but it works.

When someone goes to renew, we pass the LinkID and return page forms to the secure server as the response page. After a successful transaction, a page is loaded that contains all the hidden links needed to upgrade their link listing. For the Purchase date we use this:

<input type=hidden name="Purchase_Date" value="<%GT::Date::date_add($Purchase_Date,'395')%>">

which automatically adds the 30 days on top of a year's subscription.

Hope that helps,

Bryan

P.S. Andy, is there a log file that I can find that tells me what was emailed out overnight? I know the flags should change, but I was wondering if the mailing generates any records?
Subject Author Views Date
Thread [ Update ] Expire_Links v2 Andy 11619 Feb 26, 2003, 9:04 AM
Post Re: [Andy] [ Update ] Expire_Links v2
DogTags 11052 Feb 27, 2003, 12:00 AM
Thread Re: [Andy] [ Update ] Expire_Links v2
DogTags 11119 Feb 28, 2003, 8:01 AM
Thread Re: [DogTags] [ Update ] Expire_Links v2
Andy 11136 Feb 28, 2003, 8:09 AM
Post Re: [Andy] [ Update ] Expire_Links v2
DogTags 10963 Feb 28, 2003, 8:19 AM
Thread Re: [Andy] [ Update ] Expire_Links v2
pugdog 10990 Mar 1, 2003, 3:02 PM
Thread Smart Expire
DogTags 10972 Mar 3, 2003, 7:13 AM
Thread Re: [DogTags] Smart Expire
Andy 10939 Mar 4, 2003, 1:54 AM
Thread Re: [Andy] Smart Expire
qango 10914 Mar 5, 2003, 1:29 AM
Post Re: [qango] Smart Expire
Andy 10872 Mar 5, 2003, 4:36 AM
Thread Re: [qango] Smart Expire
DogTags 10870 Mar 5, 2003, 5:56 AM
Thread Re: [DogTags] Smart Expire
Andy 10884 Mar 5, 2003, 7:09 AM
Thread Re: [Andy] Smart Expire
DogTags 10866 Mar 5, 2003, 7:24 AM
Thread Re: [DogTags] Smart Expire
Andy 10974 Mar 5, 2003, 7:29 AM
Post Re: [Andy] Smart Expire
DogTags 10812 Mar 7, 2003, 5:15 AM
Thread Re: [Andy] Smart Expire
Evoir 10896 Mar 8, 2003, 6:04 PM
Thread Re: [Evoir] Smart Expire
Andy 10941 Mar 9, 2003, 4:02 AM
Thread Re: [Andy] Smart Expire
Evoir 10833 Mar 10, 2003, 11:39 AM
Post Re: [Evoir] Smart Expire
DogTags 10801 Mar 10, 2003, 2:26 PM
Post Re: [Evoir] Smart Expire
webmaster33 10766 Mar 10, 2003, 5:50 PM
Thread Re: [Evoir] Smart Expire
Andy 10785 Mar 11, 2003, 12:29 AM
Thread Re: [Andy] Smart Expire
eljot 3533 Mar 11, 2003, 4:28 AM
Thread Re: [eljot] Smart Expire
Andy 3474 Mar 11, 2003, 5:28 AM
Thread Re: [Andy] Smart Expire
Andy 3421 Aug 26, 2003, 1:31 AM
Post Re: [Andy] Smart Expire
Andy 3432 Aug 29, 2003, 9:12 AM
Thread Re: [Andy] [ Update ] Expire_Links v2
Evoir 10989 Feb 28, 2003, 2:43 PM
Thread Re: [Evoir] [ Update ] Expire_Links v2
Andy 10974 Mar 1, 2003, 1:25 AM
Thread Re: [Andy] [ Update ] Expire_Links v2
Evoir 10992 Mar 1, 2003, 1:38 PM
Post Re: [Evoir] [ Update ] Expire_Links v2
Andy 10941 Mar 2, 2003, 2:48 AM
Thread Re: [Andy] [ Update ] Expire_Links v2
BryanL 3360 Feb 4, 2004, 6:26 AM
Post Re: [BryanL] [ Update ] Expire_Links v2
Andy 3367 Feb 4, 2004, 6:30 AM