From 04e5802803b8398e2b6a50f71e1b47f96cb2501b Mon Sep 17 00:00:00 2001 From: Diatrex Date: Mon, 11 May 2020 13:02:03 +0300 Subject: [PATCH 1/2] Allow 0 limit ads --- .../advs-module/src/Http/Controller/advsController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php b/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php index 4149e8be5..676ada8e8 100644 --- a/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php +++ b/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php @@ -549,7 +549,8 @@ class AdvsController extends PublicController $count_user_ads = count($this->adv_model->userAdv()->get()); - if (setting_value('visiosoft.module.advs::default_adv_limit') < $count_user_ads) { + if (setting_value('visiosoft.module.advs::default_adv_limit') < $count_user_ads || + (setting_value('visiosoft.module.advs::default_adv_limit') == 0 && $count_user_ads == 0)) { if ($advModel->is_enabled('packages') and $adv->slug == "") { $parent_cat = $categoryModel->getParentCats($request->cat1, 'parent_id'); $packageModel = new PackageModel(); From 69a61f2c86fb7d22724e14656cc11bd04cca7507 Mon Sep 17 00:00:00 2001 From: Diatrex Date: Tue, 12 May 2020 11:55:49 +0300 Subject: [PATCH 2/2] #1418 Adpost remove link in lang file --- .../visiosoft/advs-module/resources/lang/en/message.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/addons/default/visiosoft/advs-module/resources/lang/en/message.php b/addons/default/visiosoft/advs-module/resources/lang/en/message.php index bd0868e39..6b458b4ff 100644 --- a/addons/default/visiosoft/advs-module/resources/lang/en/message.php +++ b/addons/default/visiosoft/advs-module/resources/lang/en/message.php @@ -7,11 +7,6 @@ return [ 'agreement' => 'By clicking Post, you agree to our Terms of Use and Privacy Policy acknowledge that you are the rightful owner of this item.', 'update_category_msg' => 'The classified category will be updated.', 'updated_category_msg' => 'Category successfully edited.', - 'max_ad_limit' => [ - 'title' => "Your Free Ad Limit is Out.", - 'continueBtn' => "Show Ads", - 'link' => "/profile", - ], 'create_ad_with_post_cat' => [ 'title' => "Category selection has been completed.", 'success' => true,