PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   Old adverts not being deleted (http://www.photopost.com/forum/classifieds-how-do-i/140019-old-adverts-not-being-deleted.html)

jammy_basturd May 13th, 2009 02:53 PM

Old adverts not being deleted
 
After I realised that I now have Ads that are a good 2-3 months old I discovered that ads simply aren't being deleted.

That led me on to find the instructions about setting up a cronjob for sendnotice.php, which I've now done.

However, I still have all the adverts that are well over the 15 day maximum I've set. Isn't sendnotice.php meant to have deleted these adverts, along with their images? If not, how do I go about deleting them?

Chuck S May 13th, 2009 03:01 PM

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

Sendnotice.php is designed to expire ads so they dont show unless of course you elect to show ads for x amount of days after they expire.

You dont see anything on the front end showing if sendnotice is ran. Ads are deleted deleted after being expired when they are two weeks old and you have visited admin panel

jammy_basturd May 13th, 2009 03:27 PM

Quote:

Originally Posted by jammy_basturd (Post 1246754)
That led me on to find the instructions about setting up a cronjob for sendnotice.php, which I've now done.

Yes I know.

I've run the sendnotice.php file, emails were sent, etc. The old adverts are still there.

Chuck S May 13th, 2009 03:31 PM

expired ads will not be shown in classifieds except for x amount of days after they expire in show ad options in admin

Number of days to show sold/closed ads?

jammy_basturd May 13th, 2009 03:41 PM

I've just deleted a load using the bulk action, some dating as far back as Mar 23rd.

The maximum number of days you can have a live advert for is 15 days. The 'Number of days to show sold/closed ads' setting in Admin is set to 10 days.

With those two settings, shouldn't the sendnotice.php file have deleted all the 'expired' adverts?

Chuck S May 13th, 2009 09:09 PM

sendnotice does not delete ads in any way just expire them

In like classifieds 3.x series I put in a check to delete ads over two weeks old but that requires you to visit admin panel and is only in newer classifieds not older code if you using older code. In older versions ads never where deleted just expired meaning you as admin had to delete them through the approval interface in the expired que.

jammy_basturd May 14th, 2009 05:44 AM

So sendnotice.php just expires the adverts and removes them from public view? If so, it hasn't worked on my system, because if I log out I can still see adverts from well over a month ago.

Chuck S May 14th, 2009 07:28 AM

Jammy it just expires ads.

Your oldest non expired ad is this

The Mini Forum Classifieds - Car Stereo - CD Player

If it is not expired then that means it has a duration alot more than 15days or possibly your user got an expire email and renewed the ad.

See the query in sendnotice.php.

Code:

Content visible to verified customers only.


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

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