Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2011, 06:54 PM
archet1337's Avatar
archet1337 archet1337 is offline
 
Join Date: Sep 2009
Location: Norway
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to remove the space between forum title and threads?

Hi,

I have for some reason got a space between the forum title and the thread list on forumdisplay. (See attachment)

How do I remove this space?
Attached Images
File Type: png title_space.png (23.5 KB, 0 views)
Reply With Quote
  #2  
Old 08-04-2011, 08:50 PM
Spyike Spyike is offline
 
Join Date: Nov 2010
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check your current template and search for threadlist to be sure there is no css attribute with margin or padding, if not,

Add the following to your additional.css template:
Code:
.threadlist {
    margin-top: 0;
}
.threadlist {
    clear: both;
    display: block;
    float: left;
    width: 100%;
}
Reply With Quote
  #3  
Old 08-04-2011, 09:04 PM
archet1337's Avatar
archet1337 archet1337 is offline
 
Join Date: Sep 2009
Location: Norway
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As far as I can tell there is no attribute with margin or padding. (except the ones with a value of 0)

Added the code you posted to additional.css but the gap is still there.

Anything else I can try?
Reply With Quote
  #4  
Old 08-05-2011, 07:16 AM
setishock setishock is offline
 
Join Date: Feb 2008
Location: Houma, La.
Posts: 1,177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Firebug shows it as > <div class="tcatBar"> so try this,
Code:
.tcatbar {
margin-bottom: 0px;
}
If that doesn't work then do a search in the templates for the class name. If you get a hit in a css template look for margin and or padding. Adjust as needed.
Reply With Quote
  #5  
Old 08-05-2011, 09:16 PM
archet1337's Avatar
archet1337 archet1337 is offline
 
Join Date: Sep 2009
Location: Norway
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for looking into this guys, but that didn't solve the problem either.

and .tcatbar works as it should on forumhome etc.

I'm starting to think it might be the forumdisplay template that is the source of the problem, but I can't see anything.

Can you see anything that isn't as it should be?

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}
	<title>{vb:raw foruminfo.title_clean}<vb:if condition="$pagenumber > 1"> - {vb:rawphrase page_x, {vb:raw pagenumber}}</vb:if></title>

	<vb:if condition="$show['inlinemod']"><script type="text/javascript" src="clientscript/vbulletin_inlinemod.js?v={vb:raw vboptions.simpleversion}"></script></vb:if>
	<vb:if condition="$show['ajax_js']">
        <script type="text/javascript" src="clientscript/vbulletin-ajax-threadlist.js?v={vb:raw vboptions.simpleversion}"></script>
        <script type="text/javascript">
	<!--
	var titlemaxchars = parseInt("{vb:raw vboptions.titlemaxchars}");
	//-->
	</script>
        </vb:if>
	<script type="text/javascript" src="clientscript/vbulletin-threadbit.js?v={vb:raw vboptions.simpleversion}"></script>
	<script type="text/javascript" src="clientscript/vbulletin-read-marker.js?v={vb:raw vboptions.simpleversion}"></script>

	<vb:if condition="$vboptions['storecssasfile']">
	{vb:cssfile forumdisplay-rollup.css}
	<vb:else />
	{vb:cssfile toolsmenu.css,forumbits.css,forumdisplay.css,threadlist.css,options.css}
	</vb:if>

	<!--[if lt IE 8]>
	<script type="text/javascript" src="clientscript/vbulletin-threadlist-ie.js?v={vb:raw vboptions.simpleversion}"></script>
		{vb:cssfile toolsmenu-ie.css,forumbits-ie.css,forumdisplay-ie.css,threadlist-ie.css,options-ie.css}
	<![endif]-->
	{vb:raw headinclude_bottom}
</head>

<body>

{vb:raw header}

{vb:raw navbar}

<!-- <vb:if condition="$announcebits">
<ol id="announcements" class="announcements">
	{vb:raw announcebits}
</ol>
</vb:if> -->

<div id="above_threadlist" class="above_threadlist">
<vb:if condition="$show['newthreadlink']"><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top"><span>+</span> {vb:rawphrase post_new_thread}</a></vb:if>
	<vb:if condition="$show['threadslist']">
	<div class="threadpagenav">
		{vb:raw pagenav}
		<div id="threadpagestats" class="threadpagestats">{vb:rawphrase showing_threads_x_to_y_of_z, {vb:raw limitlower}, {vb:raw limitupper}, {vb:raw totalthreads}}</div>
	</div>
	</vb:if>
