Results 1 to 5 of 5

Thread: Prune Ads by Date rather than # Days

  1. #1
    Thread Starter
    Senior Member jakesterz's Avatar
    Join Date
    Aug 2009
    Posts
    194
    Thanks
    0
    Thanked 1 Time in 1 Post

    Prune Ads by Date rather than # Days

    Can someone show me how to do this?

    I'd like the ads to be deleted based on a date entered in the form rather than based on a number of days.

    Please PM me with a quote.

  2. #2
    Thread Starter
    Senior Member jakesterz's Avatar
    Join Date
    Aug 2009
    Posts
    194
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Prune Ads by Date rather than # Days

    I worked it out myself. The solution is posted in the theme support section.

  3. #3
    Thread Starter
    Senior Member jakesterz's Avatar
    Join Date
    Aug 2009
    Posts
    194
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Prune Ads by Date rather than # Days

    o.k. this is driving me nuts. Anyone want to help me out? How much?

  4. #4
    Member success's Avatar
    Join Date
    Apr 2009
    Location
    Singapore
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Prune Ads by Date rather than # Days

    Is would be an interesting feature if we can implement it on a per ad basis instead of site wide.

    So each time we post an ad, we can set an end date to close the ad.

  5. #5
    Thread Starter
    Senior Member jakesterz's Avatar
    Join Date
    Aug 2009
    Posts
    194
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Prune Ads by Date rather than # Days

    I got it working the way I want, if you're interested. What I did was add an "expiration date" field to the form using the tutorial, then change the code in the process page to this.

    Code:
    $expires = date('m/d/Y', strtotime($e_date));

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)