Not signed in (Sign In)

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

    • CommentAuthorPieperLy
    • CommentTimeAug 12th 2008 edited
     
    hello,

    in collections.php and collection.php on default-theme the $desc -variable have no effect. in code on html-sites stand empty tags: alt="" and titel="" ... when i use $capt the same. now i use $name - it works, but for seofriendly sites i want $desc and $name: alt="$desc" titel="name"

    the $capt variable on album.php and picture.php works fine.

    how can i do so?
    sorry for my english
    reagards
    uwe
    • CommentAuthorpanjabi
    • CommentTimeAug 13th 2008
     
    Try using alt="<?= plogger_get_picture_description() ?>"
    • CommentAuthorPieperLy
    • CommentTimeAug 13th 2008
     
    hm, this don't work. here is a preview of collections.php:


    title-tag
    •  
      CommentAuthorryanduff
    • CommentTimeAug 14th 2008
     
    Posted By: panjabiTry using alt="<?= plogger_get_picture_description() ?>"


    I believe that syntax is wrong... It should be:

    alt="<?php plogger_get_picture_description(); ?>"
    • CommentAuthorPieperLy
    • CommentTimeAug 14th 2008
     
    then its so:
    title

    I think, php is not parsed.
    an idea?

    thanks for spend your time
    uwe
    • CommentAuthorPieperLy
    • CommentTimeAug 14th 2008
     
    ahso...
    i use the default theme, my collections.php with $name works, but no description:


    <?php
    plogger_get_header();
    print '<div id="thumbnail_container">';
    if (plogger_has_collections())
    {
    print '<ul class="slides">';
    while(plogger_has_collections())
    {
    $row = plogger_load_collection();
    $desc = plogger_get_collection_description();
    $name = plogger_get_collection_name();

    print '<li class="thumbnail"><div class="tag"><a href="' . plogger_get_collection_url() . '">';

    // generate XHTML with thumbnail and link to picture view.
    print '<img class="photos" src="'.plogger_get_collection_thumb().'" title="'.$name.'" alt="'.$name.'" />';

    print '</a><br/>';

    print plogger_download_checkbox(plogger_get_collection_id());

    print plogger_get_collection_name().' <br />';
    print '<div class="meta-header">(';

    $num_albums = plogger_collection_album_count();
    print $num_albums . ' ';
    print ($num_albums == 1) ? "Album" : "Alben";

    print ')</div></div></li>';
    }
    print '</ul>';
    } else {
    print "No collections yet";
    }
    print '</div>';
    plogger_get_footer();
    ?>


    picture_description isn't right here, here must stand the collektions_description
    ohje, hope, you understand me ;-)

    uwe
    uwe
    • CommentAuthorPieperLy
    • CommentTimeAug 15th 2008
     
    solved for collections.php:

    <?php
    plogger_get_header();
    print '<div id="thumbnail_container">';
    if (plogger_has_collections())
    {

    print '<ul class="slides">';
    while(plogger_has_collections())
    {


    $row = plogger_load_collection();
    $desc = plogger_get_collection_description();
    $name = plogger_get_collection_name();
    $description = $collection_info['description'];

    print '<li class="thumbnail"><div class="tag"><a href="' . plogger_get_collection_url() . '">';

    // generate XHTML with thumbnail and link to picture view.
    print '<img class="photos" src="'.plogger_get_collection_thumb().'" title="'.$row["description"].'" alt="'.$name.'" />';

    print '</a><br/>';


    title shows the description, alt shows the name.

    now search an equal solution for collection.php ...ideas?

    uwe
    • CommentAuthorPieperLy
    • CommentTimeAug 16th 2008
     
    hello,

    found solution for collection.php:


    <?php
    plogger_get_header();
    print '<div id="thumbnail_container">';
    if (plogger_has_albums()) {
    print '<ul class="slides">';

    while (plogger_has_albums()){
    $row = plogger_load_album();
    $num_pictures = plogger_album_picture_count();

    print '<li class="thumbnail"><div class="tag"><a href="' . plogger_get_album_url() . '">';


    $name = plogger_get_album_name();
    $description = htmlspecialchars($row["description"]);

    // generate XHTML with thumbnail and link to picture view.
    print '<img class="photos" src="'.plogger_get_album_thumb().'" title="'.$description.'" alt="'.$name.'" />';

    print '</a> <br />';

    print plogger_download_checkbox(plogger_get_album_id());

    print $name.' <br /><div class="meta-header">(';
    print $num_pictures.' ';
    print ($num_pictures == 1) ? "Bild" : "Bilder";

    print ')</div></div></li>';

    }
    print'</ul>';
    }
    else
    {
    print "No pictures in this collection!";
    }
    print '</form></div>';
    plogger_get_footer();
    ?>


    thanks @all for help
    uwe