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 November 25th, 2009, 09:18 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jul 2003
Location: Florida
Posts: 158
Find Duration Remaining

I've looked all over and, with the exception of an auction ad, cannot find how much time remains or what the duration chosen for any given ad is. What's the secret?
__________________
Fred Weiss
Signs101.com
allcompu is offline   Reply With Quote
Old November 25th, 2009, 10:42 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,703
Thats because auctions are the only things that state a remaining time.

regular ads just expire when there time is up. There is the cron task sendnotice.php that sends out an email to the user to renew his ad if he wishes.
__________________
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 November 25th, 2009, 10:58 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jul 2003
Location: Florida
Posts: 158
So when an advertiser says to me "How much time is left on my ad?", I'm supposed to tell him ...?
__________________
Fred Weiss
Signs101.com
allcompu is offline   Reply With Quote
Old November 25th, 2009, 11:01 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Jul 2003
Location: Florida
Posts: 158
The cron job, BTW, gives me this in my email:

Quote:
/home/signs101/public_html/pp-classifieds/sendnotice.php: line 1: ?php: No such file or directory
/home/signs101/public_html/pp-classifieds/sendnotice.php: line 2: ////////////////////////////: is a directory
/home/signs101/public_html/pp-classifieds/sendnotice.php: line 3: //: is a directory
/home/signs101/public_html/pp-classifieds/sendnotice.php: line 4: //: is a directory
/home/signs101/public_html/pp-classifieds/sendnotice.php: line 5: //: is a directory
/home/signs101/public_html/pp-classifieds/sendnotice.php: line 6: //: is a directory
/home/signs101/public_html/pp-classifieds/sendnotice.php: line 7: //: is a directory
/home/signs101/public_html/pp-classifieds/sendnotice.php: line 8: //: is a directory
/home/signs101/public_html/pp-classifieds/sendnotice.php: line 9: //: is a directory
/home/signs101/public_html/pp-classifieds/sendnotice.php: line 10: syntax error near unexpected token `('
/home/signs101/public_html/pp-classifieds/sendnotice.php: line 10: `// Contributing Developers: Michael Pierce (mpdev.net) //'
__________________
Fred Weiss
Signs101.com
allcompu is offline   Reply With Quote
Old November 25th, 2009, 01:58 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,703
Have you set the cron task up as noted here?

Cron Job: sendnotice.php

I beleive the cron on the server needs to know its a php script.
__________________
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 November 25th, 2009, 02:30 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Jul 2003
Location: Florida
Posts: 158
I have a new employee taking care of it. He's competent and is both an experienced webmaster and owns a hosting company. It seems to be working at this time although he evidently had to edit some of the code in sendnotice.php. We're waiting for the first auction to see if it works correctly.

At this point it is doubtful we would ever upgrade classifieds due to all the changes we've had to make to both code and phrases. We've had to turn off all moderation due to the confusion it causes.
__________________
Fred Weiss
Signs101.com
allcompu is offline   Reply With Quote
Old November 25th, 2009, 03:13 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,703
well sendnotice.php works in a cron in the examples we provide but obviously requirements change from host to host.

Not sure what he would need to edit sendnotice unless your adding something to something.
__________________
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 September 5th, 2011, 02:26 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Mar 2010
Posts: 111
Quote:
Originally Posted by allcompu View Post
So when an advertiser says to me "How much time is left on my ad?", I'm supposed to tell him ...?

I like to find out too, showcat only show the date posted for the ads, how can we include the date expired also or the duration (based on duration user specify during post ads say they specify 7 days) in the showcat output?

Example for non-auction items, today 1st Sept posted the ads, duration 7 days.
How can we display in showcat for the item both 1st Sept and duration for item 7 days in the showcat table?

Instead of cron job sendnotice 3 days in advanced notify the users, how can the user or admin find out the duration of the ads the users has posted is for 7 days or 14 days, and how can we display the duration in showcat table?
gmptp is offline   Reply With Quote
Old September 5th, 2011, 04:39 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,703
You are free to modify your code anyway you wish. You would simply create whatever code you wish to display what you want where you want.
__________________
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 September 5th, 2011, 11:20 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: Mar 2010
Posts: 111
Quote:
Originally Posted by Chuck S View Post
You are free to modify your code anyway you wish. You would simply create whatever code you wish to display what you want where you want.
What is the code to retrieve the duration? Because the uploadproduct.tmpl only show below, it is store into which variable and what is the $code to retrieve it as I want to display on the showcat, which $code to use to retrieve the duration?

---------------
<td class="{$Style['tddetails']}" align="{$Globals['align1']}">{$pp_phrase['duration']}</td>
<td class="{$Style['tddetails']}" align="{$Globals['align1']}"><select name="duration">
<option selected="selected" value="15">{$pp_phrase['15days']}</option>
<option value="7">{$pp_phrase['7days']}</option>
<option value="30">{$pp_phrase['30days']}</option>
gmptp is offline   Reply With Quote
Old September 6th, 2011, 07:56 AM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,703
Please read my last post. Your free to modify your code any way you wish however that does not mean I am here to create whatever modifications you want to do to the code. The duration is stored in the duration field in the products table.

Please read this so you understand code modification and our company policies

http://www.photopost.com/forum/photo...ead-first.html
__________________
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
Ad duration rcull Classifieds Suggestions 1 April 25th, 2009 02:02 PM
Ad Duration CGMathis Classifieds How do I...? 3 November 25th, 2007 10:54 AM
Ad duration dead7 Classifieds How do I...? 6 April 5th, 2006 03:29 PM


All times are GMT -5. The time now is 04:34 PM.

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