| View previous topic :: View next topic |
| Author |
Message |
GMC
Joined: 15 Aug 2009 Posts: 172
|
Posted: Oct 11, 2011 9:49 pm Post subject: Does the script send emails before expiry of PREMIUM account |
|
|
I have had a complaint for a member who purchased a year premium and lost 500 gig over night when it expired
Is it something I havent activated?
or something the script doesnt do
Any help is appreciated
GMC |
|
| Back to top |
|
 |
nyan
Joined: 28 Oct 2010 Posts: 121
|
Posted: Oct 12, 2011 6:16 pm Post subject: |
|
|
I don't think it does, but I use an old version.
I've changed a few things to prevent this from happening
in cron.pl
| Code: | # my $filter_premium="AND (usr_premium_expire IS NULL OR usr_premium_expire<NOW())" if $c->{dont_expire_premium};
my $filter_premium="AND (usr_premium_expire IS NULL OR usr_premium_expire<DATE_ADD(NOW(), INTERVAL -30 DAY) )" if $c->{dont_expire_premium}; |
This deletes files 30 days after premium expires w/ no dl ( I have 60 days to expire normal files) |
|
| Back to top |
|
 |
GMC
Joined: 15 Aug 2009 Posts: 172
|
Posted: Oct 13, 2011 6:20 am Post subject: |
|
|
| nyan wrote: | I don't think it does, but I use an old version.
I've changed a few things to prevent this from happening
in cron.pl
| Code: | # my $filter_premium="AND (usr_premium_expire IS NULL OR usr_premium_expire<NOW())" if $c->{dont_expire_premium};
my $filter_premium="AND (usr_premium_expire IS NULL OR usr_premium_expire<DATE_ADD(NOW(), INTERVAL -30 DAY) )" if $c->{dont_expire_premium}; |
This deletes files 30 days after premium expires w/ no dl ( I have 60 days to expire normal files) |
This is excellent!!
Thanks
I will email support about the emailing - lets see what it will cost me to add this
GMC |
|
| Back to top |
|
 |
GMC
Joined: 15 Aug 2009 Posts: 172
|
Posted: Oct 20, 2011 11:07 pm Post subject: |
|
|
| GMC wrote: |
I will email support about the emailing - lets see what it will cost me to add this
GMC |
Email sent to support for quote on mod
No response
GMC |
|
| Back to top |
|
 |
GMC
Joined: 15 Aug 2009 Posts: 172
|
Posted: Nov 06, 2011 12:01 am Post subject: |
|
|
| third request sent!! |
|
| Back to top |
|
 |
adiga
Joined: 23 Jul 2009 Posts: 148
|
Posted: Nov 09, 2011 12:13 pm Post subject: |
|
|
| GMC wrote: | | third request sent!! |
Support does not respond, not in messages or in the Forum
i have asked custom module about a month ago did not respond yet |
|
| Back to top |
|
 |
GMC
Joined: 15 Aug 2009 Posts: 172
|
Posted: Nov 20, 2011 12:11 pm Post subject: |
|
|
| adiga wrote: | | GMC wrote: | | third request sent!! |
Support does not respond, not in messages or in the Forum
i have asked custom module about a month ago did not respond yet |
My third request was via an email to support
Maybe a fourth will get a response
LOL
Doubt it!
If you get a response to your request let me know the cost - I'll split it with you! |
|
| Back to top |
|
 |
stamos
Joined: 11 Nov 2010 Posts: 116
|
Posted: Nov 20, 2011 1:45 pm Post subject: |
|
|
| would be interested too, cannot be so difficult to make it on our own though, i will see what I can make best..... |
|
| Back to top |
|
 |
GMC
Joined: 15 Aug 2009 Posts: 172
|
Posted: Nov 28, 2011 1:39 pm Post subject: |
|
|
| stamos wrote: | | would be interested too, cannot be so difficult to make it on our own though, i will see what I can make best..... | thanks Stamos
Let me know how you go
G |
|
| Back to top |
|
 |
GMC
Joined: 15 Aug 2009 Posts: 172
|
Posted: Dec 28, 2011 12:59 am Post subject: |
|
|
| stamos wrote: | | would be interested too, cannot be so difficult to make it on our own though, i will see what I can make best..... | Any luck stamos?
No word from support
G |
|
| Back to top |
|
 |
glumbo
Joined: 11 Mar 2011 Posts: 204 Location: US
|
Posted: Dec 28, 2011 7:11 am Post subject: |
|
|
| Support is on break until Jan. 9th. Anyways, this is pretty easy to do. Just look at code in ipn.cgi to see how to send emails. You can then modify cron.pl to send out emails whenever a user's premium is about to expire. Look at cron_deleted_email.pl for examples as well. |
|
| Back to top |
|
 |
GMC
Joined: 15 Aug 2009 Posts: 172
|
Posted: Jan 21, 2012 9:34 am Post subject: |
|
|
| glumbo wrote: | | Support is on break until Jan. 9th. Anyways, this is pretty easy to do. Just look at code in ipn.cgi to see how to send emails. You can then modify cron.pl to send out emails whenever a user's premium is about to expire. Look at cron_deleted_email.pl for examples as well. | They werent on holidays in October when I first sent the request!!!
Thanks for the hints
I will look at this now
GMC |
|
| Back to top |
|
 |
|