</div>
<div id="pagetitle" class="pagetitle">
	<h1>{vb:rawphrase forum}: <span class="forumtitle">{vb:raw foruminfo.title}</span></h1>
	<vb:if condition="$foruminfo['description']"><p class="description">{vb:raw foruminfo.description}</p></vb:if>
</div>

<vb:if condition="$forumbits">
{vb:raw template_hook.forumdisplay_above_subforums}
<div id="forumbits" class="forumbits">
<!-- Start Forum tcat Heading ForumThemes -->
<div class="tcatBar">
	<div class="tcatLeft"><div class="tcatRight foruminfo L1 collapse">
		<h2>
			{vb:rawphrase subforums}: <span class="forumtitle">{vb:raw foruminfo.title}</span>
		</h2>
	</div></div>
</div>
<!-- End Forum tcat Heading ForumThemes -->
<!-- Start Forum thead Heading ForumThemes -->
<div class="forumbitBody">
<div class="thead_bar">
	<div class="theadrow table">
		<div class="foruminfo td">
			<div class="forumdata">
				<div class="datacontainer">
				{vb:rawphrase title}
				</div>
			</div>
		</div>
		<div class="forumactionlinks td">
			&nbsp;
		</div>
		<div class="forumstats td" align="center">
			&nbsp;
		</div>
		<div class="forumlastpost td">
			{vb:rawphrase last_post}
		</div>

	</div>
</div>
<!-- endForum thead Heading ForumThemes  -->

	<ol>
		{vb:raw forumbits}
	</ol>

	{vb:raw forumhome_markread_script}

</div>
<div class="bottomBar"><div class="bottomBarLeft"><div class="bottomBarRight">&nbsp;</div></div></div>
</div>
{vb:raw template_hook.forumdisplay_below_subforums}
</vb:if>
	<vb:if condition="$show['threadslist']">
<!-- Start Forum tcat Heading ForumThemes  -->
<div class="tcatBar">
	<div class="tcatLeft"><div class="tcatRight foruminfo L1 collapse">
		<h2>
			{vb:rawphrase forum}: <span class="forumtitle">{vb:raw foruminfo.title}</span>
		</h2>
	<vb:if condition="$show['threadslist']">
	<div id="above_threadlist_controls" class="tcat_threadlist_controls">
		<div>
		<ul  id="forumdisplaypopups" class="forumdisplaypopups popupgroup">
			<li class="popupmenu nohovermenu" id="forumtools">
				<h6><a href="javascript://" class="popupctrl" rel="nofollow">{vb:rawphrase forum_tools}</a></h6>
				<ul class="popupbody popuphover">
					<vb:if condition="$show['newthreadlink']">
						<li>
							<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">
								{vb:rawphrase post_a_new_thread}&hellip;
							</a>
						</li>
					</vb:if>
					<li>
						<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;f={vb:raw foruminfo.forumid}&amp;markreadhash={vb:raw bbuserinfo.securitytoken}" rel="nofollow" onclick="return mark_forum_read({vb:raw foruminfo.forumid});">
							{vb:rawphrase mark_this_forum_read}
						</a>
					</li>
                                        <vb:if condition="$show['member']">
					<li>
						<vb:if condition="$show['subscribed_to_forum']">
							<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase unsubscribe_from_this_forum}</a>
						<vb:else />
							<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=addsubscription&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase subscribe_to_this_forum}&hellip;</a>
						</vb:if>
					</li>
                                        </vb:if>
					<li><a href="{vb:link forum, {vb:raw foruminfo}, null, 'parentid', 'parenttitle'}" rel="nofollow">{vb:rawphrase view_parent_forum}</a></li>
				</ul>
			</li>
                        <vb:if condition="$show['adminoptions']">
			<li class="popupmenu nohovermenu" id="admintools">
				<h6><a href="javascript://" class="popupctrl">{vb:rawphrase administrative}</a></h6>
				<ul class="popupbody popuphover">
					<vb:if condition="$show['post_queue']"><li><a href="moderator.php?{vb:raw session.sessionurl}do=modposts&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase view_posts_queue}</a></li></vb:if>
					<vb:if condition="$show['attachment_queue']"><li><a href="moderator.php?{vb:raw session.sessionurl}do=modattach&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase view_attachment_queue}</a></li></vb:if>
					<vb:if condition="$show['mass_move']"><li><a href="moderator.php?{vb:raw session.sessionurl}do=move&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase massmove_threads}&hellip;</a></li></vb:if>
					<vb:if condition="$show['mass_prune']"><li><a href="moderator.php?{vb:raw session.sessionurl}do=prune&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase massprune_threads}&hellip;</a></li></vb:if>
					<vb:if condition="$show['addmoderator']">
					<li><a href="moderator.php?{vb:raw session.sessionurl}do=addmoderator&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase add_moderator}&hellip;</a></li>
					</vb:if>
					<vb:if condition="$show['post_new_announcement']">
					<li><a href="moderator.php?{vb:raw session.sessionurl}do=postannouncement&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase post_new_announcement}&hellip;</a></li>
					</vb:if>
