PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   Find Duration Remaining (http://www.photopost.com/forum/classifieds-how-do-i/141232-find-duration-remaining.html)

allcompu November 25th, 2009 09:18 AM

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?

Chuck S November 25th, 2009 10:42 AM

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.

allcompu November 25th, 2009 10:58 AM

So when an advertiser says to me "How much time is left on my ad?", I'm supposed to tell him ...?

allcompu November 25th, 2009 11:01 AM

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) //'

Chuck S November 25th, 2009 01:58 PM

Have you set the cron task up as noted here?

http://www.photopost.com/forum/class...otice-php.html

I beleive the cron on the server needs to know its a php script.

allcompu November 25th, 2009 02:30 PM

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.

Chuck S November 25th, 2009 03:13 PM

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.

gmptp September 5th, 2011 02:26 PM

Quote:

Originally Posted by allcompu (Post 1255822)
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?

Chuck S September 5th, 2011 04:39 PM

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.

gmptp September 5th, 2011 11:20 PM

Quote:

Originally Posted by Chuck S (Post 1291075)
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>

Chuck S September 6th, 2011 07:56 AM

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


All times are GMT -5. The time now is 02:21 AM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97