Hello,
For the Classifieds section of my web site, I would like to make it so advertisements never expire. Is there a way to do this?
Thank you.
Hello, For the Classifieds section of my web site, I would like to make it so advertisements never expire. Is there a way to do this? Thank you. BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Hi there. Open your /inc/classes/BxDolClassifieds.php file find all AND DATE_ADD(`ClassifiedsAdvertisements`.`DateTime` , INTERVAL `ClassifiedsAdvertisements`.`LifeTime` DAY) > NOW() and remove them. after it find all AND DATE_ADD(`ClassifiedsAdvertisements`.`DateTime`, INTERVAL `ClassifiedsAdvertisements`.`LifeTime` DAY) > NOW() and delete it. next - find all DATE_ADD(`ClassifiedsAdvertisements`.`DateTime`, INTERVAL `ClassifiedsAdvertisements`.`LifeTime` DAY) > NOW() and change it to 1 And then find AND DATE_ADD( `ClassifiedsAdvertisements`.`DateTime` , INTERVAL `ClassifiedsAdvertisements`.`LifeTime` DAY ) > NOW( ) It should help. Regards Artur |
Hello, Thanks for the reply, but when I do that, I get database errors. Am I doing something wrong? Thank you. BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
I have edited answer. |
Thanks, it's working now. BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Anyone on this please? |
Change what to "1"? I am looking to keep my ads in indefinitely, but these instructions sound unclear to me. - ~~L - Hi there. Open your /inc/classes/BxDolClassifieds.php file find all AND DATE_ADD(`ClassifiedsAdvertisements`.`DateTime` , INTERVAL `ClassifiedsAdvertisements`.`LifeTime` DAY) > NOW() and remove them. after it find all AND DATE_ADD(`ClassifiedsAdvertisements`.`DateTime`, INTERVAL `ClassifiedsAdvertisements`.`LifeTime` DAY) > NOW() and delete it. next - find all DATE_ADD(`ClassifiedsAdvertisements`.`DateTime`, INTERVAL `ClassifiedsAdvertisements`.`LifeTime` DAY) > NOW() and change it to 1 And then find AND DATE_ADD( `ClassifiedsAdvertisements`.`DateTime` , INTERVAL `ClassifiedsAdvertisements`.`LifeTime` DAY ) > NOW( ) It should help. Regards Artur |
I just need to know exactly how to do this....I have changed it in the admin, but when folks post their ad it still says for 30 days only. That would be ok if I could get them to last 365 days initially. Help please. - ~~ L |
I just need to know exactly how to do this....I have changed it in the admin, but when folks post their ad it still says for 30 days only. That would be ok if I could get them to last 365 days initially. Help please. - ~~ L
Worked fine for me..
Check your Advanced Settings again, Used you Save Changes button (not Save button)
Post New Ads will use your new setting 365 days
Ads posted before you edit setting, can you change from DB (Table ClassifiedsAdvertisements and LifeTime) |
Thanks for the response okweb! - So I just change the 30 to 365 or whatever number of days? (I am looking at it now.) - ~~ L I just need to know exactly how to do this....I have changed it in the admin, but when folks post their ad it still says for 30 days only. That would be ok if I could get them to last 365 days initially. Help please. - ~~ L Worked fine for me.. Check your Advanced Settings again, Used you Save Changes button (not Save button) Post New Ads will use your new setting 365 days Ads posted before you edit setting, can you change from DB (Table ClassifiedsAdvertisements and LifeTime) |
I changed the 30 to 365 by clicking correct button. Thx. - But I went into database and changed each individual ad Lifespan to 365 and they don't appear. I even changed the date and they don't appear....? Cleared cache etc. |
I changed the 30 to 365 by clicking correct button. Thx. - But I went into database and changed each individual ad Lifespan to 365 and they don't appear. I even changed the date and they don't appear....? Cleared cache etc.
If you changed DateTime in Table ClassifiedsAdvertisements it will not work, date coming from table ClassifiedsAdvertisementsMedia.
Change How long can Classifieds live (days) form 365 to 3650 Ads don't expire before after about 10 years, no need to edit it after 365 days (if users do not select anything lower, for example 1 day) |
If you change How long can Classifieds live (days) to 3650 days,
Find ~line 341:
$sStepOptions = ''; |
I know this is an old post and i apologise for being a pain in the ....
But, I cannot find the right file to change and im assuming its because of the new updates etc.
I just need to know where the file is now so i can change it.
Thank you MeMe |
I know this is an old post and i apologise for being a pain in the ....
But, I cannot find the right file to change and im assuming its because of the new updates etc.
I just need to know where the file is now so i can change it.
Thank you MeMe
Hi you can try this, will change Classifieds live (days) to 3650 days.
|
Thank you.
I will check it out. |