View Single Post
Old 12-02-2004, 10:59 AM   #4
leonardburton
Green Mole
 
Join Date: Dec 2004
Posts: 10
a simple solution I implemented

I would assume the code in your header will allow you to call the script tag. with that being the case this will put the results at the bottom of the results page. Its a start.

Use the include file so it will be easy to move arond the code later.


Here is what i did that got something working around line 765 in libs/search_function.php I added an include line:

}
$timer->stop('Template parsing');
$timer->stop('All display');
$timer->stop('All');
//$timer->display();


//I included this line here and it is around line 765 but the other code in this snippet comes directly from the file.
include "lexicon.inc";

}

function by_length($a, $b) {
$len_a = strlen($a);
$len_b = strlen($b);
if ($len_a == $len_b) { return 0; }
return ($len_a < $len_b) ? 1 : -1;
}


in lexicon.inc do this:

<?php;
<script src="http://www.massmediem.com/smartsearch/include.cgi?keywords=<? echo $query_string; ?>&java=1"></script>
?>
leonardburton is offline   Reply With Quote