mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
FAQs e_search code clean-up
This commit is contained in:
@@ -22,7 +22,7 @@ class faqs_search extends e_search // include plugin-folder in the name.
|
||||
'return_fields' => array('t.faq_question','t.faq_answer','t.faq_datestamp','x.faq_info_title','t.faq_id','x.faq_info_id','x.faq_info_title', 'x.faq_info_class','x.faq_info_sef'),
|
||||
'search_fields' => array('t.faq_question'=>1.0, 't.faq_answer'=>1.2, "x.faq_info_title"=>0.6, 't.faq_tags'=> 1.4), // fields and weights.
|
||||
'order' => array('t.faq_question' => DESC),
|
||||
'refpage' => 'chat.php'
|
||||
'refpage' => 'faqs.php'
|
||||
);
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ class faqs_search extends e_search // include plugin-folder in the name.
|
||||
|
||||
$qry = " find_in_set(x.faq_info_class,'".USERCLASS_LIST."') AND ";
|
||||
|
||||
/*
|
||||
if (vartrue($parm['time']) && is_numeric($parm['time']))
|
||||
{
|
||||
$qry .= " cb_datestamp ".($parm['on'] == 'new' ? '>=' : '<=')." '".(time() - $parm['time'])."' AND";
|
||||
@@ -66,7 +67,7 @@ class faqs_search extends e_search // include plugin-folder in the name.
|
||||
if (vartrue($parm['author']))
|
||||
{
|
||||
$qry .= " cb_nick LIKE '%".$tp -> toDB($parm['author'])."%' AND";
|
||||
}
|
||||
}*/
|
||||
|
||||
return $qry;
|
||||
}
|
||||
|
Reference in New Issue
Block a user