PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds How do I...?

Classifieds How do I...? Wondering how to do something in Classifieds?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old February 21st, 2007, 09:21 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: May 2003
Location: Spring Branch, Texas
Posts: 391
SQL to mass change duration of existing ads

I've had a devil of a problem with old ads. Seems I didn't notice the "no expire" option was available and a lot of my users selected that option.

I've now gone in and changed the duration options in my templates, but I have about 45 ads in the database with a duration of 9999. I'd like to change all of those to 30 days and let them expire out of the system.

Could you please give me an example of an SQL command that I can run to mass change all ads in the product table with a duration of 9999 to a duration of 30?

I sure would appreciate it.

Thanks
Paul Green
creativepart is offline   Reply With Quote
Old February 21st, 2007, 09:35 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
UPDATE cp_products SET enddate='1174366800' WHERE enddate > ' 1174367450'
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old February 21st, 2007, 10:30 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: May 2003
Location: Spring Branch, Texas
Posts: 391
Thanks, I appreciate that.

I have some sold ads that are not going away. I run the cron job daily and process the expired ads deletes. They don't show up if you peruse the cats, but they show up in the toppage random ads display on my forum.

They all have status numbers -- and none of the non-sold ads seem to have status numbers. Can you give me an SQL to delete all ads with a status number? (We don't have any auctions, if that matters.) There are only 22 of these and I can manually delete them. Why would these not go away???

One more question, I see today that my licenses expired earlier this month. I have PP, RP and PP-C products. Do I need to renew all three licenses? Or just one?

Thanks
Paul Green
PS. I was surprised that I didn't receive any email notice that my licenses expired as well.

Last edited by creativepart; February 21st, 2007 at 10:50 AM.
creativepart is offline   Reply With Quote
Old February 21st, 2007, 11:23 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
You would renew whatever ones you want to have members access to

SOLD ADS should not be displayed anywhere you can selectively delete those or allow the cron task in admin to delete things over 2 weeks old
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mass classified ads posting arkans Before You Buy 3 April 30th, 2007 06:00 PM
Change duration of my auction? tewkesburylocal Classifieds How do I...? 3 November 20th, 2006 09:03 AM
Edit/change duration of an ad? CavySpirit Classifieds How do I...? 1 September 5th, 2006 07:20 AM
Mass Uploading (FTP) and Existing Filenames ConqSoft Bugs From 1.0.0 1 July 9th, 2005 09:39 AM
Mass Uploading (FTP) and Existing Filenames ConqSoft Bugs From 1.0.0 6 May 30th, 2005 04:03 PM


All times are GMT -5. The time now is 07:39 AM.

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