Results 1 to 4 of 4

[Error] xhtml coding error on my part - please help

This is a discussion on [Error] xhtml coding error on my part - please help within the Template Modifications forums, part of the vBulletin SEO Discussion category; I have an error in my coding, but everything is showing up how I'd like it to. I've tried a ...

  1. #1
    Senior Member Array
    Real Name
    .
    Join Date
    Jul 2006
    Posts
    386
    Liked
    3 times
    Blog Entries
    1

    [Error] xhtml coding error on my part - please help

    I have an error in my coding, but everything is showing up how I'd like it to. I've tried a few things to get valid xhtml (1.0 transitional) but can't seem to get it to display correctly.

    My site:
    Call of Duty 4 Glitches, Halo 3 Glitches, and Rainbow Six Glitches

    Problem area:
    Code:
        <!-- search -->
              <td>
                    <form action="search.php?do=process" method="post">
                    <td class="searchbg" nowrap="nowrap" align="right"> 
                        <input type="hidden" name="do" value="process" />
                        <input type="hidden" name="quicksearch" value="1" />
                        <input type="hidden" name="childforums" value="1" />
                        <input type="hidden" name="exactname" value="1" />
                        <input type="hidden" name="s" value="$session[sessionhash]" />
                        <input type="text" class="searchboxbg" name="query" size="33" tabindex="1001" style="margin-right:20px; width:222px" />
                   <if condition="$show['member']">
                     <div class="searchtxt" style="margin-left:148px; float:left"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></div> 
                   </if>
                     <div class="searchtxt" style="margin-right:20px"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></div></td>
                 <td nowrap="nowrap" align="left" width="10%" style="padding-right:10px"> 
                         <input class="searchbutton" value="Search" tabindex="1004" src="http://www.vbseo.com/images/se7ensins/misc/searchbutton.png" type="image" />
                        <div class="searchtxt" style="padding-right:10px"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">&nbsp;Advanced Search</a></div></td>
                    </form>
            </td>
        <!-- / search -->
    Help is appreciated.

    Thanks,
    Justin
    Last edited by jbartle; 01-24-2008 at 10:50 PM.

  2. #2
    Senior Member Array
    Real Name
    Brian
    Join Date
    Apr 2006
    Posts
    6,983
    Liked
    10 times
    a) you have 2 doctypes.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    you only need one.

    you can change that in the acp, all style options... there's a block about 3/4 the way down for the DTD. chances are you pasted twice by accident (because the text box isn't big enough)


    B) you have a missing table cell closer somewhere. i'm not hunting it down, your code's a mess and the vbseo strip whitespace isn't helping.


    C) onClick needs to be onclick. xhtml is all lowercase.



    that should fix 'em

  3. #3
    Senior Member Array
    Real Name
    .
    Join Date
    Jul 2006
    Posts
    386
    Liked
    3 times
    Blog Entries
    1
    a) What's funny is, I haven't touched anything with that. I can't figure out why it's doing that...so I'm guessing it's a mod.

    b) I'll take a look but w3 was saying that the <td> couldn't go where I have it.

    c) Thanks. Idk why the C was caps, b/c I didn't change that code from the original vb code...

  4. #4
    Senior Member Array
    Real Name
    .
    Join Date
    Jul 2006
    Posts
    386
    Liked
    3 times
    Blog Entries
    1
    Ok, fixed all errors besides the one I initially posted about.

    " document type does not allow element "td" here."

    That's what I'm getting. I have the <td> inside the <form> since thats the only way I've gotten it to show up how I want it. Is there any other way I can do this with validating my code?

Similar Threads

  1. Internal Server error - Log error posted here
    By candg in forum Troubleshooting
    Replies: 2
    Last Post: 08-06-2007, 05:46 AM
  2. vBSEO error in error log
    By Mert Gökçeimam in forum Troubleshooting
    Replies: 5
    Last Post: 02-26-2007, 10:41 AM
  3. I Need a Little Help With My Header Coding
    By soletrader in forum General Discussion
    Replies: 5
    Last Post: 11-14-2006, 03:34 PM
  4. XHTML Validation error
    By Griffin in forum Troubleshooting
    Replies: 3
    Last Post: 08-05-2006, 12:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •