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 Bug Reports

Classifieds Bug Reports Post any problems you may be having with Classifieds here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old August 16th, 2005, 07:54 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Posts: 53
Renewal Link works but it doesn't renew for 30 days(NOT A BUG)

I posted a test ad which last for 3 days. One day later, the script email me that my ad is gonna expire in 2 days.

After I click the link to extend the ad for another "30 days", the next day I get another email stating that my ad is gonna expire in 3 days time.

What is wrong ?? Renewal Link works but it doesn't renew for 30 days .... Even after I click on the renewal link several times every day, I still receive an email the very next day stating that the ad will expire in 3 days .........

Please help!!!
prodigy is offline   Reply With Quote
Old August 18th, 2005, 09:02 PM   #2 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Posts: 53
No reply?

Since this is not working for me, can I disable the sendnotice cron job altogether? Will the ad still expire?

What I want is to silently expire the ads without sending emails since the email link does not renew for 30 days.
prodigy is offline   Reply With Quote
Old August 19th, 2005, 05:27 AM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,695
Hello

What is the link in the email for you? It definately works for me and your issue could be a bug posted on this forum and it has been fixed.

I would suggest you download the classifieds script and upload the templates and php files just to grab any bug fixes we have fixed

If you dont use sendnotice.php as a cron nope no ads are expired ever

The link in the email is like this

http://www.domain.com/classifieds/ed....php?resell=45

You will notice in editproduct.php for resell is this

list($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime();
$mon = $mon + 1;
$mday = $mday + $duration;
$enddate = mktime($hour,$min,$sec,$mon,$mday,$year);

$query = "UPDATE {$Globals['pp_db_prefix']}products SET status=0,approved='$moderate',enddate='$enddate' WHERE id='$resell'";
$resultc = ppmysql_query($query,$link);

So the ad definately gets renewed for the same duration it was set for.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; August 19th, 2005 at 05:37 AM.
Chuck S is online now   Reply With Quote
Old August 19th, 2005, 06:45 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Posts: 53
I know what is wrong now......

I have posted an ad, duration is 3 days. But I receive an email stating:
"If you have not sold your product and wish to renew your ad for an additional 30 days,"

The correct email I should receive is:
"If you have not sold your product and wish to renew your ad for an additional 3 days,"

Is it possible to change the line in sendnotice.php to the one below?:
$letter .= "If you have not sold your product and wish to renew your ad for an additional $duration days,";
prodigy is offline   Reply With Quote
Old August 19th, 2005, 06:57 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,695
Yes you may do so by editing the query that grabs the info about the product in sendnotice.php to add and define the duration field
__________________
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 August 19th, 2005, 09:33 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Posts: 53
Can teach me how to do that? Cos the default email that states "30 days" is wrong and misleading.
prodigy is offline   Reply With Quote
Old August 19th, 2005, 09:50 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,695
Well I would be easier to rename the language string but try this and then replace 30 days with $duration

$query = "SELECT id,user,userid,title,enddate,duration FROM {$Globals['pp_db_prefix']}products WHERE enddate < $expire AND status=0 AND isauction=0";
$result = ppmysql_query($query,$link);

while ( list( $id, $user, $userid, $title, $enddate,$duration )= mysql_fetch_array($result) ) {
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; August 20th, 2005 at 07:43 AM.
Chuck S is online now   Reply With Quote
Old August 19th, 2005, 10:48 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Posts: 53
Is this correct?:

$letter .= "If you have not sold your product and wish to renew your ad for an additional $duration days,";
prodigy is offline   Reply With Quote
Old August 20th, 2005, 07:16 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Posts: 53
The email:

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

So can't just insert $duration in there ..... help ???
prodigy is offline   Reply With Quote
Old August 20th, 2005, 07:44 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,695
Look at the query again above. Just further down in the last query
__________________
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
2.42 Renewal Issue silknet01 Classifieds Bug Reports 5 May 26th, 2006 06:51 AM
renew using paypal? sean747 General Discussion 5 November 26th, 2005 12:33 PM
No way to renew or cancel ad directly? robferrari Classifieds Bug Reports 5 August 18th, 2005 08:40 AM
Error when hitting renewal link...(FIXED) robferrari Classifieds Bug Reports 25 August 17th, 2005 05:53 PM
Email to renew ad for 30 days is sent the same day ad is placed? macsamurai Classifieds Bug Reports 15 July 29th, 2005 10:22 AM


All times are GMT -5. The time now is 03:17 PM.

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