![]() |
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? |
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. |
So when an advertiser says to me "How much time is left on my ad?", I'm supposed to tell him ...? |
The cron job, BTW, gives me this in my email: Quote:
|
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. |
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. |
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. |
Quote:
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? |
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. |
Quote:
--------------- <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> |
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