Well, the forum detected me as spamer and block my account. And lost what I wrote
Anyway, thanks for the reply.
I tried but doesn't seems to work.
Replaced this:
case 'search':
if (intval($filter) != 0) {
$filter = JString::strtolower($filter);
$id = intval($filter);
if (version_compare(JVERSION,'1.7.0','<')) {
$search .= $temp."(a.id = $id OR LOWER(a.ad_headline) LIKE '%".$this->_db->getEscaped($filter,true)."%' OR LOWER(a.ad_text) LIKE '%".$this->_db->getEscaped($filter,true)."%')";
}else{
$search .= $temp."(a.id = $id OR LOWER(a.ad_headline) LIKE '%".$this->_db->escape($filter,true)."%' OR LOWER(a.ad_text) LIKE '%".$this->_db->escape($filter,true)."%')";
}
} else {
$filter = JString::strtolower($filter);
if (version_compare(JVERSION,'1.7.0','<')) {
$search .= $temp."(LOWER(a.ad_headline) LIKE '%".$this->_db->getEscaped($filter,true)."%' OR LOWER(a.ad_text) LIKE '%".$this->_db->getEscaped($filter,true)."%')";
}else{
$search .= $temp."(LOWER(a.ad_headline) LIKE '%".$this->_db->escape($filter,true)."%' OR LOWER(a.ad_text) LIKE '%".$this->_db->escape($filter,true)."%')";
}
}
With this:
case 'search':
if (intval($filter) != 0) {
$filter = JString::strtolower($filter);
$id = intval($filter);
if (version_compare(JVERSION,'1.7.0','<')) {
$search .= $temp."(a.id = $id OR LOWER(a.ad_headline) LIKE '%".$this->_db->getEscaped($filter,true)."%' OR LOWER(a.ad_text) LIKE '%".$this->_db->getEscaped($filter,true)."%' OR LOWER(a.ad_materia) LIKE '%".$this->_db->getEscaped($filter,true)."%')";
}else{
$search .= $temp."(a.id = $id OR LOWER(a.ad_headline) LIKE '%".$this->_db->escape($filter,true)."%' OR LOWER(a.ad_text) LIKE '%".$this->_db->escape($filter,true)."%' OR LOWER(a.ad_materia) LIKE '%".$this->_db->escape($filter,true)."%')";
}
} else {
$filter = JString::strtolower($filter);
if (version_compare(JVERSION,'1.7.0','<')) {
$search .= $temp."(LOWER(a.ad_headline) LIKE '%".$this->_db->getEscaped($filter,true)."%' OR LOWER(a.ad_text) LIKE '%".$this->_db->getEscaped($filter,true)."%' OR LOWER(a.ad_materia) LIKE '%".$this->_db->getEscaped($filter,true)."%')";
}else{
$search .= $temp."(LOWER(a.ad_headline) LIKE '%".$this->_db->escape($filter,true)."%' OR LOWER(a.ad_text) LIKE '%".$this->_db->escape($filter,true)."%' OR LOWER(a.ad_materia) LIKE '%".$this->_db->escape($filter,true)."%')";
}
}
I'm doing something wrong?
Obviously, the field that I want to search for is 'ad_materia'