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

Reply
 
Thread Tools Display Modes
  #1  
Old 03-21-2006, 01:51 PM
noj75 noj75 is offline
 
Join Date: Nov 2004
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default XHTML - 1 error stopping me.

Hi all,

Can someone help me with this. I only have 1 error to become XHTML valid but I just cant seem to sort it out.

The error is this:
Code:
Error  Line 207 column 16: document type does not allow element "td" here.

<td class="alt1"><img src="images/aria/misc/arrow.gif" alt="" class="inlineimg"
It is to do with my navbar. Here is the specific code for the navbar:

HTML Code:
<script type="text/javascript">
<!--
function log_out()
{
	ht = document.getElementsByTagName("html");
	ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
	if (confirm('$vbphrase[sure_you_want_to_log_out]'))
	{
		return true;
	}
	else
	{
		ht[0].style.filter = "";
		return false;
	}
}
//-->
</script>



<!-- Aria Categoty Top -->
<table border="0" cellpadding="0" cellspacing="0"  width="100%"  align="center">
  <tr>
    <td width="14" height="31" align="left" valign="top"><img border="0" src="$stylevar[imgdir_misc]/top_left2.gif" width="14" height="31" alt="" /></td>   
    <td width="100%" align="right" valign="top" style="background-image: url($stylevar[imgdir_misc]/top_center.gif)"><a style="float:$stylevar[right]; padding-top: 9px;" href="#top" onclick="return toggle_collapse('navbar')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a></td>
    <td width="14" height="31" align="right" valign="top"><img border="0" src="$stylevar[imgdir_misc]/top_right.gif" width="14" height="31" alt="" /></td>
  </tr>
</table>
<!-- /Aria Categoty Top -->

<!-- Aria Container -->
<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" id="collapseobj_navbar" style="$vbcollapse[collapseobj_navbar]">
<tr>
<td class="alt1" width="<if condition="in_array(THIS_SCRIPT, array(index))"><if condition="$show['member']">57<else />100%</if><else />100%</if>">

<if condition="in_array(THIS_SCRIPT, array(index))">
<if condition="$show['member']">

<!-- Aria Forumhome Panel -->

<div align="center"><img src="$aria[0]" alt="" border="0" /></div></div></td><td width="50%" class="alt1">
			<table width="100%"  border="0" cellpadding="4" cellspacing="0"  class="aria_welcome_dot_border">
        <tr> 
          <td class="aria_welcome_top"><div align="center"><strong><font color="#990000">Ancestry Aid Board Stats</font></strong></div></td>
        </tr>
      </table>

			<div style="padding: 1px 1px 1px 1px;"></div><table width="100%"  border="0" cellpadding="4" cellspacing="0"   class="aria_welcome_dot_border">
     <tr>
    <td class="aria_welcome_bottom"><div><img src="$stylevar[imgdir_misc]/arrow.gif"  alt="" class="inlineimg" /> $vbphrase[currently_active_users]: $totalonline</div>
			<div><img src="$stylevar[imgdir_misc]/arrow.gif" alt="" class="inlineimg" /> $vbphrase[threads]: $totalthreads, $vbphrase[posts]: $totalposts</div>
			<div><img src="$stylevar[imgdir_misc]/arrow.gif"  alt="" class="inlineimg" /> <phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
	   </td>
     </tr></table>
	  
</if></if>
		
<!-- /Aria Forumhome Panel -->

	
		
		<if condition="is_array($navbits)">
			<table cellpadding="0" cellspacing="0" border="0">
			<tr valign="bottom">
				<td><a href="#" onClick="history.back(1)"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
				<td>&nbsp;</td>
				<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
			</tr>
			<tr>
				<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
			</tr>
			</table>			
		
		<else />
			
			<if condition="$show['guest']"><div style="padding: 1px 1px 1px 1px;"></div>
			<table width="100%"  border="0" cellpadding="4" cellspacing="0"   class="aria_welcome_dot_border">
     <tr>
    <td class="aria_welcome_bottom"><div class="smallfont"><img src="$stylevar[imgdir_misc]/arrow.gif"  alt="" class="inlineimg" /> $vbphrase[currently_active_users]: $totalonline</div>
			<div class="smallfont"><img src="$stylevar[imgdir_misc]/arrow.gif" alt="" class="inlineimg" /> $vbphrase[threads]: $totalthreads, $vbphrase[posts]: $totalposts, $vbphrase[members]: $numbermembers</div>
			<div class="smallfont"><img src="$stylevar[imgdir_misc]/arrow.gif"  alt="" class="inlineimg" /> <phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
		</td></tr></table>
		</if>
		
<td class="alt1"><img src="$stylevar[imgdir_misc]/arrow.gif" alt="" class="inlineimg" /> <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
          <if condition="$bbuserinfo['pmunread']"><img src="$stylevar[imgdir_misc]/arrow.gif" alt="" class="inlineimg" /> <img border="0" src="http://www.ancestryaid.co.uk/boards/images/misc/newpm.gif" width="22" height="10"> <a href="http://www.ancestryaid.co.uk/boards/private.php?">You have unread messages</a></if>
		  <if condition="$show['pmstats']"><br /><img src="$stylevar[imgdir_misc]/arrow.gif" alt="" class="inlineimg" /> <phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if></td>	
		</if>
	</td>		
		
	<if condition="$show['guest']">
		
		<td class="alt2" nowrap="nowrap" style="padding:0px">
			
		<!-- login form -->
		<form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
		<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
		<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
		<tr>
			<td class="smallfont">$vbphrase[username]</td>
			<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
			<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
		</tr>
		<tr>
			<td class="smallfont">$vbphrase[password]</td>
			<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
			<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
		</tr>
		</table>
		<input type="hidden" name="s" value="$session[sessionhash]" />
		<input type="hidden" name="do" value="login" />		
		<input type="hidden" name="vb_login_md5password" />
		<input type="hidden" name="vb_login_md5password_utf" />
		</form>
		<!-- / login form -->	</td></if>
			
