THIS WILL ADD THREAD TITLES TO "VIEW NEW POSTS" ONLY!
** But it does not work for any search fuctions...not sure why.
Can anyone else help?
PHP Code:
edit template:
searchresultbit_threadonly
find:
<a href="showthread.php?s=$session[sessionhash]&threadid=$searchresult[threadid]$highlightwords">$searchresult[threadtitle]</a>
replace with:
<a href="showthread.php?s=$session[sessionhash]&threadid=$searchresult[threadid]$highlightwords" title="$threadmsg ... (more)">$searchresult[threadtitle]</a>
edit search.php
find:
eval ("\$searchresultbits .= \"".gettemplate("$searchtemplatebit")."\";");
add above:
$dpost=$DB_site->query_first("SELECT pagetext FROM post WHERE threadid='$thread[threadid]' ORDER BY dateline ASC LIMIT 1");
$threadmsg = substr($dpost[pagetext], 0, 200);
$threadmsg = eregi_replace("\r\n", "\n", $threadmsg);
$threadmsg = eregi_replace("\"", "", $threadmsg);
$threadmsg = eregi_replace("\'", "", $threadmsg);