Bonjour,
J'ai suivi la méthode d'ajout pour afficher aléatoirement des images sur mon portail
http://forum.web-automobile.com/portal.php
Mais j'aimerais maintenant avoir le fond de la même couleur que mon bloc et aussi espacer les photos
Pouvez vous m'aider
D'avance merci
quel est le code utilisé ?
Y at'il des fichiers inclus, si oui, merci de nous en donner le code (ceux qui permettent d'afficher ces images)
Bonjour MrKeller,
le code utilisé est le suivant (trouvé http://www.think-underground.com/post/2006/03/11/204-afficher-les-images-d-une-galerie-coppermine-sur-un-autre-site)
<?php
// Coppermine Photo Gallery - get_image script
// Based on the RSS feed by Dr. Tarique Sani - http://tariquesani.net/
// Adapted by djib to display a random photo - http://djib.fr
// 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);
define('INDEX_PHP', true);
require('include/init.inc.php');
//How many items you want to show in your get_photo script
if(isset($_GET['nb'])) {
$thumb_per_page=$_GET['nb'];
} else {
$thumb_per_page = 4;
}
$thumb_count = 4;
$lower_limit = 0;
if(isset($_GET['album'])){
$album = $_GET['album'];
}
//If it is a numeric album get the name and set variables
if (is_numeric($album)){
$album_name_keyword = get_album_name($album);
$CURRENT_CAT_NAME = $album_name_keyword['title'];
$ALBUM_SET = "AND aid IN (".(int)$_GET['album'].")".$ALBUM_SET;
$album = 'random';
}
//If the album is not set set it to lastup - this is the default
if(!isset($album)){
$album = 'random';
}
//Changes these to point to your site if the following is not giving correct results.
$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]";
$description = '<a href="' . $link_url . $picture['pid'] . '"><img class="get_photo" src="' . $thumb_url . '" alt="Photo aléatoire"/></a>';
echo $description;
}
?>
situé http://forum.web-automobile.com/galerie/get_photo.php
envoyé sur le portail dans un bloc par le biais d'une iframe
merci
ps: y a toujours à remplir les Verifications?
ha oui et voir aussi pour que si l'on clique sur une image de la visioneusse , ça s'ouvre dans une fenetre et non dans l'iframe :(
Je viens de voir que votre galerie est toujours sous cpg1.4.27. Cette série (cpg1.4.x) n'est plus supportées. Il faudrait passer à la version cpg 1.5.x...
:o j'étais à cette version mais le bridge pour prosilver phpbb3 ne marchait sur mon forum :-X