Not signed in (Sign In)

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

    • CommentAuthorhfink
    • CommentTimeMar 1st 2010
     
    A client of mine wanted the ability to turn off and on galleries for public viewing... so I fixed it so it would do it by adding the word "temp" anywhere to the name of the gallery it only displays that gallery in the admin view:

    I added the following code to: plog-content/themes/nameofyourtheme/collection.php

    The below example uses the default theme that comes with plogger.. the two lines added are the first and last.

    if (!stristr(plogger_get_album_name(),'temp')) { //added optional don't show albums with temp in title.
    ?>
    <li class="thumbnail">
    <div class="tag" style="width: <?php echo $div_width; ?>px; height: <?php echo $div_height; ?>px;">
    <a href="<?php echo plogger_get_album_url(); ?>"><img class="photos" src="<?php echo plogger_get_album_thumb(); ?>" width="<?php echo $thumb_width; ?>" height="<?php echo $thumb_height; ?>" title="<?php echo plogger_get_album_name(); ?>" alt="<?php echo plogger_get_album_name(); ?>" /></a><br />
    <a href="<?php echo plogger_get_album_url(); ?>"><?php echo plogger_get_album_name(); ?></a>
    <?php echo plogger_download_checkbox(plogger_get_album_id()); ?><br />
    <span class="meta-header">(<?php echo plogger_album_picture_count() . ' '; echo (plogger_album_picture_count() == 1) ? plog_tr('image') : plog_tr('images'); ?>)</span>
    </div><!-- /tag -->
    </li><!-- /thumbnail -->
    <?php
    } //ends the optional album temp check