The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#2
|
||||
|
||||
hey mate, very good idea, so this links can be usefull
i don't think the old style is used so much |
#3
|
||||
|
||||
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")."\");"); } } 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>" 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> Code:
$nextlastthread |
#4
|
||||
|
||||
i was sure you want to post the code in the next post
A tip for the next version: Don't make the Design hardcoded as you made here, would be better if you can set own designs in a template |
#5
|
||||
|
||||
Hmm. Right. Thx for the tip. I always make this to my Hacks actually, too
Quote:
|
#6
|
||||
|
||||
Nice
I will probably only use the title of the thread though, that extra information seems to make it look cluttered. |
#7
|
|||
|
|||
Can someone make it so it uses a template instead of being so hard coded because i have different styles and I have different pics for each style for the next and previous buttons. Thanks. That would really really help.
|
#8
|
||||
|
||||
i'm not the creator of it, and i think he'll do it more comfortable hisself, but you can do this:
replace PHP Code:
PHP Code:
|
#9
|
||||
|
||||
Thx Xenen
I will publish a new version with Templates - soon... |
#10
|
|||
|
|||
i'm looking for this hack since a long time
do you think that you can publish the new version soon ? up one year later |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|