The MU forums have moved to WordPress.org

got some trouble with the "old" mu-admin bar (5 posts)

  1. Ovidiu
    Member
    Posted 13 years ago #

    using this plugin: http://wpmudevorg.wordpress.com/project/MU-Admin-Bar

    I have got a problem with html validation. the validator complains about a </form> where there is no opening form :-(

    relevant sourcecode of the site: http://zice.ro

    </div><div id="wp-admin-bar-right">
    <ul>
    <li><a href="http://zice.ro/next.php">Random Blog</a></li>
    <li><a href="http://zice.ro/wp-login.php?action=logout">Log out</a></li>
    </ul>
    </div></form>

    and here is the sourcecode that generates that code:

    echo "\n\t
    <li><a>Random Blog</a></li>
    ";  /* uncomment if you are using dr mike's random blog plugin */
    		echo "\n\t
    <li>"; wp_loginout(); echo "</li>
    ";
    		echo "\n</div>";

    I am not sure where this </form> tag comes from.

  2. Ovidiu
    Member
    Posted 13 years ago #

    ok, I took out the `

  3. "; wp_loginout(); echo "
  4. as there already is a login/out form in the sidebar, thought this one in the admin bar might interfere with it... still no change, got that</form>` sitting there :-(

  • Ovidiu
    Member
    Posted 13 years ago #

    any hints on this please? nobody using that plugin?

  • dsader
    Member
    Posted 13 years ago #

    Validate the template first without any plugins/widgets. Add pieces one at a time to validate.

    There appear to be errors unrelated to the mu-admin bar.

    For example, using Mandigo theme, http://studentsua.zice.ro/ Admin bar shows fine, and page validates.

    To illustrate, a flaw in a template header.php ( a misplaced wp_head hook, for example) will show errors about every plugin using the hook. Only use wp_head within head and not in body
    Pass:`
    <?php wp_head(); ?>
    </head>
    <body>`
    Fail:`
    </head>
    <body><?php wp_head(); ?>
    `
    I suspect your home template customizations have busted validation along the way, regardless of mu-admin bar or not.

  • Ovidiu
    Member
    Posted 13 years ago #

    thx a lot for the hints. I wasn't aware it validates for other blogs.

  • About this Topic