Not signed in (Sign In)

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

    • CommentAuthorsymcon
    • CommentTimeJan 9th 2008
     
    I love this software, I want to thank everyone for everything they have invested in it because it really is amazing.
    I am trying to use plogger as the base for a directory style site, i.e. I want each image to point to an entirely different webpage, NOT an enlarged version of the image. I want this to occur at this point:
    http://www.DOMAINNAME.com/DirectoryofPloggerLevel/AlbumLevel/InsidetheAlbum/File.jpg
    So when you click on the .jpg it takes you to another site. Please note for these purposes each picture would need to point to a different webpage.
    If this is not possible how do I turn off the link that automatically appears on the image?
    I have already altered the code so it allows inserting the links into the description, but I would really like to have this capability.
    I am not a php anything, so please be specific and dummy proof, as I am the definition of a dummy.
    I appreciate the time anyone can take to help me solve this,
    Thanks,
    Michelle
    • CommentAuthorphAn
    • CommentTimeJan 9th 2008
     
    I can't fully answer your question, as I'm not such a PHP wizard myself. But I think I can point you in the right direction. I've been playing with plogger for a few days, to build a site for a friend of mine. To save disc space on her server, I decided to skip the 'intermediate' pictures. Although it's a practical function, I think she's best off resizing images herself before uploading them, to avoid clogging up her webspace.

    So I switched off intermediate pictures and had plogger display the 'full size' version. Every image still contained it's automatic link towards the 'full size' view of the image; which in this case is kind of pointless. So I wanted to change this link as well. Please note I'm not talking about the album thumbnail view, but the seperate picture pages.

    To edit that link, you'll have to change picture.php in your /themes/yourtheme/ directory. Look for

    <div id="picture-holder"><a accesskey="v" href="<?php echo plogger_get_source_picture_url(); ?>"><img class="photos-large" src="<?php echo plogger_get_picture_thumb(THUMB_LARGE); ?>" title="<?php echo $capt; ?>" alt="<?php echo $capt; ?>" /></a></div>

    (copied from the /softer/ theme, this line should be similar in most themes)

    I changed this line to

    <div id="picture-holder"><a accesskey="v" href="<?php echo $next_url; ?>"><img class="photos-large" src="<?php echo plogger_get_picture_thumb(THUMB_LARGE); ?>" title="<?php echo $picture_caption; ?>" alt="<?php echo $picture_caption; ?>" /></a></div>

    and added the line '$next_url = plogger_get_next_picture_url();' to the variables at the top of the document.

    So now, for me, every full size image links to the next picture, which is far more convenient for me. I believe you can simply remove the <a href> from the code to avoid having the picture link to anything.

    Hope this helps :) Good luck!