Osclass Support Forums

Osclass plugin support => Spam Solution Plugin => Topic started by: Andrey on April 18, 2020, 02:48:02 PM

Title: How to change in the new version of the plugin
Post by: Andrey on April 18, 2020, 02:48:02 PM
How to change in the new version of the plugin
From this topic https://forums.osclasspoint.com/spam-solution-plugin/only-detect-duplicate-listings/ (https://forums.osclasspoint.com/spam-solution-plugin/only-detect-duplicate-listings/)
"The reason why I would like to do the reverse - monetization, old listings people can move to the top and buy premium. If the new copy Listing will be added, that there is no monetization, such as they always can add a new one copy, and it will be in the top.
"@Sergej
Got you.
You can try this.
Go to file:
oc-content/plugins/spam_solution/index.php

Find:
Code: [Select]
$item_check['pk_i_id']

Replace with:
Code: [Select]
$item['pk_i_id']"

How to do it in the new plugin too? Anti-Spam & Bot Protect Plugin 3.0.5. Thank you!

Title: Re: How to change in the new version of the plugin
Post by: Andrey on April 19, 2020, 02:32:56 PM
What is the use of updating if it is not possible to do as in 2.2.0. I had to return to version: 2.2.0
Title: Re: How to change in the new version of the plugin
Post by: MB Themes on April 20, 2020, 08:20:53 AM
@Andrey
You must remove old plugin and install new. Modifications will be done in same way as in old version
Title: Re: How to change in the new version of the plugin
Post by: Andrey on April 20, 2020, 11:23:49 AM
That's exactly what I did. I deleted the old one and installed a new one, but there is no such line in the new one to replace

Got you.
You can try this.
Go to file:
oc-content/plugins/spam/index.php

Find:
Code: [Select]
$item_check['pk_i_id']

Replace with:
Code: [Select]
$item['pk_i_id']

There is “$item_check ['pk_i_id']” in the functions.php file, but there are several lines, I don’t know which one to change. Tell me please
Title: Re: How to change in the new version of the plugin
Post by: Andrey on April 20, 2020, 06:05:01 PM
It turned out to change the lines in functions.php. Did not look carefully
Title: Re: How to change in the new version of the plugin
Post by: MB Themes on April 21, 2020, 08:59:21 AM
@Andrey
Glad to hear that.