Thread: Forum Home Enhancements - [AJAX] Tabbed Forum Home
View Single Post
  #464  
Old 06-28-2008, 02:27 PM
bobster65's Avatar
bobster65 bobster65 is offline
 
Join Date: Mar 2006
Location: Montana
Posts: 1,169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OsideRida06 View Post
Right now I am in the process of switching to the Ajax tabs. I will post up the forumhome that was causing this though. It only happens on then sports, and General 101 tab. Here it is.
Replace your <!- main with this ... I found a roage tbody tag and you had a malformed IF statement that was leaving a </table> tag broken if you were not part of a specific user group..

Code:
<!-- main -->

<!-- Tabbed Forum Home Tabs Layout -->
	<ul id="forumtabs" class="shadetabs"> 
	<li><a href="#" rel="tcontent1" class="selected"><img src="http://calistyle101.com/images/cs101tab.gif" border="0"></a></li> 
	<li><a href="#" rel="tcontent2"><img src="http://calistyle101.com/images/freebiestab.gif" border="0"></a></li> 
    <li><a href="#" rel="tcontent2b"><img src="http://calistyle101.com/images/sportstab.gif" border="0"></a></li> 
	<li><a href="#" rel="tcontent3"><img src="http://calistyle101.com/images/generaltab.gif" border="0"></a></li>
<!-- /Tabbed Forum Home Tabs Layout -->  

<!-- Tabbed Forum Home ? START Tab 1 Content Layout -->
<div id="tcontent1" class="tabcontent">

<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" style="border-bottom: 0;">
	<tbody>
		<tr>
			<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right; padding: 5px;" href="#top" onclick="return toggle_collapse('forumbit_33')"><img id="collapseimg_forumbit_33" src="images/skins/thefathom/buttons/collapse_tcat.gif" alt="" border="0" /></a><div class="forumtitle"><a href="forumdisplay.php?f=3">Announcements</a></div></td>
		</tr>
	</tbody>
</table>

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-top: 0;">
	<tbody id="collapseobj_forumbit_33" style="">
		<tr align="center">
	  		<td class="thead">&nbsp;</td>
	  		<td class="thead" align="left">$vbphrase[forum]</td>
	  		<td class="thead" width="55">$vbphrase[posts]</td>
	  		<td class="thead" width="55">$vbphrase[threads]</td>
	  		<td class="thead" width="30%">$vbphrase[last_post]</td>
	  			<if condition="$vboptions['showmoderatorcolumn']">
      				<td class="thead">$vbphrase[moderator]</td>
      			</if>
		</tr>
	$forumbits5	
	</tbody>
</table>

<br>

<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" style="border-bottom: 0;">
	<tbody>
		<tr>
			<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right; padding: 5px;" href="#top" onclick="return toggle_collapse('forumbit_164164')"><img id="collapseimg_forumbit_164164" src="images/skins/thefathom/buttons/collapse_tcat.gif" alt="" border="0" /></a><div class="forumtitle"><a href="forumdisplay.php?f=164">The Crew</a></div></td>
		</tr>
	</tbody>
</table>

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-top: 0;">
	<tbody id="collapseobj_forumbit_164164" style="">
		<tr align="center">
	  		<td class="thead">&nbsp;</td>
	  		<td class="thead" align="left">$vbphrase[forum]</td>
	  		<td class="thead" width="55">$vbphrase[posts]</td>
	  		<td class="thead" width="55">$vbphrase[threads]</td>
	  		<td class="thead" width="30%">$vbphrase[last_post]</td>
	  			<if condition="$vboptions['showmoderatorcolumn']">
      				<td class="thead">$vbphrase[moderator]</td>
      			</if>
		</tr>
	$forumbits5a	
	</tbody>
	<tbody>
		<tr>
			<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a><if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
			<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if></strong></div></td>
		</tr>
	</tbody>
</table>
$forumhome_markread_script
</div>
<!-- /Tabbed Forum Home ? END Tab 1 Content Layout -->


<!-- Tabbed Forum Home ? START Tab 2 Content Layout -->
<div id="tcontent2" class="tabcontent">

<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" style="border-bottom: 0;">
	<tbody>
		<tr>
			<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right; padding: 5px;" href="#top" onclick="return toggle_collapse('forumbit_146146')"><img id="collapseimg_forumbit_146146" src="images/skins/thefathom/buttons/collapse_tcat.gif" alt="" border="0" /></a><div class="forumtitle"><a href="forumdisplay.php?f=146">Introduction to Freebies</a></div></td>
		</tr>
	</tbody>
</table>

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-top: 0;">

	<tbody id="collapseobj_forumbit_146146" style="">
		<tr align="center">
	  		<td class="thead">&nbsp;</td>
	  		<td class="thead" align="left">$vbphrase[forum]</td>
	  		<td class="thead" width="55">$vbphrase[posts]</td>
	  		<td class="thead" width="55">$vbphrase[threads]</td>
	  		<td class="thead" width="30%">$vbphrase[last_post]</td>
	  			<if condition="$vboptions['showmoderatorcolumn']">
      				<td class="thead">$vbphrase[moderator]</td>
      			</if>
		</tr>
	$forumbits2e	
	</tbody>
</table>

<br />

<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" style="border-bottom: 0;">
	<tbody>
		<tr>
			<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right; padding: 5px;" href="#top" onclick="return toggle_collapse('forumbit_444')"><img id="collapseimg_forumbit_444" src="images/skins/thefathom/buttons/collapse_tcat.gif" alt="" border="0" /></a><div class="forumtitle"><a href="forumdisplay.php?f=4">Trading Zone</a></div></td>
		</tr>
	</tbody>
</table>

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-top: 0;">
	<tbody id="collapseobj_forumbit_444" style="">
		<tr align="center">
	  		<td class="thead">&nbsp;</td>
	  		<td class="thead" align="left">$vbphrase[forum]</td>
	  		<td class="thead" width="55">$vbphrase[posts]</td>
	  		<td class="thead" width="55">$vbphrase[threads]</td>
	  		<td class="thead" width="30%">$vbphrase[last_post]</td>
	  			<if condition="$vboptions['showmoderatorcolumn']">
      				<td class="thead">$vbphrase[moderator]</td>
      			</if>
		</tr>
	$forumbits2	
	</tbody>
</table>

<br />

<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" style="border-bottom: 0;">
	<tbody>
		<tr>
			<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right; padding: 5px;" href="#top" onclick="return toggle_collapse('forumbit_1414')"><img id="collapseimg_forumbit_1414" src="images/skins/thefathom/buttons/collapse_tcat.gif" alt="" border="0" /></a><div class="forumtitle"><a href="forumdisplay.php?f=14">Famous Rotators</a></div></td>
		</tr>
	</tbody>
</table>

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-top: 0;">
	<tbody id="collapseobj_forumbit_1414" style="">
		<tr align="center">
	  		<td class="thead">&nbsp;</td>
	  		<td class="thead" align="left">$vbphrase[forum]</td>
	  		<td class="thead" width="55">$vbphrase[posts]</td>
	  		<td class="thead" width="55">$vbphrase[threads]</td>
	  		<td class="thead" width="30%">$vbphrase[last_post]</td>
	  			<if condition="$vboptions['showmoderatorcolumn']">
      				<td class="thead">$vbphrase[moderator]</td>
      			</if>
		</tr>
	$forumbits2d	
	</tbody>
</table>

<br>

<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" style="border-bottom: 0;">
	<tbody>
		<tr>
			<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right; padding: 5px;" href="#top" onclick="return toggle_collapse('forumbit_1212')"><img id="collapseimg_forumbit_1212" src="images/skins/thefathom/buttons/collapse_tcat.gif" alt="" border="0" /></a><div class="forumtitle"><a href="forumdisplay.php?f=12">Freebie Network Forums</a></div></td>
		</tr>
	</tbody>
