PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds How do I...?

Classifieds How do I...? Wondering how to do something in Classifieds?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old December 22nd, 2010, 01:43 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2008
Posts: 12
Ad approaching expiry

Hi All,
how do I permanently turn off all users' reminder emails for adverts about to expire?
mike_bbf is offline   Reply With Quote
Old December 22nd, 2010, 01:59 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,692
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 22nd, 2010, 02:36 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2008
Posts: 12
Hi Chuck,

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)
mike_bbf is offline   Reply With Quote
Old December 22nd, 2010, 03:03 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,692
Line 148 towards the bottom of the file

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 22nd, 2010, 03:23 PM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2008
Posts: 12
Hi Chuck, great stuff, many thanks.
mike_bbf is offline   Reply With Quote
Old December 22nd, 2010, 04:40 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,692
Enjoy the holidays.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 13th, 2011, 08:45 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Jan 2008
Posts: 193
Chuck

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?

WD
WarDog is offline   Reply With Quote
Old January 13th, 2011, 09:41 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,692
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.

Code:
Content visible to verified customers only.
Therefore looking at the code only one email can be send in any given day to a user.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop people hacking (via Firefox) a longer expiry date xluk Classifieds Suggestions 14 July 29th, 2009 06:43 PM
Changing the Two Weeks Expiry longislandjam Classifieds How do I...? 1 November 4th, 2007 02:36 PM


All times are GMT -5. The time now is 10:46 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0