Support Forums - Classified Ads Script Osclass

General osclass questions => General discussion => Topic started by: Post Free Online on March 22, 2025, 09:32:14 AM

Title: Listings are automatically marked spam, duplicate and moving to Reported listing
Post by: Post Free Online on March 22, 2025, 09:32:14 AM
Listings are automatically marked spam, duplicate and moving to Reported listings. Every time I have to clear them all. Earlier it was not like that but recently it started behaving like this. Anti-Spam & Bot Protect Plugin i disabled and still facing issue. Please help me to resolve it.
Title: Re: Listings are automatically marked spam, duplicate and moving to Reported listing
Post by: Oleksandr Kravchuk on March 24, 2025, 08:25:35 PM
I have the same issue.
Title: Re: Listings are automatically marked spam, duplicate and moving to Reported listing
Post by: MB Themes on March 26, 2025, 02:14:29 PM
It's not automatically, those are bots clicking on those links
Title: Re: Listings are automatically marked spam, duplicate and moving to Reported listing
Post by: Own Petz on March 28, 2025, 04:04:12 AM
You can simply ad below codes.. so that only logged in user can mark products as spam.

I was also facing this issue before.. many listing Marking as spam because of bot.. so I have added this



You can add If else osc_is_web_user_logged_in() in item.php

check here - I have done in my website

<div id="report" class="noselect">
  <a href="#" onclick="return false;">
    <i class="fas fa-exclamation-circle"></i>
    <?php _e('Report listing', 'delta'); ?>
  </a>

  <div class="cont-wrap">
    <div class="cont">
      <?php if(!osc_is_web_user_logged_in()) { ?>
        <em><?php _e('You must be logged in to report listing', 'delta'); ?></em>
      <?php } else { ?>
        <a id="item_spam" class="reports" href="<?php echo osc_item_link_spam() ; ?>" rel="nofollow"><?php _e('Spam', 'delta') ; ?></a>
        <a id="item_bad_category" class="reports" href="<?php echo osc_item_link_bad_category() ; ?>" rel="nofollow"><?php _e('Misclassified', 'delta') ; ?></a>
        <a id="item_repeated" class="reports" href="<?php echo osc_item_link_repeated() ; ?>" rel="nofollow"><?php _e('Duplicated', 'delta') ; ?></a>
        <a id="item_expired" class="reports" href="<?php echo osc_item_link_expired() ; ?>" rel="nofollow"><?php _e('Expired', 'delta') ; ?></a>
        <a id="item_offensive" class="reports" href="<?php echo osc_item_link_offensive() ; ?>" rel="nofollow"><?php _e('Offensive', 'delta') ; ?></a>
      <?php } ?>
    </div>
  </div>
</div>