PDA

View Full Version : [fixed] Can't search in custom templates


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");

Floris
Tue 3rd Sep '02, 5:15am
Great! Oh, and for those who can't find this .php file, it is in your admin/ dir :P
Thank you for sharing. "patched"

Axel Foley
Tue 3rd Sep '02, 6:31pm
I noticed that the distribution file hasn't been updated for this (and PPN's login fix above) fix, can someone confirm?

I thought that FIXED bugs were fixed immediately also in distribution files, is this still the current procedure?

Scott MacVicar
Tue 3rd Sep '02, 6:39pm
No it means it will be fixed in the next version.

tubedogg
Tue 3rd Sep '02, 7:06pm
Originally posted by Axel Foley
is this still the current procedure?Never has been.

Erwin
Thu 5th Sep '02, 6:41am
Thanks Chen. :)