Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
Prev Previous Post   Next Post Next
  #1  
Old 06-29-2011, 09:23 PM
DevOne5555 DevOne5555 is offline
 
Join Date: Feb 2011
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Move the Tag Box above Quick Reply

For some reason on 4.x Internet Brands decided to move the Tag Box after Quick Reply. I have Similar Threads enabled, so thread tags are virtually hidden at the bottom of my showthread template. I found the code for the tag box:

Code:
<vb:if condition="$show['tag_box']">
	<h4 class="threadinfohead blockhead">{vb:rawphrase tags_for_this_thread}</h4>
	<div id="thread_tags_list" class="thread_info_block blockbody formcontrols">
		<div class="inner_block">
			<vb:if condition="$show['manage_tag']">
			<a id="tag_edit_link" href="threadtag.php?{vb:raw session.sessionurl}t={vb:raw thread.threadid}" class="textcontrol" style="float:{vb:stylevar right}; font-size:11px; margin:10px;">{vb:rawphrase edit_tags}</a>
			</vb:if>
			<div id='tag_list_cell'>
				{vb:raw tag_list}
			</div>
			<p>
				<a href="tags.php{vb:raw session.sessionurl_q}">{vb:rawphrase view_tag_cloud}</a>
			</p>
		</div>
	</div>
	</vb:if>
However when I move it from its default position, after:
Code:
{vb:raw similarthreads}
	{vb:raw template_hook.showthread_after_activeusers}
I get this:


I can't figure out why it's showing the popupctrl dropdown and top button in the tag box header, and I can't seem to find the code in showthread that controls their placement. Ideally I'd like to have those two items display inline, to the left of the inline mod tools dropdown:



However if that's too complicated I'm willing to settle for having them not stuck inside the Tag Box header.

How do I do this?

--------------- Added [DATE]1309386345[/DATE] at [TIME]1309386345[/TIME] ---------------

Here is my entire showthread template, without the Tag Box code moved:
Code:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
	{vb:raw headinclude}
	<vb:if condition="$threadinfo['keywords']"><meta name="keywords" content="{vb:raw threadinfo.keywords}" /></vb:if>
	<meta name="description" content="{vb:raw thread.meta_description}" />

	<title>{vb:raw thread.prefix_plain_html} {vb:raw thread.title}<vb:if condition="$pagenumber > '1'"> - {vb:rawphrase page_x, {vb:raw pagenumber}}</vb:if></title>
	<link rel="canonical" href="{vb:raw thread_url}" />
	<vb:if condition="$show['reputation']">
	<script type="text/javascript" src="clientscript/vbulletin-ajax-reputation.js?v={vb:raw vboptions.simpleversion}"></script>
	</vb:if>
	<vb:if condition="$show['quickedit'] OR $show['quickreply']">
		<script type="text/javascript" src="clientscript/vbulletin_textedit.js?v={vb:raw vboptions.simpleversion}"></script>
		<vb:if condition="$show['postloader_js']">
		<script type="text/javascript" src="clientscript/vbulletin_post_loader.js?v={vb:raw vboptions.simpleversion}"></script>
		</vb:if>
	</vb:if>
	<vb:if condition="$show['threadrating']">
	<script type="text/javascript" src="clientscript/vbulletin_ajax_threadrate.js?v={vb:raw vboptions.simpleversion}"></script>
	</vb:if>
	<vb:if condition="$show['multiquote_global']">
	<script type="text/javascript" src="clientscript/vbulletin_multi_quote.js?v={vb:raw vboptions.simpleversion}"></script>
	</vb:if>
	<vb:if condition="$show['quickedit']">
	<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script>
	<script type="text/javascript" src="clientscript/vbulletin_quick_edit.js?v={vb:raw vboptions.simpleversion}"></script>
	</vb:if>
	<vb:if condition="$show['quickreply']">
	<script type="text/javascript" src="clientscript/vbulletin_quick_reply.js?v={vb:raw vboptions.simpleversion}"></script>
	</vb:if>
	<vb:if condition="$show['manage_tag']">
	<script type="text/javascript" src="clientscript/vbulletin_ajax_taglist.js?v={vb:raw vboptions.simpleversion}"></script>
	<script type="text/javascript" src="clientscript/vbulletin_ajax_suggest.js?v={vb:raw vboptions.simpleversion}"></script>
	</vb:if>
	<vb:if condition="$show['lightbox']">
		<script type="text/javascript" src="clientscript/vbulletin_lightbox.js?v={vb:raw vboptions.simpleversion}"></script>
	</vb:if>

	<vb:if condition="$vboptions['storecssasfile']">
		{vb:cssfile showthread-rollup.css}
	<vb:else />
		{vb:cssfile toolsmenu.css,postlist.css,showthread.css,postbit.css,options.css,attachment.css,poll.css,lightbox.css}
	</vb:if>
	<!--[if lt IE 8]>{vb:cssfile toolsmenu-ie.css,postlist-ie.css,showthread-ie.css,postbit-ie.css,poll-ie.css}<![endif]-->
{vb:raw headinclude_bottom}
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>
</head>

