Not signed in (Sign In)

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

    • CommentAuthorlrd1
    • CommentTimeAug 18th 2008
     
    Hi,

    Checkout http://www.dogsonline.com/_test.php

    Down the bottom of the page you will see the thumbnails for the album. Which is great. But the problem is when you click a thumbnail it opens the picture in the same page in the same position that the thumbnail was in.

    I don't want this. I want the thumbnail to open the picture into it's own page/template which i can customize.

    Is this a lot of work? Can you provide the code for me to make this work if it isn't to difficult?

    If it is difficult, how many hours would it take a decent php programmer to make it work - as i will get someone from elance to do it.

    Thanks
  1.  
    Check album.php in your theme directory and change how the image page is loaded.
    • CommentAuthorlrd1
    • CommentTimeAug 18th 2008
     
    $capt = plogger_get_picture_caption();
    $img_id = "thumb-".plogger_get_picture_id();
    $imgtag = '<img id="' . $img_id
    . '" src="'.plogger_get_picture_thumb().'" title="'.$capt.'" alt="'.$capt.'" />';

    print '<li class="thumbnail"><div class="tag"><a href="' . plogger_get_picture_url() . '">' . $imgtag . "</a><br />";

    print plogger_download_checkbox(plogger_get_picture_id());

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


    That is the code in album.php. I dont know what to change to make the page open in a fresh page/ template?
    • CommentAuthormaestro
    • CommentTimeAug 19th 2008 edited
     
    just ad target="_blank" in your link, check below I have added it


    $capt = plogger_get_picture_caption();
    $img_id = "thumb-".plogger_get_picture_id();
    $imgtag = '<img id="' . $img_id
    . '" src="'.plogger_get_picture_thumb().'" title="'.$capt.'" alt="'.$capt.'" />';

    print '<li class="thumbnail"><div class="tag"><a href="' . plogger_get_picture_url() . '" target="_blank">' . $imgtag . '</a><br />';

    print plogger_download_checkbox(plogger_get_picture_id());

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