Ad approaching expiry
how do I permanently turn off all users' reminder emails for adverts about to expire?
You would have to alter the expire scripts and remove the mail() line as that is part of the way it is suppose to work meaning users are notified about there ad status for expiration.
The expire scripts are sendnotice.php or cron.php depending on how your doing the cron task server side or script side.
I have a cron job set on the server to run sendnotice.php (once a day)
would you be able to post or send me the lump of text to chop out of the script?
(I'm on the latest version of classifieds)
Line 148 towards the bottom of the file
Hi Chuck, great stuff, many thanks.
Enjoy the holidays.
What is the default minutes for the cron to run when you have it set in the admin options? I had changed it to 15 and now one of my members got like 6-8 emails at onetime telling him ad was about to expire in 2 days. Is that normal for lowering cron time or should I be looking else where?
I set mine to about 30.
The way I look at this is your only going to send an email if the following is met which always has been the case.
It will send an email for any ad that is going to expire within 3 days and of course there is always checking to make sure we are only going to run cron based on the time you set and also it will only send one email per day.
Thats what I see when looking at the code.
Basically the time is $today. We grab the lastupdate time from the stats table and take the time right now and subtract the lastupdate time and the resulting number is timediff. If that number is 86400 which is one day then the if clause clause runs which grabs any ads expiring within 3 days and send an email.
|All times are GMT -5. The time now is 01:39 AM.|
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0