<vb:if condition="$vboptions['LAM_BanFromThread_ForumBans']">
<li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}postings.php?{vb:raw session.sessionurl}do=LAM_BanFromThread_Forum&amp;f={vb:raw foruminfo.forumid}">{vb:rawphrase LAM_BanFromThread_ForumTitle}&hellip;</a></li>
</vb:if>
				</ul>
			</li>
                        </vb:if>
			<li class="popupmenu nohovermenu forumsearch" id="forumsearch">
				<h6><a href="javascript://" class="popupctrl">{vb:rawphrase search_this_forum}</a></h6>
				<form action="search.php?do=process" method="get">
				<ul class="popupbody popuphover">
					<li>
						<input type="text" class="searchbox" name="q" value="{vb:rawphrase search_dots}" />
						<input type="submit" class="button" value="{vb:rawphrase search}" />
					</li>
					<li class="formsubmit">
						<div class="submitoptions">
							<label><input type="radio" name="showposts" value="0" checked="checked" /> {vb:rawphrase show_threads}</label>
							<label><input type="radio" name="showposts" value="1" /> {vb:rawphrase show_posts}</label>
						</div>
						<div class="advancedsearchlink"><a href="search.php?{vb:raw session.sessionurl}search_type=1&amp;contenttype=vBForum_Post&amp;forumchoice[]={vb:raw forumid}" rel="nofollow">{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="contenttype" value="vBForum_Post" />
				<input type="hidden" name="forumchoice[]" value="{vb:raw forumid}" />
				<input type="hidden" name="childforums" value="1" />
				<input type="hidden" name="exactname" value="1" />
				</form>
			</li>
			{vb:raw threadadmin_imod_menu_thread}



		</ul>
			<vb:if condition="$show['inlinemod']">
			<script type="text/javascript">
			<!--
				vB_XHTML_Ready.subscribe(function() { register_inlinemod("thread_inlinemod_form", "li", "threadbit", "thread"); });
			//-->
			</script>
			</vb:if>
		</div>
	</div>
	</vb:if>
	</div></div>
</div>
<!-- End Forum tcat Heading ForumThemes  -->
	</vb:if>

<vb:if condition="$show['threadslist']">
<div class="forumbitBody">
{vb:raw template_hook.forumdisplay_above_threadlist}
<div id="threadlist" class="threadlist">
	<form id="thread_inlinemod_form" action="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}inlinemod.php?forumid={vb:raw forumid}" method="post">
		<h2 class="hidden">{vb:rawphrase threads_in_forum}</h2>

		<div>
			<div class="threadlisthead table">
				<div>
				<span class="threadinfo">
					<span class="threadtitle">
						<a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_title}}" rel="nofollow">{vb:rawphrase title}{vb:raw sortarrow.title}</a> /
						<a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_postusername}}" rel="nofollow">{vb:rawphrase thread_starter}{vb:raw sortarrow.postusername}</a>
					</span>
				</span>
				<vb:if condition="$show['search_engine']">

					<span class="threadstats td">{vb:rawphrase replies} {vb:raw sortarrow.replycount} / {vb:rawphrase views}</span>
					<span class="threadlastpost td">{vb:rawphrase last_post_by}{vb:raw sortarrow.lastpost}</span>
				<vb:else />

					<span class="threadstats td"><a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_replycount}}" rel="nofollow">{vb:rawphrase replies}{vb:raw sortarrow.replycount}</a> / <a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_views}}" rel="nofollow">{vb:rawphrase views}{vb:raw sortarrow.views}</a></span>
					<span class="threadlastpost td"><a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_flastpost}}" rel="nofollow">{vb:rawphrase last_post_by}{vb:raw sortarrow.lastpost}</a></span>
					<vb:if condition="$show['inlinemod']"><span class="threadimodimod td"></span></vb:if>
				</vb:if>
				</div>
			</div>