</tr>
</table>
<!-- / breadcrumb, login, pm info -->
<!-- /Aria Container -->

<!-- Aria Categoty Bottom -->
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/blc.gif" width="12" height="13" alt="" border="0" /></td>
        <td  width="100%" style="background-image:url($stylevar[imgdir_misc]/bottom.gif)"><img src="$stylevar[imgdir_misc]/clear.gif" width="100%" height="13" alt="" border="0" /></td>
        <td width="12" align="right" valign="top"><img src="$stylevar[imgdir_misc]/brc.gif" width="12" height="13" alt="" border="0" /></td>
      </tr>
    </table>
   <!-- /Aria Categoty Bottom -->

<!-- Aria Forum Description -->
<if condition="$show['forumdesc']">
<div class="aria_forumdesc_spacer"></div>
<div class="aria_forumdesc_border"><div class="nav_forumdesc"><span class="smallfont"><strong>$foruminfo[title]</strong> $foruminfo[description]</span></div></div>
</if>

<!-- /Aria Forum Description -->
<div class="aria_spacer"></div>
<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->
	
	<if condition="$show['searchbuttons']">
	<!-- header quick search form -->
	<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr>
			<td class="thead">$vbphrase[search_forums]</td>
		</tr>
		<tr>
			<td class="vbmenu_option" title="nohilite">
			<form action="search.php" method="post">
				<input type="hidden" name="do" value="process" />
				<input type="hidden" name="showposts" value="0" />
				<input type="hidden" name="quicksearch" value="1" />
				<input type="hidden" name="s" value="$session[sessionhash]" />
				<input type="text" class="bginput" name="query" size="20" />$gobutton<br />
			</form>
			</td>
		</tr>
		<tr>
			<td class="thead">$vbphrase[aria_search_options]</td>
		</tr>
		<tr>
			<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
		</tr>
		<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew">$vbphrase[aria_new_posts]</a></td>
		</tr>
		<tr>
			<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[aria_todays_posts]</a></td>
		</tr>
		<tr>
			<td class="vbmenu_option"><a href="memberlist.php?$session[sessionurl]do=search">$vbphrase[aria_members_search]</a></td>
		</tr>
		</table>
		
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.co.uk/custom" target="_top">
<table width="192" border="0" bgcolor="#ebe8f8">
<tr><td width="100%" height="32" align="left" valign="top" nowrap="nowrap">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a><br />
<input type="hidden" name="domains" value="www.ancestryaid.co.uk"></input>
<input type="text" name="q" size="13" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Search"></input>
</td>
</tr>
<tr>
<td nowrap="nowrap">
<table width="100%">
<tr>
<td width="100%">
<input type="radio" name="sitesearch" value="" checked="checked"></input>
<font size="-1" color="#000000">Web</font></td>
</tr>
<tr>
<td width="167">
<input type="radio" name="sitesearch" value="www.ancestryaid.co.uk"></input>
<font size="-1" color="#000000">Ancestry Aid</font></td>
</tr>
</table>
<input type="hidden" name="client" value="pub-8908310081583857"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#9A2C06;GL:1;DIV:#000066;VLC:D03500;AH:center;BGC:FFFFFF;LBGC:CCE5F9;ALC:440066;LC:440066;T:336699;GFNT:223472;GIMP:223472;LH:100;LW:100;L:http://www.ancestryaid.co.uk/images/aasch.gif;S:http://www.ancestryaid.co.uk;LP:1;FORID:1;"></input>
<input type="hidden" name="hl" value="en"></input></td></tr></table>
</form>
<!-- SiteSearch Google -->
	
		
	</div>
	<!-- / header quick search form -->
	</if>

	<if condition="$show['member']">
	<!-- user cp tools menu -->
	<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
		
		<tr><td class="thead">$vbphrase[quick_links]</td></tr>		
		<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
		<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
		<tr><td class="vbmenu_option"><a href="#" onClick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>
				
		<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
		<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
		<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
		<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
		<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
		
		<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
		<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]">$vbphrase[private_messages]</a></td></tr></if>
		<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]">$vbphrase[subscribed_threads]</a></td></tr>
		<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
		<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
		
		</table>
	</div>
	<!-- / user cp tools menu -->
	</if>
<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->

	<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr>
			<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
		</tr>
		<tr>
			<td class="vbmenu_option" title="nohilite">
			<form action="$vboptions[forumhome].php" method="get" onSubmit="return this.gotopage()" id="pagenav_form">
				<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />

				<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
			</form>
			</td>
		</tr>
		</table>
	</div>

<!-- / PAGENAV POPUP -->
</if>
If any of you coders out that can spot the errors then please let me know.

**Edit** -- I cant seem to get rid of the < td > without then producing another 13 or so errors on the validation. Its driving me nuts.

Thanks alot.

NOJ75
Reply With Quote
  #2  
Old 03-21-2006, 07:21 PM
becafuel becafuel is offline
 
Join Date: Mar 2006
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is the source code displayed by your browser correct around this line ? I suspect quotes error...
Reply With Quote
  #3  
Old 03-22-2006, 08:24 AM
noj75 noj75 is offline
 
Join Date: Nov 2004
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes it displays fine.

I have just deleted it now, was bugging me too much.

At least the forum is XHTML valid now.

Cheers anyway.
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 07:25 PM.


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.03908 seconds
  • Memory Usage 2,298KB
  • Queries Executed 11 (?)
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
  • (1)bbcode_code
  • (1)bbcode_html
  • (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)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete