*

katalin2k

  • **
  • 27 posts
reCaptcha / Listing active days / Deactivate listing / Issues
« on: November 17, 2024, 05:58:37 PM »
Hi,
Using latest osclass with zeta theme:

1. I activated recaptcha and I can bypass it without clicking the checkbox.

2. Is there a way to set how long a listing will stay activated? I can't seem to find it, I only see a setting to alert X days before expiration.

3. Let's say user has 1 listing and after X days he decided he doesn't want to sell that for a while, so he deactivates the listing. After a few days he wants to sell it again, but lacks a button to reactivate the listing, he has to go to edit and save the listing again, but the issue is he doesn't know that that's what he needs to do. Can you add a button to reactivate the listing?

*

MB Themes

Re: reCaptcha / Listing active days / Deactivate listing / Issues
« Reply #1 on: November 19, 2024, 09:58:11 PM »
1) better to use nocaptcha recaptcha plugin. You can bypass it when nocaptcha is just added into form but there is no back check.
2) Category settings, expiration days
3) It is possible to let users to activate & deactivate items. Button may need to be added into user-items.php (see sigma theme as a reference)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

katalin2k

  • **
  • 27 posts
Re: reCaptcha / Listing active days / Deactivate listing / Issues
« Reply #2 on: November 19, 2024, 11:27:06 PM »
1) better to use nocaptcha recaptcha plugin. You can bypass it when nocaptcha is just added into form but there is no back check.
2) Category settings, expiration days
3) It is possible to let users to activate & deactivate items. Button may need to be added into user-items.php (see sigma theme as a reference)
1. Switched to nocaptcha and it works better.
2. Thanks!
3. I will take a look and let you know.

*

katalin2k

  • **
  • 27 posts
Re: reCaptcha / Listing active days / Deactivate listing / Issues
« Reply #3 on: November 20, 2024, 07:32:36 AM »
1) better to use nocaptcha recaptcha plugin. You can bypass it when nocaptcha is just added into form but there is no back check.
2) Category settings, expiration days
3) It is possible to let users to activate & deactivate items. Button may need to be added into user-items.php (see sigma theme as a reference)

Regarding #3, I checked the demo for sigma and when I click to deactivate it returns 404 so I was unable to see the activation button.

*

MB Themes

Re: reCaptcha / Listing active days / Deactivate listing / Issues
« Reply #4 on: November 20, 2024, 01:12:14 PM »
@katalin2k
Try to re-save permalink settings, "reactivate" url is pretty new and may be missing in your config.
When you resave, it should get updated.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

katalin2k

  • **
  • 27 posts
Re: reCaptcha / Listing active days / Deactivate listing / Issues
« Reply #5 on: November 20, 2024, 08:17:12 PM »
@katalin2k
Try to re-save permalink settings, "reactivate" url is pretty new and may be missing in your config.
When you resave, it should get updated.
I still can't see the activate button. I have the activation permalink but can't see it in frontend. Can you please help fix this?
LE: I found that the republish_link_raw function doesn't exist, that's why it doesn't work properly.

Quote
[20-Nov-2024 21:30:17 Europe/Bucharest] PHP Fatal error:  Uncaught Error: Call to undefined function republish_link_raw() in /home/hosting/public_html/oc-content/themes/zeta/user-items.php:139

Moreover that whole thing lacks a bit of logic because if you deactivate a listing it goes into pending approval instead of going into a separate page "Deactivated listings". Please come up with a fix for this because it's very important!

« Last Edit: November 20, 2024, 08:34:48 PM by katalin2k »

*

MB Themes

Re: reCaptcha / Listing active days / Deactivate listing / Issues
« Reply #6 on: November 22, 2024, 03:42:26 PM »
Sigma theme, loop-single.php

Code: [Select]
            <?php if(osc_item_can_renew()) { ?>
              <a href="<?php echo osc_item_renew_url();?>" ><?php _e('Renew''sigma'); ?></a>
            <?php ?>
           
            <?php if(osc_item_is_inactive()) {?>
              <a href="<?php echo osc_item_activate_url();?>" ><?php _e('Activate''sigma'); ?></a>
            <?php ?>
           
            <?php if(osc_item_is_active() && osc_can_deactivate_items()) {?>
              <a href="<?php echo osc_item_deactivate_url();?>" ><?php _e('Deactivate''sigma'); ?></a>
            <?php ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

katalin2k

  • **
  • 27 posts
Re: reCaptcha / Listing active days / Deactivate listing / Issues
« Reply #7 on: November 22, 2024, 06:43:25 PM »
Condition for validation link is also in zeta theme but it had multiple conditions that it probably didn't met so I removed them and now see the button. Thanks!
Now I get 2 notifications:
1. From Item validation plugin: Your listing could not be activated. All listings are validated by Administrator.
2. From Core Flash Messages: The listing has been validated

I would like to just keep the 1st notification so where do I find the second one so I can remove it?

*

MB Themes

Re: reCaptcha / Listing active days / Deactivate listing / Issues
« Reply #8 on: November 24, 2024, 08:10:08 AM »
Deactivate item validation plugin or deactivate option for users to activate/deactivate listings.
Choice is yours.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

katalin2k

  • **
  • 27 posts
Re: reCaptcha / Listing active days / Deactivate listing / Issues
« Reply #9 on: November 24, 2024, 11:18:28 AM »
Deactivate item validation plugin or deactivate option for users to activate/deactivate listings.
Choice is yours.
I need to keep item validation plugin and user validation is disabled but I still get double notifications.

*

MB Themes

Re: reCaptcha / Listing active days / Deactivate listing / Issues
« Reply #10 on: November 25, 2024, 03:53:25 PM »
You can find message in oc-includes/osclass/controller/item.php
Plugin may not be able to stop it.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots