Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-09-2008, 07:35 PM
smoovie's Avatar
smoovie smoovie is offline
 
Join Date: Nov 2006
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default eliminate a gap in FORUMDISPLY


Please take a look at the screenshot to see the problem. There is a visible space there that I just can't seem to get rid of. I have been trying to do this for a couple days now and I think it's got me licked. The problem is only happening with the threads list and not with subforums lists. Any help with this would be appreciated.

Thanks,
Gabe

Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$foruminfo[title_clean]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>
<if condition="$show['inlinemod']"><script type="text/javascript" src="clientscript/vbulletin_inlinemod.js?v=$vboptions[simpleversion]"></script></if>
</head>
<body>
$header
$navbar


<if condition="$show['threadslist']">
<!-- threads list  -->

<form action="inlinemod.php?forumid=$forumid" method="post" id="inlinemodform">
<input type="hidden" name="url" value="$url" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="forumid" value="$forumid" />

<!-- controls above thread list -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
	<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread2.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
	<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls above thread list -->

<div class="main_tcat">
	<div class="main_tcat_tl"><div class="main_tcat_tr" style="text-align:left">
		<span style="float:$stylevar[right]">
			<span id="forumtools" nowrap="nowrap"><a href="$show[nojs_link]#goto_forumtools" rel="nofollow">$vbphrase[forum_tools]</a> <script type="text/javascript"> vbmenu_register("forumtools"); </script></span>
			<if condition="$show['forumsearch']">
				<span id="forumsearch" nowrap="nowrap"><a href="$show[nojs_link]#goto_forumsearch" rel="nofollow">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script></span>
			</if>
		</span>
		$vbphrase[threads_in_forum]<span class="normal"> : $foruminfo[title]</span>
	</div></div>
</div>

<table width="100%" class="main_tcat2" cellpadding="0" cellspacing="0">
<tr valign="bottom">
	<td class="main_tcat_left"><img src="{IF}/tcat-bl.png" alt="" border="0" /></td>
	<td width="100%" style="padding-bottom:12px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" id="threadslist">
<tbody>
$announcebits
<if condition="$show['search_engine']">
	<if condition="$show['threadicons']">
		<td class="thead" colspan="2">&nbsp;</td>
	<else />
		<td class="thead">&nbsp;</td>
	</if>	
	<td class="thead" width="100%">
		<if condition="$show['threadratings']"><span style="float:$stylevar[right]">$vbphrase[rating]</span></if>
		$vbphrase[thread] / $vbphrase[thread_starter]
	</td>
	<td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap">$vbphrase[last_post]</span></td>
	<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap">$vbphrase[replies]</span></td>
	<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap">$vbphrase[views]</span></td>
<else />
<tr>
	<if condition="$show['threadicons']">
		<td class="thead" colspan="2">&nbsp;</td>
	<else />
		<td class="thead">&nbsp;</td>
	</if>	
	<td class="thead" width="100%">
		<if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&amp;order=desc&amp;sort=voteavg" rel="nofollow">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if>
		<a href="$sorturl&amp;order=asc&amp;sort=title" rel="nofollow">$vbphrase[thread]</a> $sortarrow[title] /
		<a href="$sorturl&amp;order=asc&amp;sort=postusername" rel="nofollow">$vbphrase[thread_starter]</a> $sortarrow[postusername]
	</td>
	<td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=lastpost" rel="nofollow">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td>
	<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=replycount" rel="nofollow">$vbphrase[replies]</a> $sortarrow[replycount]</span></td>
	<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=views" rel="nofollow">$vbphrase[views]</a> $sortarrow[views]</span></td>
	
	<if condition="$show['inlinemod']"><img src="images/styles/mech/gradients/gradient2_tcat.gif">
		<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>
</tbody>
</if>
<if condition="$show['threads']">
	<!-- show threads -->
    <tbody id="threadbits_forum_$foruminfo[forumid]">
	<if condition="$show['stickies']">
	$threadbits_sticky
	</if>
	$threadbits	
    </tbody>
	<!-- end show threads -->
<else />
	<!-- show no threads message -->
    <tbody>
	<tr>
		<td class="alt1" colspan="$foruminfo[bottomcolspan]" align="center">
			<div style="padding: 16px">
				<if condition="$show['noposts']"><strong>$vbphrase[no_posts_in_this_forum]</strong><else /><strong><phrase 1="$daysprune">$vbphrase[no_posts_last_x_days_forum]</phrase></strong><br />
				<span class="smallfont">$vbphrase[try_controls_below_for_older_posts]</span></if>
			</div>
		</td>
	</tr>
    </tbody>
	<!-- end show no threads message -->
</if>
</table>

	</td>
	<td class="main_tcat_right"><img src="{IF}/tcat-br.png" alt="" border="0" /></td>
</tr>
</table>

<br />


<!-- forum tools menu -->
<div class="vbmenu_popup" id="forumtools_menu" style="display:none">
<form action="moderator.php?f=$forumid" method="post" name="forumadminform">
	<table cellpadding="4" cellspacing="1" border="0">
	<tr><td class="thead">$vbphrase[forum_tools]<a name="goto_forumtools"></a></td></tr>
	<if condition="$show['newthreadlink']"><tr><td class="vbmenu_option"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[post_a_new_thread]</a></td></tr></if>
	<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread&amp;f=$foruminfo[forumid]" rel="nofollow" onclick="return mark_forum_read($foruminfo[forumid]);">$vbphrase[mark_this_forum_read]</a></td></tr>
	<tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]do=addsubscription&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[subscribe_to_this_forum]</a></td></tr>
	<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]" rel="nofollow">$vbphrase[view_parent_forum]</a></td></tr>
	<if condition="$show['adminoptions']">
	<tr>
		<td class="thead">$vbphrase[admin_tools]<a name="goto_forumadmin"></a></td>
	</tr>
	<tr>
		<td class="vbmenu_option" title="nohilite">		
		<div><label for="fa_mpo"><input type="radio" name="do" id="fa_mpo" value="modposts" checked="checked" />$vbphrase[view_posts_queue]</label></div>
		<div><label for="fa_mat"><input type="radio" name="do" id="fa_mat" value="modattach" />$vbphrase[view_attachment_queue]</label></div>
		<div><label for="fa_mov"><input type="radio" name="do" id="fa_mov" value="move" />$vbphrase[massmove_threads]</label></div>
		<div><label for="fa_prn"><input type="radio" name="do" id="fa_prn" value="prune" />$vbphrase[massprune_threads]</label></div>
		<if condition="$show['addmoderator']">
		<div><label for="fa_amd"><input type="radio" name="do" id="fa_amd" value="addmoderator" />$vbphrase[add_moderator]</label></div>
		</if>	
        <if condition="$show['post_new_announcement']">
        <div><label for="fa_pan"><input type="radio" name="do" id="fa_pan" value="postannouncement" />$vbphrase[post_new_announcement]</label></div>
        </if>	
		</td>
	</tr>
	<tr>
		<td class="vbmenu_option" title="nohilite" align="center">		
			<input type="hidden" name="s" value="$session[sessionhash]" />
			<input type="hidden" name="f" value="$forumid" />
			<input type="submit" class="button" value="$vbphrase[perform_action]" />
		</td>
	</tr>
	</if>
	</table>
</form>
</div>
<!-- / forum tools menu -->

<!-- inline mod menu -->
<if condition="$show['inlinemod']">
	<div class="vbmenu_popup" id="imod_menu" style="display:none" align="$stylevar[left]">
		$threadadmin_imod_menu_thread
	</div>
</if>
<!-- / inline mod menu -->

<!-- / popup menu contents -->
<else />
<!-- controls for non-popup browsers -->


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top-width:0px">
<tr>
	<td class="thead">$vbphrase[forum_tools]<a name="goto_forumtools"></a></td>
	<td class="thead">$vbphrase[search_this_forum]<a name="goto_forumsearch"></a></td>
</tr>
<tr valign="top">
	<!-- forum tools -->
	<td class="alt1">
		<div class="smallfont">
			<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[mark_this_forum_read]" vspace="1" /> <a href="forumdisplay.php?$session[sessionurl]do=markread&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[mark_this_forum_read]</a></div>
			<if condition="$show['member']"><div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" /> <a href="subscription.php?$session[sessionurl]do=addsubscription&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[subscribe_to_this_forum]</a></div></if>
			<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[view_parent_forum]" vspace="1" /> <a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]" rel="nofollow">$vbphrase[view_parent_forum]</a></div>
		</div>
	</td>
	<!-- / forum tools -->
	
	<!-- search this forum -->
	<td class="alt1">
	<form action="search.php?do=process" method="post">
	<div class="smallfont">
		<input type="hidden" name="s" value="$session[sessionhash]" />
		<input type="hidden" name="do" value="process" />
		<input type="hidden" name="forumchoice[]" value="$forumid" />
		<input type="hidden" name="childforums" value="1" />
		<input type="hidden" name="exactname" value="1" />
		<strong>$vbphrase[search_this_forum]</strong> :<br />
		<input type="text" class="bginput" name="query" size="20" style="width:175px" />$gobutton<br />
		<a href="search.php?$session[sessionurl]f=$forumid" rel="nofollow">$vbphrase[advanced_search]</a>
	</div>
	</form>
	</td>
	<!-- / search this forum -->	
</tr>
</table>
<br />


<!-- / controls for non-popup browsers -->
</if>

<if condition="$show['ajax_js']">
	<script type="text/javascript" src="clientscript/vbulletin_ajax_threadslist.js?v=$vboptions[simpleversion]"></script>
	<script type="text/javascript">
	<!--
	vB_AJAX_Threadlist_Init('threadslist');
	//-->
	</script>
</if>

<!-- ############## END THREADS LIST ##############  -->
</if>

$forumhome_markread_script
<if condition="$show['popups'] AND $show['forumsearch']">
<!-- forum search menu -->
<div class="vbmenu_popup" id="forumsearch_menu" style="display:none">
<form action="search.php?do=process" method="post">
	<table cellpadding="4" cellspacing="1" border="0">
	<tr>
		<td class="thead">$vbphrase[search_this_forum]<a name="goto_forumsearch"></a></td>
	</tr>
	<tr>
		<td class="vbmenu_option" title="nohilite">
			<input type="hidden" name="s" value="$session[sessionhash]" />
			<input type="hidden" name="do" value="process" />
			<input type="hidden" name="forumchoice[]" value="$forumid" />
			<input type="hidden" name="childforums" value="1" />
			<input type="hidden" name="exactname" value="1" />
			<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" accesskey="s" tabindex="1004" /></div>
        </td>
    </tr>
    <tr>
        <td class="vbmenu_option" title="nohilite">
            <label for="rb_fd_sp0"><input type="radio" name="showposts" value="0" id="rb_fd_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
            &nbsp;
            <label for="rb_fd_sp1"><input type="radio" name="showposts" value="1" id="rb_fd_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
		</td>
	</tr>
	<tr>
		<td class="vbmenu_option"><a href="search.php?$session[sessionurl]f=$forumid" rel="nofollow">$vbphrase[advanced_search]</a></td>
	</tr>
	</table>
</form>
</div>
<!-- / forum search menu -->
</if>

<!-- icon key -->
<if condition="$show['threadslist']">
<table cellpadding="2" cellspacing="0" border="0">
<tr>
	<td><img src="$stylevar[imgdir_statusicon]/thread2_new.gif" alt="$vbphrase[new_posts]" border="0" /></td>
	<td class="smallfont">$vbphrase[new_posts]</td>
	<if condition="$vboptions['usehotthreads']">
		<td><img src="$stylevar[imgdir_statusicon]/thread2_hot_new.gif" alt="<phrase 1="$vboptions[hotnumberposts]" 2="$vboptions[hotnumberviews]">$vbphrase[more_than_x_replies_or_y_views]</phrase>" border="0" /></td>
		<td class="smallfont">$vbphrase[hot_thread_with_new_posts]</td>
	<else />
		<td colspan="2">&nbsp;</td>
	</if>
</tr>
<tr>
	<td><img src="$stylevar[imgdir_statusicon]/thread2.gif" alt="$vbphrase[no_new_posts]" border="0" /></td>
	<td class="smallfont">$vbphrase[no_new_posts]</td>
	<if condition="$vboptions['usehotthreads']">
		<td><img src="$stylevar[imgdir_statusicon]/thread2_hot.gif" alt="<phrase 1="$vboptions[hotnumberposts]" 2="$vboptions[hotnumberviews]">$vbphrase[more_than_x_replies_or_y_views]</phrase>" border="0" /></td>
		<td class="smallfont">$vbphrase[hot_thread_with_no_new_posts]</td>
	<else />
		<td colspan="2">&nbsp;</td>
	</if>
</tr>
<tr>
	<td><img src="$stylevar[imgdir_statusicon]/thread2_lock.gif" alt="$vbphrase[closed_thread]" border="0" /></td>
	<td class="smallfont">$vbphrase[thread_is_closed]</td>
	<if condition="$show['dotthreads']">
		<td><img src="$stylevar[imgdir_statusicon]/thread2_dot.gif" alt="$vbphrase[thread_contains_a_message_written_by_you]" border="0" /></td>
		<td class="smallfont">$vbphrase[you_have_posted_in_this_thread]</td>
	<else />
		<td colspan="2">&nbsp;</td>
	</if>
</tr>
</table>
<else />
<table cellpadding="2" cellspacing="0" border="0">
<tr>
	<td><img src="$stylevar[imgdir_statusicon]/forum3_new.png" alt="$vbphrase[contains_new_posts]" border="0" /></td>
	<td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
	<td><img src="$stylevar[imgdir_statusicon]/forum3_old.png" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
	<td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
	<td><img src="$stylevar[imgdir_statusicon]/forum3_old_lock.png" alt="$vbphrase[a_closed_forum]" border="0" /></td>
	<td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
</tr>
</table>
</if>

</body>
</html>
Reply With Quote
 


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 03:06 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.03702 seconds
  • Memory Usage 2,418KB
  • 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
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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