Ups. Have forgotten the code
Search in showthread.php for:
Code:
if ($goto=="nextnewest") {
$thread = verifyid("thread",$threadid,1,1);
if ($getnextnewest=$DB_site->query_first("SELECT threadid
FROM thread
WHERE forumid='$thread[forumid]'
AND lastpost>'$thread[lastpost]'
AND visible=1
AND open<>10
ORDER BY lastpost LIMIT 1")) {
$threadid=$getnextnewest[threadid];
unset ($thread);
} else {
eval("standarderror(\"".gettemplate("error_nonextnewest")."\");");
}
}
if ($goto=="nextoldest") {
$thread = verifyid("thread",$threadid,1,1);
if ($getnextoldest=$DB_site->query_first("SELECT threadid
FROM thread
WHERE forumid='$thread[forumid]'
AND lastpost<'$thread[lastpost]'
AND visible=1
AND open<>10
ORDER BY lastpost DESC LIMIT 1")) {
$threadid=$getnextoldest[threadid];
unset ($thread);
} else {
eval("standarderror(\"".gettemplate("error_nonextoldest")."\");");
}
}
and replace with:
Code:
if ($nextthread=$DB_site->query_first("SELECT threadid,title,views,replycount,postusername FROM thread WHERE forumid='$thread[forumid]' AND lastpost>'$thread[lastpost]' AND visible=1 AND open<>10 ORDER BY lastpost LIMIT 1")) {$nextthr=$nextthread[title]; if(strlen($nextthr)>45) $nextthr=substr($nextthr,0,42)."...";}
if ($lastthread=$DB_site->query_first("SELECT threadid,title,views,replycount,postusername FROM thread WHERE forumid='$thread[forumid]' AND lastpost<'$thread[lastpost]' AND visible=1 AND open<>10 ORDER BY lastpost DESC LIMIT 1")) {$lastthr=$lastthread[title]; if(strlen($lastthr)>45) $lastthr=substr($lastthr,0,42)."...";}
$nextlastthread="<table><tr>".iif($lastthr!="","<td align='right'><smallfont><a href='showthread.php?s=$session[sessionhash]&threadid=$lastthread[threadid]'><b>« Previous Thread</b><br>$lastthr<br>$lastthread[views] Views, $lastthread[replycount] Replys, Starter: $lastthread[postusername]</a></smallfont></td>","")."<td> </td>".iif($nextthr!="","<td><smallfont><a href='showthread.php?s=$session[sessionhash]&threadid=$nextthread[threadid]'><b>Next Thread »</b><br>$nextthr<br>$nextthread[views] Views, $nextthread[replycount] Replys, Starter: $lastthread[postusername]</a></smallfont></td>","")."</tr></table>"
search in template showthread for:
Code:
<smallfont>
<img src="https://vborg.vbsupport.ru/images/prev.gif" alt="" border="0">
<a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=nextoldest">Last Thread</a>
<a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=nextnewest">Next Thread</a>
<img src="https://vborg.vbsupport.ru/images/next.gif" alt="" border="0">
</smallfont>
and replace with: