*

Vlad7

  • ****
  • 244 posts
Who marks ads as spam?
« on: December 05, 2022, 06:49:17 PM »
Hello, there is a small problem with ad administration. The fact is that on my site, some users often mark some of my ads as spam! The problem is that I, as an administrator, cannot understand the reasons why users mark ads as spam. In the control panel there are lines showing the minimum information, the title, the author, and that the ad is marked as spam! I check the ad and I can't figure out why it's marked as spam, and most importantly, I don't know who marked it as spam? Dear developers, is it possible to add a line to the control panel where I will see the user who exactly marked the ad as Spam, and is it possible to add a user comment why he considers this spam? Thanks in advance.

*

Brandso

  • ****
  • 108 posts
Re: Who marks ads as spam?
« Reply #1 on: December 05, 2022, 09:22:14 PM »
Even i am having the same problem and the best thing I noticed is that the ads were marked as spam in between my last Admin login and in this duration there were no user logged in who would have marked it as spam. So, in my case the ads where not marked as spam by any registered user. And also I believe any unregistered users can't mark any ad as spam, which means there is some kind of bug.

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: Who marks ads as spam?
« Reply #2 on: December 06, 2022, 09:23:38 AM »
you can not see who marks ads as spam but you can do this so that only registered users marks ads as spam.   

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>

« Last Edit: December 06, 2022, 09:25:23 AM by Own Petz »
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

kenoffice

  • **
  • 26 posts
Re: Who marks ads as spam?
« Reply #3 on: July 19, 2024, 09:01:25 PM »
Hello. I can confirm this behavior. I have a site fresh installed (only for testing, no one visit it :, alive since 2-3 days) and many listings which I put there only for tests are marked as spam. Immediately I figure out that no real person marked as spam, instead the bots (like ahrefs or amazon bot) just hit the links and that's it :). U can check looking on your cpanel/plesk/directadmin server logs.
The hack above can be a solution (ie, only registered users to see the those links/buttons in order to mark listings as spam, inappropiate, etc). But sometimes can be useful if a non-registered user to be able to mark as "wrong category" for example.
But a much better solution will be if dev team of OSC/theme will protect those link by JavaScript in order that only real persons to click on that links.
It is not so hard to implement it, just a little JS code and everyone will be happy :)
There is no perfect classifieds script. I dream to make it.

*

MB Themes

Re: Who marks ads as spam?
« Reply #4 on: July 23, 2024, 02:10:17 PM »
This can be done by bots crawling site.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kenoffice

  • **
  • 26 posts
Re: Who marks ads as spam?
« Reply #5 on: July 23, 2024, 06:38:57 PM »
hi MB. Your answer only confirm what I have wrote above (and most likely others who read this topic can confirm, even if they don't come with new comments). Reason: bots hit the links under each product/item/listing and when this happens the item is marked as spam, or bad catregory, or inapropiate, etc. This is for sure. Now we need to find the solution. The one above (posted by OwnPetz) is ok but it allows only registered users to mark. But why to stop users who are not registered to mark something inapropiate ?
Is there any plan in future development of themes to implement an JS script which can protect those links to be hitted by bots ? I think is not hard to do it.
thank you !
There is no perfect classifieds script. I dream to make it.