The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
The end goal is to move the thread_controls toolbar into the navbar beside the "Quick Links". I think we might even be able to use a hook location for this. Take a look at the 2nd image for an idea of what I'm talking about.
The first thing I did, was add the "thread_controls" code to the navbar template (1st image) to see if it works properly. It doesn't. All the links don't relate to the thread you're in. ie. Show Printable Thread is coming up: http://www.wonderfulwaterloo.com/printthread.php?t= when it should be: http://www.wonderfulwaterloo.com/pri...&pp=20&page=95 Live example: http://www.wonderfulwaterloo.com/sho...=95&styleid=57 Here's the code I inserted into the navbar template, directly after "</div><!-- closing div for above_body -->" HTML Code:
<div id="thread_controls" class="thread_controls toolsmenu"> <div> <ul id="postlist_popups" class="postlist_popups popupgroup"> <vb:if condition="$show['firstunreadlink']"> <li class="popupmenu"><h6><a class="firstunread" href="{vb:raw firstunread}">{vb:rawphrase view_first_unread} </a></h6></li> </vb:if> {vb:raw template_hook.threadtoolbar} <li class="popupmenu" id="threadtools"> <h6><a class="popupctrl" href="javascript://">{vb:rawphrase thread_tools}</a></h6> <ul class="popupbody popuphover"> <li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}printthread.php?{vb:raw session.sessionurl}t={vb:raw threadid}<vb:if condition="$perpage">&pp={vb:raw perpage}</vb:if><vb:if condition="$pagenumber">&page={vb:raw pagenumber}</vb:if>" accesskey="3" rel="nofollow">{vb:rawphrase show_printable_version}</a></li> <li><a href="sendmessage.php?{vb:raw session.sessionurl}do=sendtofriend&t={vb:raw threadid}" rel="nofollow">{vb:rawphrase email_this_page}…</a></li> <li> <vb:if condition="$show['subscribed']"> <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=removesubscription&t={vb:raw threadid}" rel="nofollow">{vb:rawphrase unsubscribe_from_this_thread}</a> <vb:else /> <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=addsubscription&t={vb:raw threadid}" rel="nofollow">{vb:rawphrase subscribe_to_this_thread}…</a> </vb:if> </li> <vb:if condition="$show['addpoll']"> <li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}poll.php?{vb:raw session.sessionurl}do=newpoll&t={vb:raw threadid}">{vb:rawphrase add_a_poll_to_this_thread}…</a></li> </vb:if> <li><ul class="blockrow" style="width:100%;">{vb:raw bookmarksites}</ul></li> </ul> </li> <vb:if condition="$show['adminoptions']"> <li class="popupmenu" id="moderationtools"> <h6><a class="popupctrl" href="javascript://">{vb:rawphrase administrative}</a></h6> <form action="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}postings.php" method="post"> <ul class="popupbody popuphover"> <vb:if condition="$show['openclose']"> <li><label> <input type="radio" name="do" value="openclosethread" checked="checked" tabindex="1" /> <vb:if condition="$show['closethread']">{vb:rawphrase close_thread}<vb:else />{vb:rawphrase open_thread}</vb:if> </label></li> </vb:if> <vb:if condition="$show['moderatethread']"> <li><label> <input type="radio" name="do" value="moderatethread" tabindex="2" /> <vb:if condition="$show['approvethread']">{vb:rawphrase approve_thread}<vb:else />{vb:rawphrase unapprove_thread}</vb:if> </label></li> </vb:if> <vb:if condition="$show['movethread']"> <li><label><input type="radio" name="do" value="movethread" tabindex="3" /> {vb:rawphrase move_thread}…</label></li> <li><label><input type="radio" name="do" value="copythread" tabindex="4" /> {vb:rawphrase copy_thread}…</label></li> </vb:if> <vb:if condition="$show['editthread']"> <li><label><input type="radio" name="do" value="editthread" tabindex="5" /> {vb:rawphrase edit_thread}…</label></li> </vb:if> <vb:if condition="$show['deletethread']"> <li><label><input type="radio" name="do" value="deletethread" tabindex="6" /> {vb:rawphrase delete_thread}…</label></li> </vb:if> <vb:if condition="$show['managethread']"> <li><label> <input type="radio" name="do" value="stick" tabindex="7" /> <vb:if condition="$show['unstick']">{vb:rawphrase unstick_thread}<vb:else />{vb:rawphrase stick_thread}</vb:if> </label></li> <li><label><input type="radio" name="do" value="mergethread" tabindex="8" /> {vb:rawphrase merge_threads}…</label></li> <li><label><input type="radio" name="do" value="removeredirect" tabindex="9" /> {vb:rawphrase remove_redirects}</label></li> </vb:if> <li class="formsubmit"> <input type="submit" class="button" value="{vb:rawphrase proceed_ellipsis}" tabindex="10" /> <input class="button" type="reset" value="{vb:rawphrase reset}" tabindex="11" /> </li> </ul> <input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" name="t" value="{vb:raw threadid}" /> <input type="hidden" name="pollid" value="{vb:raw pollid}" /> </form> </li> </vb:if> <vb:if condition="$show['search']"> <li class="popupmenu searchthread menusearch" id="searchthread"> <h6><a class="popupctrl" href="javascript://">{vb:rawphrase search_thread}</a></h6> <form action="search.php" method="post"> <ul class="popupbody popuphover"> <li> <input type="text" name="query" class="searchbox" value="{vb:rawphrase search_dots}" tabindex="13" /> <input type="submit" class="button" value="{vb:rawphrase search}" tabindex="14" /> </li> <li class="formsubmit"> <div class="submitoptions"> </div> <div class="advancedsearchlink"><a href="search.php?{vb:raw session.sessionurl}search_type=1&searchthreadid={vb:raw thread.threadid}&contenttype=vBForum_Post">{vb:rawphrase advanced_search}</a></div> </li> </ul> <input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" name="do" value="process" /> <input type="hidden" name="searchthreadid" value="{vb:raw thread.threadid}" /> <input type="hidden" name="search_type" value="1" /> <input type="hidden" name="contenttype" value="vBForum_Post" /> </form> </li> </vb:if> <vb:if condition="$show['inlinemod']"> <li class="popupmenu" id="post_imodsel"> <h6><a class="popupctrl" href="javascript://">{vb:rawphrase inline_mod}</a></h6> <ul class="popupbody popuphover"> <li><a href="javascript://" id="post_imodsel:all">{vb:rawphrase select_all}</a></li> <li><a href="javascript://" id="post_imodsel:none">{vb:rawphrase deselect_all}</a></li> <li><a href="javascript://" id="post_imodsel:invert">{vb:rawphrase invert_selection}</a></li> <li> </li> <li><a href="javascript://" id="post_imodsel:flag:1">{vb:rawphrase select_unapproved_posts}</a></li> <li><a href="javascript://" id="post_imodsel:flag:2">{vb:rawphrase select_deleted_posts}</a></li> <li><a href="javascript://" id="post_imodsel:flag:4">{vb:rawphrase select_posts_with_attachments}</a></li> <li><a href="javascript://" id="post_imodsel:flag:8">{vb:rawphrase select_posts_from_guests}</a></li> </ul> </li> </vb:if> </ul> </div> </div> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|