latest community pictures on the custom_index

Hello,

i want to have the "latest cummunity pictures" with the big square thumbnails on my custom_index frontpage.

what should I do?
THANKS!
  • Betty Jones

    Add this to your Custom_index

    if (is_plugin_enabled('tidypics')) {

    ?>

    <!-- display latest photos -->

    <div class="index_box">

    <h2><a href="<?php echo $vars['url']; ?>pg/photos/world/"><?php echo elgg_echo("tidypics:mostrecent"); ?></a></h2>

    <div class="contentWrapper">

    <?php

    echo tp_get_latest_photos(5);

    ?>

    </div>

    </div>

    <?php

    }

    ?>

  • Thank you! It work's! But can i change the size from the thumbnails?
    on the front index site there are small thumbnails, when i click the link there are big thumbnails
    and i want at the index site the big thumbnails tooimage

     

    THANKs!

  • Tidypics provides a convenience function tp_get_latest_photos() that returns the latest photos but it does not have a size parameter. You would have to write your own code to get larger photos.