XFileSharing Pro - Does the script send emails before expiry of PREMIUM account

Message
Author
GMC
Posts: 172
Joined: Aug 15, 2009 4:48 am

Does the script send emails before expiry of PREMIUM account

#1 Postby GMC » Oct 11, 2011 9:49 pm

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

nyan
Posts: 163
Joined: Oct 28, 2010 8:01 pm

#2 Postby nyan » Oct 12, 2011 6:16 pm

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: Select all

#      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)

GMC
Posts: 172
Joined: Aug 15, 2009 4:48 am

#3 Postby GMC » Oct 13, 2011 6:20 am

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: Select all

#      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

GMC
Posts: 172
Joined: Aug 15, 2009 4:48 am

#4 Postby GMC » Oct 20, 2011 11:07 pm

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

GMC
Posts: 172
Joined: Aug 15, 2009 4:48 am

#5 Postby GMC » Nov 06, 2011 12:01 am

third request sent!!

adiga
Posts: 177
Joined: Jul 23, 2009 2:27 am

#6 Postby adiga » Nov 09, 2011 12:13 pm

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

GMC
Posts: 172
Joined: Aug 15, 2009 4:48 am

#7 Postby GMC » Nov 20, 2011 12:11 pm

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!

stamos
Posts: 139
Joined: Nov 11, 2010 5:37 pm

#8 Postby stamos » Nov 20, 2011 1:45 pm

would be interested too, cannot be so difficult to make it on our own though, i will see what I can make best.....

GMC
Posts: 172
Joined: Aug 15, 2009 4:48 am

#9 Postby GMC » Nov 28, 2011 1:39 pm

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

GMC
Posts: 172
Joined: Aug 15, 2009 4:48 am

#10 Postby GMC » Dec 28, 2011 12:59 am

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

glumbo
Posts: 211
Joined: Mar 11, 2011 6:26 am

#11 Postby glumbo » Dec 28, 2011 7:11 am

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.

GMC
Posts: 172
Joined: Aug 15, 2009 4:48 am

#12 Postby GMC » Jan 21, 2012 9:34 am

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