PDA

View Full Version : Toolbar and page bar BELOW the first post


Fidox
06-16-2006, 01:47 PM
I would like to ask you what should I do to place toolbar and page bar below the first post. I am trying to place this code

<!-- controls above postbits -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<if condition="$show['largereplybutton']">
<td class="smallfont"><a href="newreply.htm?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
<else />
<td class="smallfont">&nbsp;</td>
</if>
<if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls above postbits -->

<!-- toolbar -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
<td class="tcat" width="100%">
<div class="smallfont">
<if condition="$show['firstunreadlink']">
<a href="$firstunread"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[view_first_unread]" border="0" /></a>
<a href="$firstunread"><strong>$vbphrase[view_first_unread]</strong></a>
</if>
&nbsp;
</div>
</td>
<td class="vbmenu_control" id="threadtools" nowrap="nowrap">
<a href="$show[nojs_link]#goto_threadtools"<if condition="is_browser('ie')"> accesskey="3"</if>>$vbphrase[thread_tools]</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadtools"); </script></if>
</td>
<if condition="$show['search']">
<td class="vbmenu_control" id="threadsearch" nowrap="nowrap">
<a href="$show[nojs_link]#goto_threadsearch">$vbphrase[search_this_thread]</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadsearch"); </script></if>
</td>
</if>
<if condition="$show['threadrating']">
<td class="vbmenu_control" id="threadrating" nowrap="nowrap">
<a href="$show[nojs_link]#goto_threadrating"><if condition="$show['rating']">$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" /><else />$vbphrase[rate_thread]</if></a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadrating"); </script></if>
</td>
</if>
<if condition="$vboptions['allowthreadedmode']">
<td class="vbmenu_control" id="displaymodes" nowrap="nowrap">
<a href="$show[nojs_link]#goto_displaymodes">$vbphrase[display_modes]</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("displaymodes"); </script></if>
</td>
</if>

<if condition="$show['inlinemod']">
<if condition="$show['popups']">
<td class="vbmenu_control" id="imod" align="center" title="$vbphrase[moderation]"><script type="text/javascript"> vbmenu_register('imod'); </script></td>
<else />
<td class="thead" align="center">
<input type="checkbox" name="allbox" id="checkall_all" title="$vbphrase[check_uncheck_all]" onclick="inlineMod.check_all()" />
</td>
</if>
</if>

</tr>
</table>
<!-- / toolbar -->

into my postbit template, but it looks like there is some variable scope problem, code is placed correctly, but variables are not replaced.

Ntfu2
06-16-2006, 01:56 PM
The code should be at the very end of your postbit(postbit_legacy) template

Start it with this

<if condition="$post[postcount] % $vboptions[maxposts] == 1">


And put a </if> at the very end to close everything off :)

Fidox
06-16-2006, 02:35 PM
The code should be at the very end of your postbit(postbit_legacy) template

Start it with this

<if condition="$post[postcount] % $vboptions[maxposts] == 1">


And put a </if> at the very end to close everything off :)
Thank you, but it does not seem to work to me.

I am using this add-on https://vborg.vbsupport.ru/showthread.php?t=93706 and want to get the same look as here at vbulletin.org - first post fixed at the top of every page and toolbar and page bar below it. If I add the code at the end of postbit_first template, the code is placed where I want it to be, but variables are not parsed.

Ntfu2
06-16-2006, 03:15 PM
Sorry misunderstood you :-p thought yuo just wanted something to show below the first post (like ads :oops:)

PoetJA-1975
10-08-2006, 09:06 AM
Hey - I think what FIDOX is talking about is what I've been searching for:

like on vB.org - after the 1st post of each DOWNLOADABLE modification or hack, the thread tools appear below that 1st post, as opposed to the layout of this thread, where there is no download available = it's just regular postbit legacy layout...

I've actually been looking for a hack that's similar - I've been searching for a hack that has the look/feel of the downloadable vb.org layout.

Hope this makes sense and definitely hope someone knows what I'm trying to describe o_O - but at anyrate: HELP!.... Please. :)

Jacquii.