Znalazłem oto dzisiaj taki skrypcik wyświetlający losową fotkę. Co należy zmienić aby nie wyświetlał opisu pliku ?
<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery - random photo displayer //
// ------------------------------------------------------------------------- //
// Based on Dr. Tarique Sani RSS feed for Coppermine //
// <a href="http://tariquesani.net/" target="_blank">http://tariquesani.net/</a> //
//
// Adapted by djib to display a random photo - <a href="http://djib.biz" target="_blank">http://djib.biz</a> //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// ------------------------------------------------------------------------- //
// Just put into the same directory as your coppermine installation //
// ------------------------------------------------------------------------ //
define('IN_COPPERMINE', true); require('include/init.inc.php');
//How many items you want to show
$thumb_per_page = 1;
$thumb_count = 4;
$lower_limit = 0;
$album = 'random';
//Changes these to point to your site if the following is not giving correct resul
ts.
$link_url = $CONFIG['ecards_more_pic_target']."displayimage.php?pos=-";
$image_url = $CONFIG['ecards_more_pic_target']."albums/";
$data = get_pic_data($album, $thumb_count, $album_name, $lower_limit, $thumb_per_page);
foreach($data AS $picture) {
$thumb_url = "$image_url$picture[filepath]$CONFIG[thumb_pfx]$picture[filename]";
$category_string = "";
$pubDate = gmdate("D, d M Y H:i:s", $picture[ctime
]); $description = '<a href="' . $link_url . $picture['pid'] . '"><img src="' . $thumb_url . '" alt="Random image"/></a>'.bb_decode($picture[caption]).bb_decode($picture[caption_text]);
}
?>