</table>

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-top: 0;">
	<tbody id="collapseobj_forumbit_1212" style="">
		<tr align="center">
	  		<td class="thead">&nbsp;</td>
	  		<td class="thead" align="left">$vbphrase[forum]</td>
	  		<td class="thead" width="55">$vbphrase[posts]</td>
	  		<td class="thead" width="55">$vbphrase[threads]</td>
	  		<td class="thead" width="30%">$vbphrase[last_post]</td>
	  			<if condition="$vboptions['showmoderatorcolumn']">
      				<td class="thead">$vbphrase[moderator]</td>
      			</if>
		</tr>
	$forumbits2c	
	</tbody>
	<tbody>
		<tr>
			<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a><if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
			<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if></strong></div></td>
		</tr>
	</tbody>
</table>

<br />

<if condition="is_member_of($vbulletin->userinfo, 6)"> 
	<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" style="border-bottom: 0;">
		<tbody>
			<tr>
				<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right; padding: 5px;" href="#top" onclick="return toggle_collapse('forumbit_5252')"><img id="collapseimg_forumbit_5252" src="images/skins/thefathom/buttons/collapse_tcat.gif" alt="" border="0" /></a><div class="forumtitle"><a href="forumdisplay.php?f=52">Advanced Trader Training</a></div></td>
			</tr>
		</tbody>
	</table>

	<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-top: 0;">

		<tbody id="collapseobj_forumbit_5252" style="">
			<tr align="center">
		  		<td class="thead">&nbsp;</td>
		  		<td class="thead" align="left">$vbphrase[forum]</td>
		  		<td class="thead" width="55">$vbphrase[posts]</td>
		  		<td class="thead" width="55">$vbphrase[threads]</td>
		  		<td class="thead" width="30%">$vbphrase[last_post]</td>
		  			<if condition="$vboptions['showmoderatorcolumn']">
	      				<td class="thead">$vbphrase[moderator]</td>
	      			</if>
			</tr>
		$forumbits2b	
		</tbody>
	</table>
</if>

$forumhome_markread_script

</div>
<!-- /Tabbed Forum Home ? END Tab 2 Content Layout -->


<!-- Tabbed Forum Home ? START Tab 2b Content Layout -->
<div id="tcontent2b" class="tabcontent">

<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" style="border-bottom: 0;">
	<tbody>
		<tr>
			<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right; padding: 5px;" href="#top" onclick="return toggle_collapse('forumbit_2828')"><img id="collapseimg_forumbit_2828" src="images/skins/thefathom/buttons/collapse_tcat.gif" alt="" border="0" /></a><div class="forumtitle"><a href="forumdisplay.php?f=28">Football</a></div></td>
		</tr>
	</tbody>
</table>

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-top: 0;">
	<tbody id="collapseobj_forumbit_2828" style="">
		<tr align="center">
	  		<td class="thead">&nbsp;</td>
	  		<td class="thead" align="left">$vbphrase[forum]</td>
	  		<td class="thead" width="55">$vbphrase[posts]</td>
	  		<td class="thead" width="55">$vbphrase[threads]</td>
	  		<td class="thead" width="30%">$vbphrase[last_post]</td>
	  			<if condition="$vboptions['showmoderatorcolumn']">
      				<td class="thead">$vbphrase[moderator]</td>
      			</if>
		</tr>
	$forumbits2b2	
	</tbody>
</table>

<br />

<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" style="border-bottom: 0;">
	<tbody>
		<tr>
			<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right; padding: 5px;" href="#top" onclick="return toggle_collapse('forumbit_105105')"><img id="collapseimg_forumbit_105105" src="images/skins/thefathom/buttons/collapse_tcat.gif" alt="" border="0" /></a><div class="forumtitle"><a href="forumdisplay.php?f=105">Basketball</a></div></td>
		</tr>
	</tbody>
</table>

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-top: 0;">
	<tbody id="collapseobj_forumbit_105105" style="">
		<tr align="center">
	  		<td class="thead">&nbsp;</td>
	  		<td class="thead" align="left">$vbphrase[forum]</td>
	  		<td class="thead" width="55">$vbphrase[posts]</td>
	  		<td class="thead" width="55">$vbphrase[threads]</td>
	  		<td class="thead" width="30%">$vbphrase[last_post]</td>
	  			<if condition="$vboptions['showmoderatorcolumn']">
      				<td class="thead">$vbphrase[moderator]</td>
      			</if>
		</tr>
	$forumbits2b3	
	</tbody>
</table>

<br>

<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" style="border-bottom: 0;">
	<tbody>
		<tr>
			<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right; padding: 5px;" href="#top" onclick="return toggle_collapse('forumbit_66')"><img id="collapseimg_forumbit_66" src="images/skins/thefathom/buttons/collapse_tcat.gif" alt="" border="0" /></a><div class="forumtitle"><a href="forumdisplay.php?f=6">Sports</a></div></td>
		</tr>
	</tbody>
</table>

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-top: 0;">
	<tbody id="collapseobj_forumbit_66" style="">
		<tr align="center">
	  		<td class="thead">&nbsp;</td>
	  		<td class="thead" align="left">$vbphrase[forum]</td>
	  		<td class="thead" width="55">$vbphrase[posts]</td>
	  		<td class="thead" width="55">$vbphrase[threads]</td>
	  		<td class="thead" width="30%">$vbphrase[last_post]</td>
	  			<if condition="$vboptions['showmoderatorcolumn']">
      				<td class="thead">$vbphrase[moderator]</td>
      			</if>
		</tr>
	$forumbits2b1	
	</tbody>
	<tbody>
		<tr>
			<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a><if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
			<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if></strong></div></td>
		</tr>
	</tbody>
</table>

$forumhome_markread_script

</div>
<!-- /Tabbed Forum Home ? END Tab 2b Content Layout -->

<!-- Tabbed Forum Home ? START Tab 3 Content Layout -->
<div id="tcontent3" class="tabcontent">

<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" style="border-bottom: 0;">
	<tbody>
		<tr>
			<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right; padding: 5px;" href="#top" onclick="return toggle_collapse('forumbit_55')"><img id="collapseimg_forumbit_55" src="images/skins/thefathom/buttons/collapse_tcat.gif" alt="" border="0" /></a><div class="forumtitle"><a href="forumdisplay.php?f=5">General</a></div></td>
		</tr>
	</tbody>
</table>

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-top: 0;">

	<tbody id="collapseobj_forumbit_55" style="">
		<tr align="center">
	  		<td class="thead">&nbsp;</td>
	  		<td class="thead" align="left">$vbphrase[forum]</td>
	  		<td class="thead" width="55">$vbphrase[posts]</td>
	  		<td class="thead" width="55">$vbphrase[threads]</td>
	  		<td class="thead" width="30%">$vbphrase[last_post]</td>
	  			<if condition="$vboptions['showmoderatorcolumn']">
      				<td class="thead">$vbphrase[moderator]</td>
      			</if>
		</tr>
	$forumbits3b	
	</tbody>
</table>

<br />

<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" style="border-bottom: 0;">
	<tbody>
		<tr>
			<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right; padding: 5px;" href="#top" onclick="return toggle_collapse('forumbit_3535')"><img id="collapseimg_forumbit_3535" src="images/skins/thefathom/buttons/collapse_tcat.gif" alt="" border="0" /></a><div class="forumtitle"><a href="forumdisplay.php?f=35">Cali Cash</a></div></td>
		</tr>
	</tbody>
</table>

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" style="border-top: 0;">
	<tbody id="collapseobj_forumbit_3535" style="">
		<tr align="center">
	  		<td class="thead">&nbsp;</td>
	  		<td class="thead" align="left">$vbphrase[forum]</td>
	  		<td class="thead" width="55">$vbphrase[posts]</td>
	  		<td class="thead" width="55">$vbphrase[threads]</td>
	  		<td class="thead" width="30%">$vbphrase[last_post]</td>
	  			<if condition="$vboptions['showmoderatorcolumn']">
      				<td class="thead">$vbphrase[moderator]</td>
      			</if>
		</tr>
	$forumbits3c	
	</tbody>
	<tbody>
		<tr>
			<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a><if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
			<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if></strong></div></td>
		</tr>
	</tbody>
</table>

$forumhome_markread_script

</div>
<!-- /Tabbed Forum Home ? END Tab 3 Content Layout -->

<!-- /main -->
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01283 seconds
  • Memory Usage 1,908KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete