Announcement

Collapse
No announcement yet.

Thread's Options in Postbit

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Thread's Options in Postbit

    Can anyone tell me how I can add the thread's options in the postbit (the first post) instead of it's position in the head of the thread.

    I did that in a previous version (3.0.7), however, when I tried to do the same in 3.5.1 an error appears whilst browsing the thread and a blank page.

    Looking for answer

  • #2
    Admin CP -> Styles & Templates -> Style Manager -> -> Show Thread Templates -> SHOWTHREAD

    Find this code. Remove the red code:

    Code:
    <!-- 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 -->
    Admin CP -> Styles & Templates -> Style Manager -> -> Postbit Templates -> postbit or postbit_legacy (depending on which layout you are using)

    Add this code where you want the menu to show up:

    Code:
    <if condition="$post[postcount] == 1">
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center" style="border-bottom-width:0px">
    <tr>
    	<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>
    </table>
    </if>
    I tested this and it works.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X