<body<vb:if condition="$onload"> onload="{vb:raw onload}"</vb:if>>

{vb:raw header}
{vb:raw navbar}
{vb:raw template_hook.showthread_above_posts}
{vb:raw poll}

	<div id="above_postlist" class="above_postlist">
		<vb:if condition="$show['largereplybutton']">
			<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&amp;noquote=1" 
class="newcontent_textcontrol" id="newreplylink_top"><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>
			<img style="display:none" id="progress_newreplylink_top" src="{vb:stylevar imgdir_misc}/progress.gif"  alt="" />
		</vb:if>

		<div id="pagination_top" class="pagination_top">
		<vb:if condition="$pagenav">
			{vb:raw pagenav}
		</vb:if>
			<div id="postpagestats_above" class="postpagestats">
				{vb:rawphrase showing_results_x_to_y_of_z, {vb:raw pagenumbers.first}, {vb:raw pagenumbers.last}, {vb:raw totalposts}}
			</div>
		</div>
	</div>
<div id="pagetitle" class="pagetitle">
	<h1>
		{vb:rawphrase thread}: <span class="threadtitle"><a href="{vb:raw thread_url}" title="{vb:rawphrase reload_this_page}">{vb:raw threadinfo.title}</a></span>
		<vb:if condition="$show['fb_likebutton']">
			{vb:raw fblikebutton}
		</vb:if>
	</h1>
</div>