<vb:if condition="$announcebits">
<ol id="announcements" class="announcements">
	{vb:raw announcebits}
</ol>
</vb:if>
			<vb:if condition="$show['stickies']">
				<ol id="stickies" class="stickies">
					{vb:raw threadbits_sticky}
				</ol>
			</vb:if>
			<vb:if condition="$show['threads']">
				<ol id="threads" class="threads">
					{vb:raw threadbits}
				</ol>
			<vb:else />
				<div class="threadbit">
					<p class="nonthread">
					<vb:if condition="$show['noposts']">
						<strong>{vb:rawphrase no_posts_in_this_forum}</strong>
					<vb:else />
						<strong>{vb:rawphrase no_posts_last_x_days_forum, {vb:raw daysprune}}</strong>
						<span class="understated">{vb:rawphrase try_controls_below_for_older_posts}</span>
					</vb:if>
					</p>
				</div>
			</vb:if>
		</div>
		<hr />

		<div class="<vb:if condition="!$show['inlinemod']">noinlinemod </vb:if>forumfoot">
		<vb:if condition="$show['inlinemod']">
			<div id="inlinemod_formctrls" class="popupmenu nohovermenu">
				<a href="javascript://" class="popupctrl"><span class="ctrlcontainer">{vb:rawphrase moderation_tools} (<span id="thread_inlinemod_count">0</span>)</span></a>
				<ul class="popupbody popuphover">
					<vb:if condition="$show['deletethread']">
						<li><label><input type="radio" name="do" value="deletethread" checked="checked" /> {vb:rawphrase delete_threads}&hellip;</label></li>
						<li><label><input type="radio" name="do" value="undeletethread" /> {vb:rawphrase undelete_threads}</label></li>
					</vb:if>
					<vb:if condition="$show['spamctrls']">
						<li><label><input type="radio" name="do" value="spamthread" /> {vb:rawphrase delete_threads_as_spam}&hellip;</label></li>
					</vb:if>
					<vb:if condition="$show['openthread']">
						<li><label><input type="radio" name="do" value="open" /> {vb:rawphrase open_threads}</label></li>
						<li><label><input type="radio" name="do" value="close" /> {vb:rawphrase close_threads}</label></li>
					</vb:if>
					<vb:if condition="$show['approvethread']">
						<li><label><input type="radio" name="do" value="approvethread" /> {vb:rawphrase approve_threads}</label></li>
						<li><label><input type="radio" name="do" value="unapprovethread" /> {vb:rawphrase unapprove_threads}</label></li>
					</vb:if>
					<vb:if condition="$show['movethread']">
						<li><label><input type="radio" name="do" value="stick" /> {vb:rawphrase stick_threads}</label></li>
						<li><label><input type="radio" name="do" value="unstick" /> {vb:rawphrase unstick_threads}</label></li>
						<li><label><input type="radio" name="do" value="movethread" /> {vb:rawphrase move_threads}&hellip;</label></li>
						<li><label><input type="radio" name="do" value="mergethread" /> {vb:rawphrase merge_threads}&hellip;</label></li>
					</vb:if>

					{vb:raw template_hook.inlinemod_thread_bottom}

					<li>&nbsp;</li>

					<li><label><input type="radio" name="do" value="viewthread" /> {vb:rawphrase view_selected_threads}</label></li>
					<li><label><input type="radio" name="do" value="clearthread" /> {vb:rawphrase clear_thread_list}</label></li>

					<li class="formsubmit">
						<input type="submit" class="button" value="{vb:rawphrase proceed_ellipsis}" />
					</li>

				</ul>
			</div>
		</vb:if>
		</div>

		<input type="hidden" name="url" value="{vb:raw url}" />
		<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
		<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
		<input type="hidden" name="forumid" value="{vb:raw forumid}" />
	</form>
</div>
{vb:raw template_hook.forumdisplay_below_threadlist}
{vb:raw cloud_html}
</div>
</vb:if>

[SNIP]
Reply With Quote
Reply


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 02:09 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03696 seconds
  • Memory Usage 2,278KB
  • 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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (1)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (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_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • 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
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete