Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorsomeone1
    • CommentTimeMay 27th 2006
     
    After uploading images and adding albums to my website, i ran a test to check the XHTML validity of my document. It failed the test with 37 errors (where level=picture)

    Is this a mess up in the code? Will there a be a fix for this out soon?
    • CommentAuthorddejong
    • CommentTimeMay 28th 2006
     
    There were some XHTML and CSS errors in 2.1. There are much fewer in 3. However, there are likely a few. Going through the validator output, you could find the offending lines and change them.

    Given that 3 has a theme engine, you'll find most errors will stem from the theme itself, except for un-entitied characters (like "&") or the very basic CSS still used globally.

    Derek
    • CommentAuthorsomeone1
    • CommentTimeJun 1st 2006
     
    Hello, i've found a way to fix these errors:

    in your plog-functions.php file, change lines 330-335 to this:
    if ($level == "collection"){
    return $config['baseurl'].'index.php?level=collection&id='.$id;
    } else if ($level == "album") {
    return $config['baseurl'].'index.php?level=album&id='.$id;
    } else if ($level == "picture") {
    return $config['baseurl'].'index.php?level=picture&id='.$id;

    ALSO, in your gallery.php file, find and replace all '&id=' to '&id='' (without the quotes). This should fix all of the XHTML 1.0 problems!
    • CommentAuthorsomeone1
    • CommentTimeJun 1st 2006 edited
     
    I've also edited the gallery.php to make plogger XHTML 1.1 compliant (just adding <p style="text-indent: 0">'s in forms where neccessary)

    to do this:
    open up gallery.php
    find and replace name="jump_menu" to id="jump_menu"

    then, in your generate_jump_menu() function, change:
    $output .= '<form id="jump_menu" action="#" method="get">';

    to

    $output .= '<form id="jump_menu" action="#" method="get"><p style="text-indent: 0">';

    next, in your generate_search_box() function, change:
    $output = '
    <form action="'.$_SERVER["PHP_SELF"].'" method="get">
    <input type="hidden" name="level" value="search" />
    <input type="text" name="searchterms" />
    <input class="submit" type="submit" value="Search" />
    </form>';

    to

    $output = '
    <form action="'.$_SERVER["PHP_SELF"].'" method="get">
    <p style="text-indent:0">
    <input type="hidden" name="level" value="search" />
    <input type="text" name="searchterms" />
    <input class="submit" type="submit" value="Search" />
    </p>
    </form>';

    you would also have to edit your generate_sortby($level,$id) function and generate_sortdir($level,$id) function to change some &'s to &amp;'s and add <p>'s after teh <form> tag and before the <select> tag, and adding the </p> after the </select> tag