Not signed in (Sign In)

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

    • CommentAuthorDodger57
    • CommentTimeSep 20th 2007
     
    Hi,

    I have the gallery embedded into an existing page on my site.

    This is causing problems validating as Xhtml strict due to the fact that both a title element and a charset meta tag are being dumped in the page where both already exist. I believe that the additional tags are due to the RSS headers being generated.

    This is the it being added to the page and causing the problems.

    <title>Cross Brand Galleries: Collections </title>
    <script type="text/javascript" src="http://my site url/gallery/slideshow.js"></script>
    <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="http://my site url/gallery/plog-rss.php?level=collections&amp;id=0" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <link rel='stylesheet' type='text/css' href='http://my site url/gallery/themes/default//gallery.css' />
    <script type='text/javascript' src='http://my site url/gallery/themes/default/dynamics.js'></script></head>

    How can I keep this from being inserted into the page and keep the RSS functioning?

    Thanks
    Daf
    • CommentAuthorjammindice
    • CommentTimeSep 20th 2007
     
    edit plog-functions.php and remove the corresponding lines from the plogger_head() function
    • CommentAuthorDodger57
    • CommentTimeSep 20th 2007
     
    Hey - thanks! That helped.

    I commented out the following:
    function plogger_head() {
    global $config;

    //$title = generate_title($GLOBALS['plogger_level'], $GLOBALS['plogger_id']);

    //if ($config["embedded"] == 0) {
    // print "<title>" . SmartStripSlashes($config["gallery_name"]) . ": $title </title>\n";
    //}

    print generate_slideshow_js($GLOBALS["plogger_id"], "album");
    print "\n";

    // Embed URL to RSS feed for proper level.
    //print '<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="'.plogger_rss_link().'" />' . "\n";
    //print '<meta http-equiv="Content-Type" content="text/html;charset=' . $config['charset'] . '"/>' . "\n";
    }

    Let me know if that is cool - I honestly have no idea what I'm doing in there! :)

    w3.org, while passing the validation, insisted that the headers are still coming down as utf-8

    The character encoding specified in the HTTP header (utf-8) is different from the value in the <meta> element (iso-8859-1). I will use the value from the HTTP header (utf-8) for this validation.

    Where is that coming from??

    Thanks again!

    Daf
    • CommentAuthorjammindice
    • CommentTimeSep 21st 2007
     
    i have no idea why your character sets are different unless you didn't specify it correctly in the page you integrated plogger in.... that's not my specialty...

    if you still want RSS to work though i would uncomment the line after "Embed URL to RSS feed for proper level"
    that would be the line to make rss work...