Advertisement:

Author Topic: exclude one category from spamkiller plugin  (Read 525 times)

studdy

  • Newbie
  • *
  • Posts: 1
exclude one category from spamkiller plugin
« on: June 09, 2016, 10:40:03 pm »
Hello All,

Thanks in Advance.

I am using spamkiller plugin for my site to ban certain words post. I have one adult category where I don't want spamkiller plugin to check the posted ads. How to I do so.(Exclude one Category in spam killer plugin)

Also is there any way that if spamkiller detects banned words and if the person is posting ads in safer category (not in adult category) warn user that your ad will not be posted as it contains adult words instead of the 'check your inbox and validate message'

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: exclude one category from spamkiller plugin
« Reply #1 on: June 10, 2016, 01:59:36 pm »
Hi,

Quote
Exclude one Category in spam killer plugin

spamkiller/index.php

1.- Locate:

Code: [Select]
if( getEnableOn() == 1 || getEnableOn() == 2 ){
Replace with:

Code: [Select]
if( $item['fk_i_category_id'] != 100 && ( getEnableOn() == 1 || getEnableOn() == 2 )){
2.- Locate:

Code: [Select]
if( getEnableOn() == 1 || getEnableOn() == 3 ){
Replace with:

Code: [Select]
if( $item['fk_i_category_id'] != 100 && ( getEnableOn() == 1 || getEnableOn() == 3 )){
(Replace "100" with the ID of your Adult category)

...................

Quote
warn user that your ad will not be posted

spamkiller/index.php

1.- Locate:

Code: [Select]
ModelSpamKiller::newInstance()->blockItem($item[pk_i_id]);
Insert below:

Code: [Select]
osc_add_flash_error_message('Inappropriate language');
2.- Locate:

Code: [Select]
ModelSpamKiller::newInstance()->blockComment($id);
Insert below:

Code: [Select]
osc_add_flash_error_message('Inappropriate language');
(Replace "Inappropriate language" with your customized error message for Ads and Comments).

Regards

osclassLover

  • Newbie
  • *
  • Posts: 39
  • thinking to achieve new in osclass
Re: exclude one category from spamkiller plugin
« Reply #2 on: June 14, 2016, 08:52:14 am »
teseo you are really great, giving solutions even for very complicated things, really great and thanks.