Not signed in (Sign In)

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

    • CommentAuthornatebot
    • CommentTimeMar 25th 2007
     
    You can mod the code to do what you want. I have modified code so that my title includes the full breadcrumb trail.
    This is not ideal though, as it makes the title too long and it cost more mysql queries. Maybe someone will find it useful:

    I modified index.php so the title tag line is changed to -
    <title> My gallery | <?=generate_title($_GET[level],$_GET[id]?> </title>

    Then I added the following to bottom of gallery.php (but inside the closing "?>" tag)
    function generate_title($level, $id){
    $title = strip_tags(generate_breadcrumb($level,$id));
    return $title;
    }

    Like I said, this is more a proof of concept. It depends on the generate_breadcrumb function and is not very efficient, and not totally secure. I think it would be better to generate the title and the breadcrumbs from a single set of queries. Unfortunately the code isn't made that way.
  1.  
    The above does not work at all with Plogger 3. This worked for me - find plog-functions.php, around line 394 and change embedded=0 to embedded=1. The whole code for this section is as follows:
    function plogger_head() {
    global $config;

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

    if ($config["embedded"] == 1) {
    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";
    }
  2.  
    The above fix will not work if you also use my fix for the cruft-free url's. If you use that hack, then comment out the if statement at line 394 so that the following line is active:
    print "<title>" . SmartStripSlashes($config["gallery_name"]) . ": $title </title>\n";

    So the whole if statement will now look like this:
    //if ($config["embedded"] == 1) {
    print "<title>" . SmartStripSlashes($config["gallery_name"]) . ": $title </title>\n";
    //}