Chen
Sun 1st Sep '02, 10:24am
If you didn't notice already, if you search for templates custom ones will never show up.
To fix this, open template.php and replace:
if (isset($searchstring)) {
$sqlinsert=" AND INSTR(t2.template,'".addslashes($searchstring)."')>0 ";
$expandset=0;
}
// do the rest of the templates
$templatesets=$DB_site->query("SELECT templatesetid,title FROM templateset");
With:
if (isset($searchstring)) {
$sqlinsert=" AND INSTR(t1.template,'".addslashes($searchstring)."')>0 ";
$expandset=0;
}
// do the rest of the templates
$templatesets=$DB_site->query("SELECT templatesetid,title FROM templateset");
To fix this, open template.php and replace:
if (isset($searchstring)) {
$sqlinsert=" AND INSTR(t2.template,'".addslashes($searchstring)."')>0 ";
$expandset=0;
}
// do the rest of the templates
$templatesets=$DB_site->query("SELECT templatesetid,title FROM templateset");
With:
if (isset($searchstring)) {
$sqlinsert=" AND INSTR(t1.template,'".addslashes($searchstring)."')>0 ";
$expandset=0;
}
// do the rest of the templates
$templatesets=$DB_site->query("SELECT templatesetid,title FROM templateset");