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 August 7th, 2006, 10:34 AM   #1 (permalink)
Member
 
blankoboy's Avatar
 
Join Date: Apr 2006
Posts: 63
Question sendnotice.php cron job sending daily notifications

I set up the sendnotice cron job to run daily at midnight so it will remove expired ads but I notice that it is also sending out daily notifications:

Quote:
xxx, your ad on xxxxxxx.com for This is a test ad is going to expire in 3 days.

If you have not sold your product and wish to renew your ad for an additional 15 days, please click on the link below:

http://www.xxxxxxx.com/editproduct.php?resell=71

If you have sold your item, please let us know by clicking on this link:

http://www.xxxxxxx.com/editproduct.php?sold=71

Thank you!
Can I set it so that it doesn't do this daily? As I can imagine this will begin to test the patience of visitors to the site. Please advise. Thanks.
blankoboy is offline   Reply With Quote
Old August 7th, 2006, 12:43 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
It will not send out daily reminders. Once a reminder is sent the ad will be marked status not 0 and approved is now 2 which means it will not be scanned again and is expired. This happens once and the user gets emailed once.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 12th, 2006, 11:46 PM   #3 (permalink)
Member
 
blankoboy's Avatar
 
Join Date: Apr 2006
Posts: 63
Question

I cannot seem to figure out why my site keeps sending out renewal notices


Quote:
username, your ad on mydomain.com for Selling 7 DVD's is going to expire in
14 days.

If you have not sold your product and wish to renew your ad for an additional 14
days, please click on the link below:

http://www.mydomain.com/editproduct.php?resell=76

If you have sold your item, please let us know by clicking on this link:

http://www.mydomain.com/editproduct.php?sold=76

Thank you!
=======================
Quote:
username, your ad on mydomain.com for Selling 7 DVD's is going to expire in
12 days.

If you have not sold your product and wish to renew your ad for an additional 14
days, please click on the link below:

http://www.mydomain.com/editproduct.php?resell=76

If you have sold your item, please let us know by clicking on this link:

http://www.mydomain.com/editproduct.php?sold=76

Thank you!
=======================
Quote:
username, your ad on mydomain.com for Selling 7 DVD's is going to expire in
11 days.

If you have not sold your product and wish to renew your ad for an additional 14
days, please click on the link below:

http://www.mydomain.com/editproduct.php?resell=76

If you have sold your item, please let us know by clicking on this link:

http://www.mydomain.com/editproduct.php?sold=76

Thank you!
Any idea why it might be doing this?

=======================
One other item. I don't suppose there is anyway to hide the below area highlighted in red in the receiver's message header information is there?


Quote:
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - myserverrname.myhost.com
X-AntiAbuse: Original Domain - hotmail.com
X-AntiAbuse: Originator/Caller UID/GID - [32087 500] / [47 12]
X-AntiAbuse: Sender Address Domain - myserverrname.myhost.com
X-Source: /usr/local/bin/php
X-Source-Args: /usr/local/bin/php /home/myuseraccount/public_html/sendnotice.php
X-Source-Dir: /home/hiroshi9
Return-Path: myuseraccount@myserverrname.myhost.com

Last edited by blankoboy; August 13th, 2006 at 04:57 AM.
blankoboy is offline   Reply With Quote
Old August 13th, 2006, 10:28 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
One expire email is sent once per day till it expires.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 13th, 2006, 12:45 PM   #5 (permalink)
Member
 
blankoboy's Avatar
 
Join Date: Apr 2006
Posts: 63
Quote:
Originally Posted by Chuck S View Post
One expire email is sent once per day till it expires.
Isn't this counter to what you posted above?

Quote:
It will not send out daily reminders. Once a reminder is sent the ad will be marked status not 0 and approved is now 2 which means it will not be scanned again and is expired. This happens once and the user gets emailed once
So, if a user posts his/her ad for 2 weeks they are going to get a reminder notice everyday until the 2 weeks are up? If so, is there anyway to reduce this down to until the last 4-5 days? I don't think members will like getting daily reminders and instead find it rather annoying.
blankoboy is offline   Reply With Quote
Old August 13th, 2006, 12:55 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
No it is exactly as I posted. The sendnotice only sends out an email if its within 3 days of expiration

Code:
Content visible to verified customers only.
Okay lets disect the code

86399 is how many seconds there are in a day. $today is the time right now. $timediff is the difference between right now and the lastupdate time which is updated everytime the script runs. Therefore if the script is ran more than once a day it is not going to do nothing.

Then lets go here

Code:
Content visible to verified customers only.
$expire is set to right now plus 3 days to so the query to pull the ads is it will pull anything that is less than today plus 3 days. So ads expiring 2 weeks from now are never pulled
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 13th, 2006, 09:54 PM   #7 (permalink)
Member
 
blankoboy's Avatar
 
Join Date: Apr 2006
Posts: 63
Question

Thanks for the explanation Chuck. Any idea, though, why mine would be sending out expiration/renewal notices for 14, 12, and 11 days in advance?

Would it have anything to with my having set Number of days to show sold/closed ads? (under 'Show Ads Options') to 15?
blankoboy is offline   Reply With Quote
Old August 14th, 2006, 10:06 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
I would not think so but you can try setting it to say 1 and see what happens. You can also in sendnotice.php do this and test

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 offline   Reply With Quote
Old October 21st, 2007, 07:11 PM   #9 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2007
Posts: 7
I also have this problem. I'm running auctions so I have send notice running every 15 minutes.

Notifications are being sent out 10 days in advance.

Chuck would I also need to make this change to sendnotice?

$expire = mktime($hour1,$min,$sec,$mon,$mday,$year);

in addition to what you have above:

$hour1 = $hour + ($Globals['numdays'] * 24);
$newend = mktime($hour1,$min,$sec,$mon,$mday,$year);
monkeybars is offline   Reply With Quote
Old October 21st, 2007, 08:21 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
I dont know all depends how you want to modify things. Our script is set to pull and send emails for ads 3 days before they expire. So you would see how we do it and then modify it to your needs.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   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
Cron Job: sendnotice.php Michael P Classifieds Installation & Upgrades 82 March 15th, 2010 11:43 AM
Webmin SendNotice Cron Job Setup creativepart Classifieds Installation & Upgrades 4 March 20th, 2006 08:01 PM
Questions about sendnotice.php and stats cdouglas Classifieds Installation & Upgrades 2 August 18th, 2005 12:56 PM
Sendnotice.php Bryan Ex Classifieds Suggestions 2 June 22nd, 2004 03:58 PM


All times are GMT -5. The time now is 06:55 AM.

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