PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   Cron Jobs? (http://www.photopost.com/forum/classifieds-how-do-i/141952-cron-jobs.html)

molieman February 3rd, 2010 06:16 AM

Cron Jobs?
 
Hi, I want to remove ads that are XX days old and want to do this on a daily bases.

There is mentioning of cron.php and sendnotice.php, could be two different things, but got the impression they are related what I'm looking for.

Please let me know how to set this up?

Thanks,

Chuck S February 3rd, 2010 07:16 AM

They are essentially the same script. They expire ads and auctions

One is used when you setup a server cron task and the other is used by our program called in the footer. If you want to run the cron in the footer of your site every xx number of minutes then in admin options set the time and option to yes.

molieman February 3rd, 2010 09:51 AM

Quote:

Originally Posted by Chuck S (Post 1261288)
They are essentially the same script. They expire ads and auctions

One is used when you setup a server cron task and the other is used by our program called in the footer. If you want to run the cron in the footer of your site every xx number of minutes then in admin options set the time and option to yes.

I have the cron in the footer to run every 30.

I could not find anywhere to set the expiration date of the ad or to delete certain ads by initial date utilizing the cron. I'm sure I'm overlooking something. :eek:

I feel I have not used the Classifieds to it's fullest potential in the past, and would like to now. So any guidance would be appreciated.

By start, the deletion of old ads automatically. :)

Chuck S February 3rd, 2010 10:08 AM

An ad expiration auction is all done automatically when you place an ad you set the duration of the ad. ;)

molieman February 3rd, 2010 10:44 AM

That was simple, didn't look there, but now I recall :rolleyes: I was looking in the ads by way of editing. :D

1. Is there a way, while in edit mode, to change the days of the ad?
2. If I can't do number one, does that mean I have to physically delete ads?
3. I would like to have the maximum number of days for an ad to display "30 days," how can I change that (or is that something for the wish list). :)

Chuck S February 3rd, 2010 10:50 AM

1. the day of the ad you mean when it was uploaded? NO

2. You dont delete ads. The cron task expires them and then when you visit your admin panel the code automatically deletes expired ads over 2 weeks.

3. edit your uploadproduct templates and remove the option boxes for the duration select box in the template html.

molieman February 3rd, 2010 11:21 AM

RE: # 1.

Meant after the ad has been placed and you go back to edit and want to change the number of days to display ad. I don't see an the opportunity to do that.

My concern here is, some ads are set to "noexpire" and the cron will not delete them.

BTW, thanks for the template change info, done it :) :) :)

Chuck S February 3rd, 2010 12:54 PM

There is not an opportunity to change a duration no.

You would have to delete those ads yourself.

molieman February 3rd, 2010 12:58 PM

Thanks, much appreciate the help :)

Chuck S February 3rd, 2010 01:05 PM

yeah users could cheat you if we allowed them to change there duration.


All times are GMT -5. The time now is 12:00 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