Jestem zupełnie zielony, co widać.
Chciałbym na swojej stronie wyświetlić losowe zdjęcia z galerii.
Znalazłem coś w miarę odpowiedniego, tylko nie wiem jak to dostosować.
Chodzi mi o to żeby po kliknięciu na miniaturkę strona galerii otworzyła się w pełnym oknie.
Oraz, żeby dane typu autor i ilość razy, jaką oglądano, była wyświetlana pod zdjęciem.
I jeszcze brak niebieskiej ramki wokół zdjęcia.
Będę wdzięczny jeśli ktoś pomoże w rozwoju polonii na obczyźnie ;-)
Galeria: Coppermine Photo Gallery
http://www.york.net.pl/galeria/get_photo.php-- zawartośc pliku get_photo.php --
<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery - random photo displayer //
// ------------------------------------------------------------------------- //
// Based on Dr. Tarique Sani RSS feed for Coppermine //
//
// 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 = 3;
$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]);
}
?>
Ten post edytował polskieogloszenia 1.05.2007, 15:00:39