![]() |
Display Document Icon in Result-page
Hi,
for those who may wont to display an icon if the search-result links to a binary document like word, pdf or anything else, I am adding here a small mod I inserted into "search_function.php" right after the line Code:
$timer->stop('Extracts'); Code:
And I had to alter the code for the table_results array (just underneath). The value for "page_link" looks now Code:
'page_link' => $myimage."<a class=\"phpdig\" href=\"".$url."\" onmousedown=\"return clickit(".$n.",'".$js_url."')\" target=\"".$mytarget."\" >".ereg_replace('%20*',' ',$title)."</a>", Topaz |
All times are GMT -8. The time now is 07:35 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.