Encance Tiki search results with tiki pardes output: *tiki/lib/search/searchlib.php around line 749: **in "function find_exact_wiki" ***Replace: ++$cant; ***With: $page=$res["page"]; ++$cant; $datanew=$this->PowerResult($res["data"],$words); ***Replace: ++$cant; $ret[] = array( 'pageName' => $res["page"], 'location' => tra("Wiki"), 'data' => substr($res["data"],0,250), 'hits' => $res["hits"], 'lastModif' => $res["lastModif"], 'href' => $href, 'relevance' => $res["count"] ); ***With: $ret[] = array( 'pageName' => $res["page"], 'location' => tra("Wiki"), 'data' => $datanew, 'hits' => $res["hits"], 'lastModif' => $res["lastModif"], 'href' => $href, 'relevance' => $res["count"] ); **After "function find_exact_wiki" around line 784: ***add: function PowerResult ($datanew1, $words) { $pagelines = split("\n", $datanew1); $datanew=''; $linenum=0; foreach ($pagelines as $pageline) { $linenum +=1; foreach ($words as $word) { $before=''; $after=''; if(stristr($pageline,$word ) !== false) { // $datanew .= $this->parse_data($pageline,false); if(stristr($pageline,'~|~')) {$before='{FANCYTABLE()}'; $after='{FANCYTABLE}';} $datanew .= ''; } } } $datanew .='
Line: '. $linenum . ' ' . $this->parse_data($before.$pageline.$after,false).'
'; return $datanew; } *tiki-searchindex.tpl around line 92: **Repalce:
{$results[search].data|strip_tags}
**with: {assign var="page" val={"´$results[search].pageName´"}
{$results[search].data}