<!-- Start Forum tcat Heading ForumThemes -->
<div class="tcatBar">
	<div class="tcatLeft"><div class="tcatRight foruminfo L1 collapse">
	<div id="thread_controls" class="tcat_threadlist_controls ">
		<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">&amp;pp={vb:raw perpage}</vb:if><vb:if condition="$pagenumber">&amp;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&amp;t={vb:raw threadid}"
						rel="nofollow">{vb:rawphrase email_this_page}&hellip;</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&amp;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&amp;t={vb:raw threadid}" 
								rel="nofollow">{vb:rawphrase subscribe_to_this_thread}&hellip;</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&amp;t={vb:raw threadid}">{vb:rawphrase add_a_poll_to_this_thread}&hellip;</a></li>
					</vb:if>
				</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}&hellip;</label></li>
								<li><label><input type="radio" name="do" value="copythread" tabindex="4" /> {vb:rawphrase copy_thread}&hellip;</label></li>					
							</vb:if>

							<vb:if condition="$show['editthread']">
								<li><label><input type="radio" name="do" value="editthread" tabindex="5" /> {vb:rawphrase edit_thread}&hellip;</label></li>
							</vb:if>
			
							<vb:if condition="$show['deletethread']">
							<li><label><input type="radio" name="do" value="deletethread" tabindex="6" /> {vb:rawphrase delete_thread}&hellip;</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}&hellip;</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">&nbsp;</div>
								<div class="advancedsearchlink"><a href="search.php?{vb:raw session.sessionurl}search_type=1&amp;searchthreadid={vb:raw thread.threadid}&amp;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['threadrating']">
				<li class="popupmenu" id="threadrating">
					<h6><a class="popupctrl" href="javascript://">{vb:rawphrase rate_this_thread}</a></h6>
					<div class="popupbody popuphover">
						<form action="threadrate.php" method="post" id='showthread_threadrate_form'>
							<ul>
								<li id="threadrating_current"<vb:if condition="!$show['rating']">class="hidden"</vb:if> title="{vb:rawphrase thread_rating_x_votes_y_average, {vb:raw thread.votenum}, {vb:raw thread.voteavg}}"><label>
									<span class="rating r{vb:raw thread.rating}">{vb:rawphrase current_rating}</span>
								</label></li>
								<vb:if condition="$show['ratethread']">
									<li><label for="r5"><span class="rating r5">
										{vb:stylevar dirmark}<input type="radio" name="vote" value="5" id="r5" {vb:raw votechecked.5} tabindex="20" /> {vb:rawphrase excellent}
									</span></label></li>
									<li><label for="r4"><span class="rating r4_{vb:stylevar right}">
										{vb:stylevar dirmark}<input type="radio" name="vote" value="4" id="r4" {vb:raw votechecked.4} tabindex="21" /> {vb:rawphrase good}
									</span></label></li>
									<li><label for="r3"><span class="rating r3_{vb:stylevar right}">
										{vb:stylevar dirmark}<input type="radio" name="vote" value="3" id="r3" {vb:raw votechecked.3} tabindex="22" /> {vb:rawphrase average}
									</span></label></li>
									<li><label for="r2"><span class="rating r2_{vb:stylevar right}">
										{vb:stylevar dirmark}<input type="radio" name="vote" value="2" id="r2" {vb:raw votechecked.2} tabindex="23" /> {vb:rawphrase bad}
									</span></label></li>
									<li><label for="r1"><span class="rating r1_{vb:stylevar right}">
										{vb:stylevar dirmark}<input type="radio" name="vote" value="1" id="r1" {vb:raw votechecked.1} tabindex="24" /> {vb:rawphrase terrible}
									</span></label></li>
									<li class="formsubmit"><input type="submit" class="button" value="{vb:rawphrase vote_now}" tabindex="25" /></li>
								<vb:else />
									<li><label>{vb:rawphrase already_rated_this_thread}</label></li>
								</vb:if>
							</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="pp" value="{vb:raw perpage}" />
							<input type="hidden" name="page" value="{vb:raw pagenumber}" />
						</form>
					</div>
					<script type="text/javascript">
					<!--
						vB_AJAX_ThreadRate_Init('showthread_threadrate_form', {vb:raw threadinfo.threadid});
					//-->
					</script>
				</li>
			</vb:if>

			<vb:if condition="$vboptions['allowthreadedmode']">
				<li class="popupmenu" id="displaymodes">
					<h6><a class="popupctrl" href="javascript://">{vb:rawphrase display}</a></h6>
					<ul class="popupbody popuphover">
						<li><vb:if condition="!$show['linearmode']"><a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_linear}}#post{vb:raw FIRSTPOSTID}"> {vb:rawphrase switch_to_linear_mode}</a><vb:else /><label>{vb:rawphrase linear_mode}</label></vb:if></li>
						<li><vb:if condition="!$show['hybridmode']"><a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_hybrid}}"> {vb:rawphrase switch_to_hybrid_mode}</a><vb:else /><label>{vb:rawphrase hybrid_mode}</label></vb:if></li>
						<li><vb:if condition="!$show['threadedmode']"><a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_threaded}}#post{vb:raw FIRSTPOSTID}"> {vb:rawphrase switch_to_threaded_mode}</a><vb:else /><label>{vb:rawphrase threaded_mode}</label></vb:if></li>
					</ul>
				</li>
			</vb:if>
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04649 seconds
  • Memory Usage 2,594KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete