Threaded Mode, Latest post diplayed ontop of links
Click Edit templates
Expand the template group 'Show Thread Templates'
Step 1
Edit the 'SHOWTHREAD' template
Replace ALL of the current code with:
Step 2
Edit the 'showthread_list' template
Replace ALL of the current code with:
I didn't try this out - Blind coding you could say, I'm pretty sure its right though.
Click Edit templates
Expand the template group 'Show Thread Templates'
Step 1
Edit the 'SHOWTHREAD' template
Replace ALL of the current code with:
PHP Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$thread[title]</title>
$headinclude
</head>
<body onload="$onload">
$header
$navbar
$poll
<a name="poststop" id="poststop"></a>
<!-- controls above postbits -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<if condition="$show['largereplybutton']">
<td<if condition="$show['pagenav']"> width="33%"</if> class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$FIRSTPOSTID"><if condition="$show['closethread']">Post Reply<else />Topic Closed</if></a></td>
<else />
<td class="smallfont"> </td>
</if>
<!-- thread display mode menu -->
<td<if condition="$show['pagenav']"> width="34%"</if> align="<if condition="$show['pagenav']">center<else />right</if>" class="smallfont">
<if condition="$show['linearmode']">$vbphrase[linear_mode] |
<else /><a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&mode=linear$highlightwords#post$FIRSTPOSTID">$vbphrase[switch_to_linear_mode]</a> |
</if>
<if condition="$show['threadedmode']">
$vbphrase[threaded_mode]
<else />
<a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&mode=threaded$highlightwords#post$FIRSTPOSTID">$vbphrase[switch_to_threaded_mode]</a>
</if>
</td>
<!-- / thread display mode menu -->
<if condition="$show['pagenav']"><td align="right" width="33%">$pagenav</td></if>
</tr>
</table>
<!-- / controls above postbits -->
<!-- end content table -->
$spacer_close
<!-- / end content table -->
<div id="posts">$postbits</div>
<if condition="$show['threadedmode']">
<!-- thread posts list -->
$threadlist
<!-- /thread posts list -->
</if>
<!-- start content table -->
$spacer_open
<!-- / start content table -->
<!-- controls below postbits -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr valign="top">
<if condition="$show['largereplybutton']">
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$LASTPOSTID"><if condition="$show['closethread']">Post Reply<else />Topic Closed</if></a></td>
<else />
<td class="smallfont"> </td>
</if>
<if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls below postbits -->
<br />
<div class="smallfont" align="center">
<strong>«</strong>
<a href="showthread.php?$session[sessionurl]t=$threadid&goto=nextoldest">$vbphrase[prev_thread]</a>
|
<a href="showthread.php?$session[sessionurl]t=$threadid&goto=nextnewest">$vbphrase[next_thread]</a>
<strong>»</strong>
</div>
$footer
</body>
</html>
Edit the 'showthread_list' template
Replace ALL of the current code with:
PHP Code:
<script type="text/javascript">
<!--
var imgdir_statusicon = "$stylevar[imgdir_statusicon]";
var imgdir_misc = "$stylevar[imgdir_misc]";
var cleargifurl = "$vboptions[cleargifurl]";
var guestphrase = "$vbphrase[guest]";
var morephrase = "$vbphrase[more_replies_below]";
var highlightwords = "$highlightwords";
//-->
</script>
<script type="text/javascript" src="clientscript/vbulletin_thrdpostlist.js"></script>
<script type="text/javascript">
<!--
// initialize some variables
var curpostid = $curpostid;
var quickreply = <if condition="$SHOWQUICKREPLY">true<else />false</if>;
// cached posts (no page reload required to view)
$jspostbits
// next/previous post info
$navjs
// cached usernames
pu[0] = guestphrase;
$userjs
// -->
</script>
<style type="text/css">
<!--
#links div { white-space: nowrap; }
#links img { vertical-align: middle; }
#links .x { behavior: url(clientscript/branchcollapse.htc); }
#links a.ieB { behavior: url(clientscript/postlink.htc); }
-->
</style>
<div style="background-color:#ffffff;padding:1px;border: 1px solid #c0c0c0;margin-top:8px;margin-bottom:8px;">
<table cellpadding="1" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="alt2">
<div class="smallfont" style="text-align:$stylevar[center];">
<!-- start post links -->
<script type="text/javascript">
<!--
$links
//-->
</script>
<!-- end post links -->
</div>
</td>
</tr>
<if condition="$threadedmode==1">
<tr>
<td class="alt2" align="center"><div class="smallfont">
<a href="javascript:showPrevNextPost(0)">$vbphrase[prev]</a>
|
<a href="javascript:showPrevNextPost(1)">$vbphrase[next]</a>
</div></td>
</tr>
</if>
</table>
</div>
Comment