Plogger Support Forum - Hiding file names ( .jpg ) Thu, 28 Mar 2024 23:40:27 +0000 http://www.plogger.org/forum/ Lussumo Vanilla 1.1.10 Hiding file names ( .jpg ) http://www.plogger.org/forum/comments.php?DiscussionID=3204&Focus=12732#Comment_12732 http://www.plogger.org/forum/comments.php?DiscussionID=3204&Focus=12732#Comment_12732 Sat, 01 May 2010 19:42:59 +0000 Marden
Anyone able to help out please.]]>
Hiding file names ( .jpg ) http://www.plogger.org/forum/comments.php?DiscussionID=3204&Focus=12739#Comment_12739 http://www.plogger.org/forum/comments.php?DiscussionID=3204&Focus=12739#Comment_12739 Mon, 03 May 2010 09:31:19 +0000 chewbears
Add this or replace it so that you cut off the jpg.
$filename = str_replace(".jpg","",$filename);


Then you need to add this. I do not know what the stock plogger looks like but if you need and can not figure this out post your album.php and I will fix it for you.
print '</td><td nowrap><span class="info"><b>'. $filename . ' </b><br>' ;]]>
Hiding file names ( .jpg ) http://www.plogger.org/forum/comments.php?DiscussionID=3204&Focus=12762#Comment_12762 http://www.plogger.org/forum/comments.php?DiscussionID=3204&Focus=12762#Comment_12762 Sun, 09 May 2010 22:56:07 +0000 Marden
<?php plogger_get_header(); ?>

<div id="thumbnail-container">

<?php if (plogger_has_pictures()) : ?>
<div id="overlay">&nbsp;</div>
<ul class="slides">
<?php while(plogger_has_pictures()) : plogger_load_picture();
// Find thumbnail width/height
$thumb_info = plogger_get_thumbnail_info();
$thumb_width = $thumb_info['width']; // The width of the image. It is integer data type.
$thumb_height = $thumb_info['height']; // The height of the image. It is an integer data type.
$div_width = $thumb_width + 30; // Account for padding/border width
$div_height = $thumb_height + 75; // Account for padding/border width
// Generate XHTML with thumbnail and link to picture view
$img_id = "thumb-".plogger_get_picture_id();
$imgtag = '<img id="'.$img_id.'" onmouseout="document.getElementById(\'overlay\').style.visibility = \'hidden\';" onmouseover="display_overlay(\''.$img_id.'\', \''.plogger_picture_comment_count().'\')" class="photos" src="'.plogger_get_picture_thumb().'" width="'.$thumb_width.'" height="'.$thumb_height.'" title="'.plogger_get_picture_caption('clean').'" alt="'.plogger_get_picture_caption('clean').'" />';
?>
<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_picture_url(); ?>"><?php echo $imgtag; ?></a><br />
<span><?php echo plogger_get_picture_caption(); ?> <?php echo plogger_download_checkbox(plogger_get_picture_id()); ?></span>
</div><!-- /tag -->
</li><!-- /thumbnail -->
<?php endwhile; ?>
</ul><!-- /slides -->
<?php else : ?>
<div id="no-pictures-msg">
<h2><?php echo plog_tr('No Images') ?></h2>
<p><?php echo plog_tr('Sorry, but there are no images in this album yet.') ?></p>
</div><!-- /no-pictures-msg -->
<?php endif; ?>
</div><!-- /thumbnail-container -->

<?php plogger_get_footer(); ?>]]>