0

Excluded Words doesn't work

<p>Documentation doesn't say what the delimeter is. I'm assuming it's a comma ","</p>
<p>When settings are saved the comma and whitespace are removed and the words appear as one string.</p>
<p>no,yes,hi,if,you become noyeshiifyou</p>
<p>Is there another delimeter or is this a bug and you have a fix?</p>
<p>Thank you</p>


Category: Member Questions

Like it on Facebook, Tweet it or share this question on other bookmarking websites.

16

SOLVED:


Solution above doesn't work.


You need to open administrator/components/com_communityanswers/models/config.php


Find this line, should be line 46


$filtered_keywords = JRequest::getVar(FILTERED_KEYWORDS, 'blah,blah,blah', 'post','CMD');


and change it to


$filtered_keywords = JRequest::getVar(FILTERED_KEYWORDS, 'blah,blah,blah', 'post','STRING');


Then go to config area and input words to exclude again

Answered


10

The words should be comma separated. Looks like there is a bug with it. Remove the following code from com_communityanswers/models/answers.php at around line 67


if($filtered_keywords){
$filtered_keywords = "," . $filtered_keywords . ",";
$filtered_keywords = preg_replace("/^[\,]*$/", "", $filtered_keywords);
}
Answered


3

Thanks Dave for solution.
Answered


Please register/login to answer this question.  Click here to login