forum.coppermine-gallery.net

Support => Français (French) => Language Specific Support => cpg1.4.x Français (French) => Topic started by: Pascal YAP on January 26, 2009, 08:06:29 pm

Title: CoolIris / PicsLens et Coppermine
Post by: Pascal YAP on January 26, 2009, 08:06:29 pm
Bonjour,

Votre Coppermine est "équipé" de Flux RSS ?
Régalez-vous avec CoolIris, fabuleuse application FLASH compatible avec Coppermine après quelques insertions de 2 ou 3 codes.
Web CoolIris : http://www.cooliris.com/
Infos Installation CoolIris : http://developer.cooliris.com/?p=full

CoolIris est un Plugin pour Firefox, Safari et IE.

Exemple avec CoolIris LITE sur ma page perso (http://www.pays-dignois.com/galerie/index.php?file=minicms/cms&id=94)

Merci à Günter (http://forum.coppermine-gallery.net/index.php?action=profile;u=58920)de lancer l'idée  ;D

Aspect de ma Galerie Coppermine via CoolIRIS :-)
Title: Re: CoolIris / PicsLens et Coppermine
Post by: sanlogik on January 26, 2009, 10:39:04 pm
j'ai pas tout compris et comme ça marche pas chez moi, c'est pas gagné  :D
j'ai l'impression que l'association des vignettes ne peut pas se faire avec les originaux... enfin si jai bien capté la procédure, lol
je me dit que c'est l'overlay qui fout la merde, c'est possible ?
Title: Re: CoolIris / PicsLens et Coppermine
Post by: Pascal YAP on January 26, 2009, 11:28:51 pm
Quote
je me dit que c'est l'overlay qui fout la merde, c'est possible ?
Si il s'agit de l'Overlay de protection des images, cet Overlay de 1px x 1px qui recouvre les images, c'est exact.
L'icone CoolIris, en bas et à gauche des images linkées, tente d'afficher l'Overlay  ??? CQFD.
Title: Re: CoolIris / PicsLens et Coppermine
Post by: sanlogik on January 27, 2009, 08:32:30 pm
Si il s'agit de l'Overlay de protection des images, cet Overlay de 1px x 1px qui recouvre les images, c'est exact.
L'icone CoolIris, en bas et à gauche des images linkées, tente d'afficher l'Overlay  ??? CQFD.
ça confirme mes craintes donc...
en résumé, entre overlay et gadget il faut choisir ? lol
bon bah j'ai choisi, tant pis  ;D
Title: Re: CoolIris / PicsLens et Coppermine
Post by: Pascal YAP on January 27, 2009, 11:19:32 pm
Perso je choisirai CoolIris  ;)
Simplement parce qu'il est tellement facile de contourner cet Overlay qui du reste n'apporte rien de visuel !
Au contraire CoolIris offre une alternative visuelle des plus plaisante et réellement novatrice.

Mais c'est votre choix  ;D
Title: Re: CoolIris / PicsLens et Coppermine
Post by: Pascal YAP on January 29, 2009, 03:46:58 am
Il faut se souvenir que publier sur internet, c'est offrir !

Et puis une simple copie d'écran collée dans PhotoShop (ou même Word) et l'Overlay vole en éclats  ;)

(j'ai mis à jour mon fichier RSS et CoolIris fonctionne à merveille maintenant)
Title: Re: CoolIris / PicsLens et Coppermine
Post by: sanlogik on January 29, 2009, 11:24:40 pm
Il faut se souvenir que publier sur internet, c'est offrir !

Et puis une simple copie d'écran collée dans PhotoShop (ou même Word) et l'Overlay vole en éclats  ;)
je sais très bien tout ça, on en a déjà longuement parlé dans d'autres topics et je suis le premier à penser que du moment que c'est disponible en ligne, on peut toujours le copier ^^
mais les images que je propose sont protégées par le droit d'auteur et je me dois de faire tout de même un minimum d'efforts pour empêcher un pillage massif et systématique  ;)
j'ai laissé tomber le filigrane pour ne pas "défigurer" les images, je dois cependant faire preuve de bonne volonté vis à vis des artistes, sans parler du travail que ça représente pour nous d'avoir mis tout ça en ligne, lol
C'est dommage pour CoolIris mais bon, tant que je n'aurai rien de mieux que le filigrane ou l'overlay, je m'en passerai  :'(
Title: Re: CoolIris / PicsLens et Coppermine
Post by: Pascal YAP on January 30, 2009, 09:34:20 am
Quote
j'ai laissé tomber le filigrane pour ne pas "défigurer" les images
et un filigrane X% transparent au format .PNG ?
Title: Re: CoolIris / PicsLens et Coppermine
Post by: andiwe on January 31, 2009, 10:27:45 pm
Je m'excuse pour mon français.
Si vous comprenez l'anglais vous pourriez aller voir ici:
http://forum.coppermine-gallery.net/index.php/topic,50572.msg283092.html#new
Title: Re: CoolIris / PicsLens et Coppermine
Post by: Pascal YAP on February 01, 2009, 10:44:31 am
Your French is perfect and in German you're certainly better  ;)
Thanx for your link.
Title: Re: CoolIris / PicsLens et Coppermine
Post by: sanlogik on February 02, 2009, 12:05:49 pm
et un filigrane X% transparent au format .PNG ?
euuu, apa compris  :P
Title: Re: CoolIris / PicsLens et Coppermine
Post by: François Keller on February 02, 2009, 01:17:33 pm
Le monsieur y veut dire que le finigrane peut avoir une opacité (ou une tranparence) de x% ce qui fait qu'il n'est pas trop visible en affichage mais pourri l'image à l'utilisation.
un exemple ici pour mieux comprendre http://www.photo-macro.be/Forum/viewtopic.php?f=61&t=693 (http://www.photo-macro.be/Forum/viewtopic.php?f=61&t=693)
Title: Re: CoolIris / PicsLens et Coppermine
Post by: Pascal YAP on February 02, 2009, 01:25:00 pm
Ah oui le tueur :-)
Autre exemple plus discret : http://www.haut-les-mains.fr/media/displayimage.php?pos=-759  ;D Hello All World  :D
Title: Re: CoolIris / PicsLens et Coppermine
Post by: jujuv on April 05, 2009, 01:08:23 am
Hello,

J'ai installer piclens sur Firefox et j'ai aussi Easy_RSS-1.2 (avec le rss.php de Denisjl) sur mon site.

Et là ... comment faire pour mettre Cooliris !?! Franchement étant super nul en anglais, j'ai tenté, puis retenté d'installer Cooliris sur mon site ... mais je n'y arrive pas !!!

Quelqu'un pourrait m'indiquer la marche à suivre ...

Merci
Jujuv
Title: Re: CoolIris / PicsLens et Coppermine
Post by: Pascal YAP on April 05, 2009, 02:45:19 pm
J'ai ajouté ceci dans mon TEMPLATE.HTML
Code: [Select]
<link rel="alternate" type="application/x-cooliris-quick" href="http://www.******.com/galerie/cooliris-quick.xml" />
<link rel="alternate" href="http://www.******.com/galerie/cooliris-rss.php" type="application/rss+xml" title="PicLens RSS" id="gallery" />
    <!-- Include the PiclensLite JavaScript. //-->
    <script type="text/javascript" src="http://lite.piclens.com/current/piclens.js"></script>
Title: Re: CoolIris / PicsLens et Coppermine
Post by: jujuv on April 05, 2009, 11:56:21 pm
Merci beaucoup ... ça fonctionne ... mais car il y en a toujours un !

Cela ne m'affiche que les 100 dernières images uploadées ! et pas l'intégrale du site ~30'000 images !?!

Et ... est-il possible de gérer les albums et catégories avec Cooliris ?

Bonne semaine !
Title: Re: CoolIris / PicsLens et Coppermine
Post by: Pascal YAP on April 06, 2009, 12:59:55 am
Quelle est l'adresse de votre site ?

Le lien web de votre Profil montre un Coppermine en version 1.4.18, soit 3 versions de retard !
Avec ~30.000 fichiers vous courrez un certain risque  ;)
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 06, 2009, 01:22:46 am
Je dois dire que je n'ai pas bien compris l'installation non plus.
Meme après avoir traduit la page http://developer.cooliris.com/?p=full (http://developer.cooliris.com/?p=full)
Title: Re: CoolIris / PicsLens et Coppermine
Post by: Pascal YAP on April 06, 2009, 07:19:40 am
@Fred,
J'avoue ne pas avoir bien compris ce que vous avez déjà fait, et où vous coincez ;)
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 06, 2009, 11:15:21 am
je ne comprend pas comment installer cooliris sur mon site, quel partie télécharger, où l'installer...
Title: Re: CoolIris / PicsLens et Coppermine
Post by: Pascal YAP on April 06, 2009, 11:32:45 am
CoolIris est un plugin pour Firefox, IE, et Safari, pas un plugin pour Coppermine !

Il vous faut :
1/ Installer le plugin pour votre navigateur préféré.
2/ Installer un RSS Feed (Easy-Rss par exemple, dspo sur notre forum)
3/ l'adapter comme ci-dessous
4/ Créer un fichier XML comme ci-dessous.

cooliris-rss.php (attention à la ligne 42.
Code: [Select]
<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery - RSS Feed&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; //
// ------------------------------------------------------------------------- //
// Copyright (C) Dr. Tarique Sani&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160; //
// http://tariquesani.net/&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; //
// modifications by versus7 - www.oixalia.gr - oixalia@oixalia.gr //
// further modifications by Brent Gerig
// This program is free software; you can redistribute it and/or modify&#160; &#160;&#160; //
// it under the terms of the GNU General Public License as published by&#160; &#160;&#160; //
// the Free Software Foundation; either version 2 of the License, or&#160; &#160; &#160; &#160; //
// (at your option) any later version.&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; //
// ------------------------------------------------------------------------- //
// Just put into the same directory as your coppermine installation&#160; &#160; &#160; &#160;&#160; //
// ------------------------------------------------------------------------ //
// Mod by Andiwe to generate XML RSS Feed for PicLens Gallery
//&#160; Feed will only load a defined amount of pics at once and give prev an next
//&#160; URL to the Feed for large Album support.
//&#160; Annotations marked with A/

define('IN_COPPERMINE'true);
define('INDEX_PHP'true);

global 
$CONFIG,$ALBUM_SET,$META_ALBUM_SET,$CURRENT_CAT_NAME,$FORBIDDEN_SET_DATA,$lang_plugin_easyrss,$lastup_date_fmt;
require(
'include/init.inc.php');
require(
'plugins/Easy_RSS/include/init.inc.php');

//How many items you want to show in RSS feed
//A/How many pictures do you want to be loaded at a time ?
//A/Should be the count of pictures in the album View to make the start at a 
//A/ specific Page working.
//A/4 Rows with 5 Colums of Pictures means 20
//A/oldconfig $thumb_per_page = intval($CONFIG[plugin_easyrss_num]);
$thumb_per_page = ((intval($CONFIG[thumbrows]))*(intval($CONFIG[thumbcols])));

//A/ We need the count of Pictures in your Movieslide below the preview Image.
//A/ Thats for to make the play Button at the start and end of pages working.
//A/oldconfig $pics_in_movieslide = intval($CONFIG[plugin_easyrss_mvslnum]);
$pics_in_movieslide intval($CONFIG[max_film_strip_items]);

//A/URL of your Gallery
$gallery_home_url 'http://www.?????????.com/galerie/';
// $gallery_home_url = $CONFIG['ecards_more_pic_target'];

//A/Get Gallery descriptions
$gallery_name $CONFIG['gallery_name'];
$gallery_desc $CONFIG['gallery_description'];

//A/Logo to be displayed on to of the PicLens View
//A/think this is buggy in 3D View but shows correctly in Flash Player (lite)
//A/if you don't wanna have logo or music just comment the hole line out.
//$site_logo = 'plugins/Easy_RSS/sitelogo.gif';
$site_logo $CONFIG['plugin_easyrss_logo'];
//$site_music = 'plugins/Easy_RSS/site_music.mp3';

//A/ If you want to display the Normal-Pictures instead of
//A/ the Thumbnails at initial Wall-View give it the value 1
$fullsizethumbs intval($CONFIG[plugin_easyrss_fullsizethumbs]);

//A/ If you want to diyplay the Full-Pictures instead of
//A/ the Normals at detailed Wall-View give it the value 1
$fullsizepics intval($CONFIG[plugin_easyrss_fullsizepics]);

//A/set initial values
$thumb_count 0;
$lower_limit 0;
$album '';
$umlautArray = Array("&amp;auml;","&amp;ouml;","&amp;uuml;","&amp;Auml;","&amp;Ouml;","&amp;Uuml;","&amp;szlig;");
$replaceArray = Array("/&auml;/","/&ouml;/","/&uuml;/","/&Auml;/","/&Ouml;/","/&Uuml;/","/&szlig;/");

if(
count($FORBIDDEN_SET_DATA) > ){
&
#160; &#160; $forbidden_set_string =" AND aid NOT IN (".implode(",", $FORBIDDEN_SET_DATA).")";
} else {
&
#160; &#160; $forbidden_set_string = '';
}

if(isset(
$_GET['album'])){
&
#160; &#160; $album = $_GET['album'];
}

//If it is a numeric album get the name and set variables
if ((is_numeric($album))){
&
#160; &#160;&#160; $album_name_keyword = get_album_name($album);
&#160; &#160;&#160; $CURRENT_CAT_NAME = $album_name_keyword['title'];
&#160; &#160;&#160; $META_ALBUM_SET = "AND aid IN (".(int)$_GET['album'].")".$ALBUM_SET;
}
else {

&
#160; //If the album is not set, set it to lastup - this is the default
&#160; if(!isset($album)){
&#160; &#160; &#160;&#160; $album = 'lastup';
&#160; &#160; &#160;&#160; }
&#160; else {
&#160; &#160; if ($album == 'topn') {
&#160; &#160; &#160; //if topviewed is selected
&#160; &#160; &#160; //$album = 'topn';
&#160; &#160; }
&#160; &#160; else {
&#160; &#160; &#160; if ($album == 'random') {
&#160; &#160; &#160; //$album = 'random');
&#160; &#160; &#160; }
&#160; &#160; &#160; else {
&#160; &#160; &#160; //maybe someone injected something else
&#160; &#160; &#160; $album = 'lastup';
&#160; &#160; &#160; }
&#160; &#160; }
&#160; }
}


//A/ok lets get the correct start point (picture) at wich the rss shall begin
//A/that's when it's called by the prev and next links from piclens
if(isset($_GET['start'])){
&
#160; &#160; $start_at_var = $_GET['start'];
}
//A/set the lower limit to that point
if ((is_numeric($start_at_var))){
&
#160;&#160; $lower_limit = intval($start_at_var);&#160; 
&#160;&#160; //A/ lets make sure $lower_limit is a multiple of $thumb_per_page
&#160;&#160; $lower_limit = ( (intval(($lower_limit)/($thumb_per_page))) * $thumb_per_page );
}


//A/get the album page from where the feed was loaded
if(isset($_GET['page'])){
&
#160; &#160; $start_at_page = $_GET['page'];
}
//A/lets define the start lower_limit by a multiple (page) of the thumb_per_page 
if ((is_numeric($start_at_page))){
&
#160;&#160; $lower_limit = ((intval($start_at_page) - 1) * $thumb_per_page);&#160; 
}


//A/ get the image position when clicking on big preview
if(isset($_GET['imgpos'])){
&
#160; &#160; $start_at_imgpos = $_GET['imgpos'];
}
//A/set the lower limit to that point
if ((is_numeric($start_at_imgpos))){

//A/try to reduce that to the cases where those overlapping pictures are displayed
//$pics_in_movieslide = 5; // =5
&#160; &#160; &#160; $movieslideleft = intval(($pics_in_movieslide -1) / 2); // =2
&#160; &#160; &#160; $moviesliderest = $pics_in_movieslide - $movieslideleft; // =3
&#160; &#160; &#160; 
&#160;&#160; if ($start_at_imgpos < ($thumb_per_page)) {
&#160; &#160; &#160; $lower_limit = 0;
&#160; &#160; &#160; if ( ( ($start_at_imgpos % $thumb_per_page) > ($thumb_per_page - $moviesliderest) ) ) {
&#160; &#160; &#160; //Awe got overlapping picture on the first page
&#160; &#160; &#160; $thumb_per_page_multi = 2;
&#160; &#160; &#160; $thumb_per_page = $thumb_per_page_multi * $thumb_per_page;&#160; 
&#160; &#160; &#160; }
&#160;&#160; }
&#160;&#160; else {
&#160; &#160; &#160; $lower_limit = ( (intval(($start_at_imgpos)/($thumb_per_page))) * $thumb_per_page );
&#160; &#160; &#160; //A/sorry we got to load more pictures to show all play buttons on the thumbnails
&#160; &#160; &#160; //A/in preview. especially when in the movie-clip view there are pictures that are
&#160; &#160; &#160; //A/not on the same page with the viewed image, the button won't be displayed
&#160; &#160; &#160; //A/because the feed doesn't contain that datasets.
&#160; &#160; &#160; 
&#160; &#160; &#160; if ( (($start_at_imgpos % $thumb_per_page) < $movieslideleft) ) {
&#160; &#160; &#160; //A/we got overlapping pictures at the start of a page
&#160; &#160; &#160; $lower_limit = $lower_limit - $thumb_per_page;
&#160; &#160; &#160; $thumb_per_page_multi = 2;
&#160; &#160; &#160; $thumb_per_page = $thumb_per_page_multi * $thumb_per_page;&#160; &#160; &#160; 
&#160; &#160; &#160; }
&#160; &#160; &#160; if (($start_at_imgpos % $thumb_per_page) > ($thumb_per_page - $moviesliderest) ) {
&#160; &#160; &#160; //A/we got overlapping pictures at the end of a page
&#160; &#160; &#160; $thumb_per_page_multi = 2;
&#160; &#160; &#160; $thumb_per_page = $thumb_per_page_multi * $thumb_per_page;&#160; &#160; &#160; 
&#160; &#160; &#160; }
&#160; &#160; &#160; //A/no overlapping pictures and nothing to do ;-)
&#160; &#160; &#160; 
&#160; &#160; &#160; //A/so now we have got to make sure that we can set the previous and next feed links
&#160; &#160; &#160; //A/correctly we will do that when it comes to generate the links.
&#160; &#160; &#160; //A/therefor we reset the $thumb_per_page to it's original value when it comes
&#160; &#160; &#160; //A/to the url generation in next oder prev cases.
&#160;&#160; }&#160; 
}


//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=-";
$link_url_alb $CONFIG['ecards_more_pic_target']."displayimage.php?album=";

//A/Choose between Full Path and relative one depending on where this file resides.
//A/relative one is shorter and makes smaller rss feeds.
//$image_url = $CONFIG['ecards_more_pic_target']."albums/";
$image_url "albums/";

$META_ALBUM_SET .= $forbidden_set_string;
$data get_pic_data($album$thumb_count$album_name$lower_limit$thumb_per_page);

/*
//A/we wan't to have linkback to the correct album id and not the absolute picture pos
//A/if we are have not opened the feed out of an album but a cat like e.g. lastup instead
if $start_at_imgpos < 0 {

}
*/

header ("content-type: text/xml");
//A/we need less code than easy rss what makes the rss smaller 
$rssHeader = <<<EOT
<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>

EOT;

$rssHeader .= <<<EOT
<generator>Easy RSS Feed Mod 4 PicLens by Andiwe b016</generator>

EOT;

echo $rssHeader;


//A/ ok lets create the "previous" and "next" links in the rss feed
//A/ the if construction needs to be sorted ... that sure was some alcoholic stuff ;-)

  $item = '';

if ($thumb_count > $thumb_per_page)  {
//A/ so we got to make sure that the album has more pictures than $thumb_per_page
//A/ if it has less we do not need any links
 
  if ($lower_limit < $thumb_per_page) {
  //A/ so we are at the start of the gallery and need only a next link
  $nextfeednum = $thumb_per_page;
  $item .= '<atom:link rel="next" href="cooliris-rss.php?album='.$album.'&amp;start='.$nextfeednum.'" />';
  $item .= "\n";
  }

 if (($thumb_count - $lower_limit) > $thumb_per_page)  {
 //A/ so we are anywhere in the middle of the gallery

  if ($lower_limit > ($thumb_per_page - 1)) {
  //A/ just check again if we are not at the start ... why ??? don't know anymore ;-)
  $nextfeednum = $lower_limit + $thumb_per_page;
  if ($thumb_per_page_multi > 1) {
      $thumb_per_page = $thumb_per_page / $thumb_per_page_multi;
  }
  $previousfeednum = $lower_limit - $thumb_per_page;
  $item .= '<atom:link rel="previous" href="cooliris-rss.php?album='.$album.'&amp;start='.$previousfeednum.'" />';
  $item .= '<atom:link rel="next" href="cooliris-rss.php?album='.$album.'&amp;start='.$nextfeednum.'" />';
  }
 
  if ($lower_limit > ($thumb_count - $thumb_per_page)) {
  //A/ so what was this for ???
  if ($thumb_per_page_multi > 1) {
      $thumb_per_page = $thumb_per_page / $thumb_per_page_multi;
  }
  $previousfeednum = $lower_limit;
  $item .= '<atom:link rel="previous" href="cooliris-rss.php?album='.$album.'&amp;start='.$previousfeednum.'" />';
  }
 
 }
 
 if (($thumb_count - $lower_limit) < ($thumb_per_page + 1))  {
 //A/ we are at the end of the gallery because there are less or equal than $thumb_per_page images left
 //A/ so just create a previous link
  if ($lower_limit > ($thumb_count - $thumb_per_page)) {
    if ($thumb_per_page_multi > 1) {
      $thumb_per_page = $thumb_per_page / $thumb_per_page_multi;
    }
    $previousfeednum = $lower_limit - $thumb_per_page;
    $item .= '<atom:link rel="previous" href="cooliris-rss.php?album='.$album.'&amp;start='.$previousfeednum.'" />';
  }
 }

}

  echo $item;
 
//A/ prev and next feed links maybe ;-) have now been generated.

//A/ we've lost some Easy_RSS Code here ;-)

$rssHeader = '';

if ($site_logo > '') {
  $rssHeader .= <<<EOT
<atom:icon>$site_logo</atom:icon>

EOT;
}

if ($site_music > '') {
  $rssHeader .= <<<EOT
<atom:link rel="enclosure" type="audio/mpeg" length="1337" href="$site_music" />

EOT;
}

echo $rssHeader;

$description_header = "<title>".$gallery_name."</title>\n<link>".$gallery_home_url."</link>\n<description>".$gallery_desc;
// $description_header .= " &lt;a href&quot;rss.php?album=".$album."&amp;start=".$previosfeednum."&quot;&gt;Prev&lt;/a&gt;&nbsp;&lt;a href&quot;rss.php&amp;album=".$album."&amp;start=".$nextfeednum."&quot;&gt;Next&lt;/a&gt;";
$description_header .= "</description>";
echo $description_header;
echo "\n";

//A/ i replaced the thumbnails with the normals and the normals with the full sized pics
//A/ thumbnails are looking bad in wall view
//A/ linking in the picture by the icon doesn't work anymore with that option :-(

//A/ as you can see i now have 2 thumbnail urls
//A/ only the first will be used to load the pictures
//A/ the second one is to publish the real thumbnail filenames to piclens
//A/ without that the play button won't appear in the thumbs in album view.
$tmp_count = $lower_limit;

foreach($data AS $picture) {
  $full_url = "$image_url$picture[filepath]$picture[filename]";
  $normal_url = "$image_url$picture[filepath]$picture[filename]";
  $thumb_url  = "$image_url$picture[filepath]$CONFIG[thumb_pfx]$picture[filename]";
  $title      = $picture[filename];
  $picmd5     = md5($picture[pid]);
  $item  = '<item>';
  $item .= "\n";
$item .= '<title>'.$title.'</title>';
$item .= "\n";

  //following line is for debugging only
//$item .= '<title>'.$title.'-'.$album.'-'.$album_name_keyword.'-'.$lower_limit.'-'.$thumb_count.'-'.$lower_limit.'-'.$start_at_imgpos.'-'.$start_at_page.'-Mod'.$start_at_imgpos % $thumb_per_page.'</title>';
 
  if ((is_numeric($album))) {
  $item .= '<link>' .$link_url_alb . $picture[aid] . '&amp;pos='. $tmp_count . '</link>';
  $item .= "\n";
$tmp_count = $tmp_count + 1;
  }
  else {
  $item .= '<link>' .$link_url . $picture[pid]. '</link>';
  $item .= "\n";
  }
  $item .= '<description>&lt;a href=&quot;'.$link_url.$picture[pid].'&quot;&gt;&lt;img src=&quot;';
  $item .= $gallery_home_url.$thumb_url.'&quot; border=&quot;1&quot; vspace=&quot;2&quot; hspace=&quot;2&quot;&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;';
  if((strlen($picture[caption])) > 0) {
$item .= 'Description: '.preg_replace($replaceArray , $umlautArray , $picture[caption]).'&lt;br&gt;';
  } 
  if((strlen($album_name_keyword[title])) > 0) {
  $item .= 'Album: '.preg_replace($replaceArray , $umlautArray , $album_name_keyword[title]).'&lt;br&gt;';
  }
  $item .= 'Hits: '.$picture[hits].'&lt;br&gt;';
  $item .= 'Posted: '.localised_date($picture[ctime], $album_date_fmt);
  $item .= '</description>';
  $item .= "\n";
  $item .= "<guid>".$picmd5."</guid>\n";
  if ($fullsizethumbs == 1) {
    $item .= '<media:thumbnail url="'.$gallery_home_url.$normal_url.'" />';
    $item .= "\n";
  }
  $item .= '<media:thumbnail url="'.$gallery_home_url.$thumb_url.'" />';
  $item .= "\n";
  if ($fullsizepics == 0) {
  $item .= '<media:content url="'.$gallery_home_url.$normal_url.'" type="image/jpeg" />';
  }
  if ($fullsizepics == 1) {
$item .= '<media:content url="'.$gallery_home_url.$full_url.'" type="image/jpeg" />';
}
$item .= "\n";
$item .= "</item>\n";
  $item .= "\n";
    echo $item;
}

$rssFooter = <<<EOT
</channel>\n
</rss>
EOT;

echo $rssFooter;

$album = 'random';
?>

cooliris-quick.xml
Code: [Select]
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<cooliris-quick version="1.0">
  <src>^http\:\/\/www\.pays\-dignois\.com\/galerie\/albums\_(.+?)\.jpg$</src>
  <dst>http://www.pays-dignois.com/galerie/albums/{1}.jpg</dst>
</cooliris-quick>

Correctement configuré il y a une version Standalone de PicsLens/CoolIris disponible au moyen d'un lien de ce type =>
javascript:PicLensLite.start({feedUrl:'http ://www.pays-dignois.com/galerie/cooliris-rss.php'}); (expl sur ma Galerie Coppermine (http://www.pays-dignois.com/galerie/index.php). Lien "Ouvrez Pays-Dignois.com avec CoolIris")

Ainsi les Utilisateurs de Google-Chrome (par expl) ou autres navigateurs non supportés par le plugin CoolIris, peuvent quand même profiter de la technologie PicsLens/CoolIris :-)
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 06, 2009, 12:23:51 pm
Merci pour ces infos, dit comme ça c plus claire.

Après avoir fait tout ça et modifié les url par les miennes, je ne vois toujours pas mes images.
Je vois les images "discover".

Le fait que les albums ont des restrictions pour certains groupes empècherai t'il cooliris d'afficher les images ?
Title: Re: CoolIris / PicsLens et Coppermine
Post by: andiwe on April 06, 2009, 12:25:59 pm
bonjour !

excusez-moi mais j'ai eu de l'aide par un outil de traduction  ;)
je comprends meilleur français que je peux écrire.

veuillez employer la dernière version de mon mod embrochable.
pour télécharger utiliser le link gauche pour mon website.
il n'y a aucun besoin d'installer l'alimentation d'easy_rss. jusqu'ici il n'est pas possible de courir le mod embrochable ainsi que l'alimentation originale d'easyrss. je changerai ca bientôt. d'ailleurs, c'est le seul embrochable je savent qui peut soutenir 30.000 images dans cooliris.
Title: Re: CoolIris / PicsLens et Coppermine
Post by: andiwe on April 06, 2009, 12:40:49 pm
peut-être il y a quelqu'un qui pourrait traduire le readme et le dossier de langue pour les utilisateurs français. je pourrais remonter cela dans le paquet. soyez gentil d'avoir quelqu'un ici pour me dépanner.
Title: Re: CoolIris / PicsLens et Coppermine
Post by: jujuv on April 06, 2009, 10:05:26 pm
Merci Pascal YAP  pour cette réponse très détaillée ... et euh ... oui faudra que je mette la version de mon site à jour, mais ça me fout les boules à chaque fois alors je laisse couler un peu trop longtemps  ::) ::) ::)
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 07, 2009, 01:19:38 am
Salut andiwe

Voici la version que j'ai traduit en français pour le plugin

2 phrases ne sont pas traduite, je n'arrive pas à bien les formuler. Pour le reste totu est ok.
Je regarderai un peu plus tard le fichier readme.txt

Le fichier à l'extention .txt qu'il suffira de renommer en .php
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 07, 2009, 09:15:43 am
Petite correction de traduction ligne 57 et 58.

Il reste toujours les 2 lignes que je n'arrive pas à reformuler en "bon français".

Bizarrement quand je renomme le fichier en english.php pour voir le résultat, rien n'apparait quand je clique sur le bouton pour voir le flux RSS
alors que je n'ai rien modifié à part la traduction...

Une idée ?
Title: Re: CoolIris / PicsLens et Coppermine
Post by: andiwe on April 07, 2009, 11:21:19 am
Merci beaucoup pour traduire!

Quote
Une idée ?
Code: [Select]
'desc_show_dateposted_txt' => 'postee le: ',
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 07, 2009, 11:37:45 am
Je ne vois pas d'erreur dans le code :
Code: [Select]
'desc_show_dateposted_txt' => 'post&eacute;e le: ', ?

En passant le fichier readme.txt est presque fini d'être traduit
Title: Re: CoolIris / PicsLens et Coppermine
Post by: andiwe on April 07, 2009, 11:51:53 am
il n'y a aucune erreur dans le code. le feed d'atom a quelques limitations concernant les Caractères spéciaux. le feed n'apparaît pas mais les cooliris devraient fonctionner.
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 07, 2009, 12:12:02 pm
ok

Voici le fichier lisezmoi.txt traduction du fichier readme.txt.

Il reste à traduire ligne 43 à 47:
Code: [Select]
    * If you are trying this stuff over and over to get it working,
      keep in mind the web browsers you are testing with will cache stuff,
      as may your FTP client. So make sure to quit and restart the test browser
      and perhaps flush the cache (search Google "clear browser cache")
      between changes or you will get more confused.

et la ligne 70 :
Code: [Select]
- PicLensLite will not use previous & next Feed Links (stuck on page)
Je n'arrive pas à bien formuler ces phrases.

Si une âme charitable voulait bien relire, parce qu'à force d'avoir le nez dessus j'ai pu faire quelques erreurs.
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 07, 2009, 12:18:46 pm
A priori cette version à du mal à être prise en charge avec ie 8, elle fonctionne mieux avec firefox 3.
Ce plugin ne fonctionne pas avec la configuration de ma galerie à priori.

Pour en être sûr j'installerai dans la semaine une nouvelle galerie plus "simple" pour tester tout ça.
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 09, 2009, 12:37:21 pm
ok, problème d'affichage résolu, ca venait de mon ancien template. Niquel avec le nouveau.

Par contre l'affichage des images me donne ceci :

http://www.cnotrevie.com/problemes/pb_affichage_cooliris.jpg (http://www.cnotrevie.com/problemes/pb_affichage_cooliris.jpg)

Pourtant je suis connecté en admin donc j'ai accès sans aucune restriction à ces images...

Quelqu'un à une idée ?
Title: Re: CoolIris / PicsLens et Coppermine
Post by: Pascal YAP on April 09, 2009, 02:03:53 pm
Pas impossible que le problème vienne de votre fichier XML lequel contient les infos de connexions.

** Merci de changer la couleur de votre Powered by Coppermine ! Noir sur Noir et l'info disparait  ;)
Title: Re: CoolIris / PicsLens et Coppermine
Post by: andiwe on April 09, 2009, 02:45:29 pm
je sais qu'il y a des problèmes avec les caractères spéciaux.
vous devriez regarder le chemin de l'image.
peut-être que c'est le "é" dans le mot "Rénovation", si vous employez cela dans le chemin.

votre Coppermine est-il placé à utf8 ?
essayez ceci (ligne 330 de cooliris_rss.php et après) :
Code: [Select]
 
$full_url = "$image_url$picture[filepath]$pic_fname_url";
$normal_url = "$image_url$picture[filepath]$CONFIG[normal_pfx]$pic_fname_url";
$thumb_url  = "".get_pic_url($picture,'thumb');

ajoutez la fonction d'urlencode
Code: [Select]
  $full_url = urlencode(html_entity_decode($image_url$picture[filepath]$pic_fname_url);
  $normal_url = urlencode(html_entity_decode($image_url$picture[filepath]$CONFIG[normal_pfx]$pic_fname_url);
  $thumb_url  = urlencode(html_entity_decode("".get_pic_url($picture,'thumb'));

je n'ai pas expérimenté ceci
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 09, 2009, 10:01:12 pm
Oui je sais Pascal, mais je n'ai pas fini le graphisme, bien sûr que ca va être changé la couleur, mais chaque chose en son temps  ;)

Je vais essayer ces bouts de code andi, merci pour l'info concernant les accents ;)
Mais j'ai le même résultat sur des albums qui ne contiennent aucun accent ;)
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 09, 2009, 10:20:44 pm
mon xml est le suivant (basé sur votre modèle) :

Code: [Select]
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<cooliris-quick version="1.0">
  <src>^http\:\/\/www\.cnotrevie\.com\/photos\/albums\_(.+?)\.jpg$</src>
  <dst>http://www.cnotrevie.com/photos/albums/{1}.jpg</dst>
</cooliris-quick>
Title: Re: CoolIris / PicsLens et Coppermine
Post by: Pascal YAP on April 10, 2009, 10:18:48 am
Bon...
La version "embed" fonctionne-t-elle ?
(Modifiez URL-De-Votre-cooliris-rss.php)

Code: [Select]
<object id="o" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="760" height="450">
<param name="movie" value="http://apps.cooliris.com/embed/cooliris.swf?feed=URL-De-Votre-cooliris-rss.php" />
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<embed type="application/x-shockwave-flash" src="http://apps.cooliris.com/embed/cooliris.swf?feed=URL-De-Votre-cooliris-rss.php" width="760" height="450" allowFullScreen="true" allowScriptAccess="always" />
</object>
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 10, 2009, 11:04:10 am
non la version "embed" ne fonctionne pas non plus.

Message d'erreur :

Quote
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
    <allow-access-from domain="*.cooliris.com" secure="false" />
</cross-domain-policy>
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 10, 2009, 11:18:24 am
Il ne semble pas trouver mon fichier xml alors qu'il est est à la racine de la galerie.
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 10, 2009, 12:48:41 pm
autre problème qui est peut être lié, quand je veux envoyer une e-card, l'image choisi ne s'affiche pas.
J'aurais peut être un problème lié à l'url de mes images.

La première fois que j'avais installer la galerie, elle se trouvait sur http://www.cnotrevie.com mais ensuite je l'ai déplacé vers http://www.cnotrevie.com/photos/

Cela peut il avoir une incidence ?
Title: Re: CoolIris / PicsLens et Coppermine
Post by: François Keller on April 10, 2009, 02:18:10 pm
t'as modifié le lien pour les ecartes dans la config ?
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 10, 2009, 10:47:10 pm
Et oui, le bug était juste là, merci beaucoup François.

Je cherchais un truc compliqué alors que s'était tout bête  ::)
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 10, 2009, 10:49:04 pm
Cooliris fonctionne, mais pas la version "embed"
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 10, 2009, 11:40:27 pm
Merci pour tout :D
Title: Re: CoolIris / PicsLens et Coppermine
Post by: Pascal YAP on April 11, 2009, 10:51:54 am
Quote
Je cherchais un truc compliqué alors que s'était tout bête
au bout de son nez  ;D
Title: Re: CoolIris / PicsLens et Coppermine
Post by: TheWren on April 13, 2009, 02:49:31 am
Bonjour,

J'ai le même soucis que Fred35, à savoir le CoolIris n'affiche rien que ça soit avec la version embedded ou via le plungin de Andiwe

J'ai suivi toutes les étapes décrites, voici mon fichier cooliris_rss.php modifié, j'ai peut être fait une erreur ??? Mais je en vois pas où.

De plus, j'ai l'erreur suivante (Cf. copie écran : en cliquant sur un photo avec le lien Cooliris = This feed has no items)

Bizarremment quand j'essaye d'atteindre directement le fichier cooliris_rss.php j'ai l'erreur suivante :

Internet Explorer ne peut pas afficher ce flux
 
   Ce flux contient des erreurs de code.
     Aller à la page précédente.
 
     Informations

Non valide au niveau supérieur du document.
 Ligne : 1 Caractère : 1

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

 



Pour info voici le contenu du fichier, je rien modifié mis à part les l'URL de ma galerie.

ça fait deux jours que je galère dessus, je vous remercie d'avance si vous avez une idée, car je ne vois pas.


Dernière question, le fichier cooliris-quick.xml je l'ai également modifié et ajouté à la racine de ma galerie

Voici la syntaxe, j'ai repris ce que Ya


TheWren


Code: [Select]
<?php 
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery - RSS Feed                                      //
// ------------------------------------------------------------------------- //
// Copyright (C) Dr. Tarique Sani                                           //
// http://tariquesani.net/                                                  //
// modifications by versus7 - www.oixalia.gr - oixalia@oixalia.gr //
// further modifications by Brent Gerig
// 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         //
// ------------------------------------------------------------------------ //
// Mod by Andiwe to generate XML RSS Feed for PicLens Gallery b019
//  Feed will only load a defined amount of pics at once and give prev an next
//  URL to the Feed for large Album support.
//  cooliris [at] manhost [dot] de
//  Annotations marked with A/

define('IN_COPPERMINE'true);
define('INDEX_PHP'true);

global 
$CONFIG,$ALBUM_SET,$META_ALBUM_SET,$CURRENT_CAT_NAME,$FORBIDDEN_SET_DATA,$lang_plugin_easyrss,$lastup_date_fmt;
require(
'include/init.inc.php');
require(
'plugins/Cooliris_RSS/include/init.inc.php');

//How many items you want to show in RSS feed
//A/How many pictures do you want to be loaded at a time ?
//A/Should be the count of pictures in the album View to make the start at a 
//A/ specific Page working.
//A/4 Rows with 5 Colums of Pictures means 20
//A/oldconfig $thumb_per_page = intval($CONFIG[plugin_easyrss_num]);
$thumb_per_page = ((intval($CONFIG[thumbrows]))*(intval($CONFIG[thumbcols])));

//A/ We need the count of Pictures in your Movieslide below the preview Image.
//A/ Thats for to make the play Button at the start and end of pages working.
//A/oldconfig $pics_in_movieslide = intval($CONFIG[plugin_easyrss_mvslnum]);
$pics_in_movieslide intval($CONFIG[max_film_strip_items]);

//A/URL of your Gallery
//A/$gallery_home_url = 'http://www.yourgalleryhome.de/...../';
$gallery_home_url $CONFIG['http://monsite.online.fr/gallery/'];

//A/Get Gallery descriptions
$gallery_name $CONFIG['gallery_name'];
$gallery_desc $CONFIG['gallery_description'];

//A/Logo to be displayed on to of the PicLens View
//A/think this is buggy in 3D View but shows correctly in Flash Player (lite)
//A/if you don't wanna have logo or music just comment the hole line out.
//$site_logo = 'plugins/Cooliris_RSS/sitelogo.gif';
$site_logo $CONFIG['plugin_easyrss_logo'];
$site_music 'plugins/Cooliris_RSS/site_music.mp3';

//A/ If you want to display the Normal-Pictures instead of
//A/ the Thumbnails at initial Wall-View give it the value 1
$fullsizethumbs intval($CONFIG[plugin_easyrss_fullsizethumbs]);

//A/ If you want to diyplay the Full-Pictures instead of
//A/ the Normals at detailed Wall-View give it the value 1
$fullsizepics intval($CONFIG[plugin_easyrss_fullsizepics]);

$desc_show_title intval($CONFIG[plugin_easyrss_desc_show_title]);
$desc_show_caption intval($CONFIG[plugin_easyrss_desc_show_caption]);
$desc_show_album intval($CONFIG[plugin_easyrss_desc_show_album]);
$desc_show_hits intval($CONFIG[plugin_easyrss_desc_show_hits]);
$desc_show_dateposted intval($CONFIG[plugin_easyrss_desc_show_dateposted]);


//A/set initial values
$thumb_count 0;
$lower_limit 0;
$album '';
$umlautArray = Array("&amp;auml;","&amp;ouml;","&amp;uuml;","&amp;Auml;","&amp;Ouml;","&amp;Uuml;","&amp;szlig;");
$replaceArray = Array("/&auml;/","/&ouml;/","/&uuml;/","/&Auml;/","/&Ouml;/","/&Uuml;/","/&szlig;/");

if (!
USER_ID && $CONFIG['allow_unlogged_access'] == 0) {
        
$redirect $redirect "login.php";
        
header("Location: $redirect");
        exit();
    }
    
if(
count($FORBIDDEN_SET_DATA) > ){
    
$forbidden_set_string =" AND aid NOT IN (".implode(","$FORBIDDEN_SET_DATA).")";
} else {
    
$forbidden_set_string '';
}

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'];
     
$META_ALBUM_SET "AND aid IN (".(int)$_GET['album'].")".$ALBUM_SET;
}
else {

  
//If the album is not set, set it to lastup - this is the default
  
if(!isset($album)){
       
$album 'lastup';
       }
  else {
    if (
$album == 'topn') {
      
//if topviewed is selected
      //$album = 'topn';
    
}
    else {
      if (
$album == 'random') {
      
//$album = 'random');
      
}
      else {
      
//maybe someone injected something else
      
$album 'lastup';
      }
    }
  }
}


//A/ok lets get the correct start point (picture) at wich the rss shall begin
//A/that's when it's called by the prev and next links from piclens
if(isset($_GET['start'])){
    
$start_at_var $_GET['start'];
}
//A/set the lower limit to that point
if ((is_numeric($start_at_var))){
   
$lower_limit intval($start_at_var);  
   
//A/ lets make sure $lower_limit is a multiple of $thumb_per_page
   
$lower_limit = ( (intval(($lower_limit)/($thumb_per_page))) * $thumb_per_page );
}


//A/get the album page from where the feed was loaded
if(isset($_GET['page'])){
    
$start_at_page $_GET['page'];
}
//A/lets define the start lower_limit by a multiple (page) of the thumb_per_page 
if ((is_numeric($start_at_page))){
   
$lower_limit = ((intval($start_at_page) - 1) * $thumb_per_page);  
}


//A/ get the image position when clicking on big preview
if(isset($_GET['imgpos'])){
    
$start_at_imgpos $_GET['imgpos'];
}
//A/set the lower limit to that point
if ((is_numeric($start_at_imgpos))){

//A/try to reduce that to the cases where those overlapping pictures are displayed
//$pics_in_movieslide = 5; // =5
      
$movieslideleft intval(($pics_in_movieslide -1) / 2); // =2
      
$moviesliderest $pics_in_movieslide $movieslideleft// =3
      
   
if ($start_at_imgpos < ($thumb_per_page)) {
      
$lower_limit 0;
      if ( ( (
$start_at_imgpos $thumb_per_page) > ($thumb_per_page $moviesliderest) ) ) {
      
//Awe got overlapping picture on the first page
      
$thumb_per_page_multi 2;
      
$thumb_per_page $thumb_per_page_multi $thumb_per_page;  
      }
   }
   else {
      
$lower_limit = ( (intval(($start_at_imgpos)/($thumb_per_page))) * $thumb_per_page );
      
//A/sorry we got to load more pictures to show all play buttons on the thumbnails
      //A/in preview. especially when in the movie-clip view there are pictures that are
      //A/not on the same page with the viewed image, the button won't be displayed
      //A/because the feed doesn't contain that datasets.
      
      
if ( (($start_at_imgpos $thumb_per_page) < $movieslideleft) ) {
      
//A/we got overlapping pictures at the start of a page
      
$lower_limit $lower_limit $thumb_per_page;
      
$thumb_per_page_multi 2;
      
$thumb_per_page $thumb_per_page_multi $thumb_per_page;      
      }
      if ((
$start_at_imgpos $thumb_per_page) > ($thumb_per_page $moviesliderest) ) {
      
//A/we got overlapping pictures at the end of a page
      
$thumb_per_page_multi 2;
      
$thumb_per_page $thumb_per_page_multi $thumb_per_page;      
      }
      
//A/no overlapping pictures and nothing to do ;-)
      
      //A/so now we have got to make sure that we can set the previous and next feed links
      //A/correctly we will do that when it comes to generate the links.
      //A/therefor we reset the $thumb_per_page to it's original value when it comes
      //A/to the url generation in next oder prev cases.
   
}  
}


//Changes these to point to your site if the following is not giving correct results.
$link_url $CONFIG['http://monsite.online.fr/gallery/']."displayimage.php?pos=-";
$link_url_alb $CONFIG['http://monsite.online.fr/gallery/']."displayimage.php?album=";

//A/Choose between Full Path and relative one depending on where this file resides.
//A/relative one is shorter and makes smaller rss feeds.
//$image_url = $CONFIG['ecards_more_pic_target']."albums/";
$image_url "albums/";

$META_ALBUM_SET .= $forbidden_set_string;
$data get_pic_data($album$thumb_count$album_name$lower_limit$thumb_per_page);

/*
//A/we wan't to have linkback to the correct album id and not the absolute picture pos
//A/if we are have not opened the feed out of an album but a cat like e.g. lastup instead
if $start_at_imgpos < 0 {

}
*/

header ("content-type: text/xml");
//A/we need less code than easy rss what makes the rss smaller 
$rssHeader = <<<EOT
<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>

EOT;

$rssHeader .= <<<EOT
<generator>Easy RSS Feed Mod 4 PicLens by Andiwe b019</generator>

EOT;

echo $rssHeader;


//A/ ok lets create the "previous" and "next" links in the rss feed
//A/ the if construction needs to be sorted ... that sure was some alcoholic stuff ;-)

  $item = '';

if ($thumb_count > $thumb_per_page)  {
//A/ so we got to make sure that the album has more pictures than $thumb_per_page
//A/ if it has less we do not need any links
 
  if ($lower_limit < $thumb_per_page) {
  //A/ so we are at the start of the gallery and need only a next link
  $nextfeednum = $thumb_per_page;
  $item .= '<atom:link rel="next" href="cooliris_rss.php?album='.$album.'&amp;start='.$nextfeednum.'" />';
  $item .= "\n";
  }

 if (($thumb_count - $lower_limit) > $thumb_per_page)  {
 //A/ so we are anywhere in the middle of the gallery

  if ($lower_limit > ($thumb_per_page - 1)) {
  //A/ just check again if we are not at the start ... why ??? don't know anymore ;-)
  $nextfeednum = $lower_limit + $thumb_per_page;
  if ($thumb_per_page_multi > 1) {
      $thumb_per_page = $thumb_per_page / $thumb_per_page_multi;
  }
  $previousfeednum = $lower_limit - $thumb_per_page;
  $item .= '<atom:link rel="previous" href="cooliris_rss.php?album='.$album.'&amp;start='.$previousfeednum.'" />';
  $item .= '<atom:link rel="next" href="cooliris_rss.php?album='.$album.'&amp;start='.$nextfeednum.'" />';
  }
 
  if ($lower_limit > ($thumb_count - $thumb_per_page)) {
  //A/ so what was this for ???
  if ($thumb_per_page_multi > 1) {
      $thumb_per_page = $thumb_per_page / $thumb_per_page_multi;
  }
  $previousfeednum = $lower_limit;
  $item .= '<atom:link rel="previous" href="cooliris_rss.php?album='.$album.'&amp;start='.$previousfeednum.'" />';
  }
 
 }
 
 if (($thumb_count - $lower_limit) < ($thumb_per_page + 1))  {
 //A/ we are at the end of the gallery because there are less or equal than $thumb_per_page images left
 //A/ so just create a previous link
  if ($lower_limit > ($thumb_count - $thumb_per_page)) {
    if ($thumb_per_page_multi > 1) {
      $thumb_per_page = $thumb_per_page / $thumb_per_page_multi;
    }
    $previousfeednum = $lower_limit - $thumb_per_page;
    $item .= '<atom:link rel="previous" href="cooliris_rss.php?album='.$album.'&amp;start='.$previousfeednum.'" />';
  }
 }

}

  echo $item;
 
//A/ prev and next feed links maybe ;-) have now been generated.

//A/ we've lost some Easy_RSS Code here ;-)

$rssHeader = '';

if ($site_logo > '') {
  $rssHeader .= <<<EOT
<atom:icon>$site_logo</atom:icon>

EOT;
}

if ($site_music > '') {
  $rssHeader .= <<<EOT
<atom:link rel="enclosure" type="audio/mpeg" length="1337" href="$site_music" />

EOT;
}

echo $rssHeader;

$description_header = "<title>".$gallery_name."</title>\n<link>".$gallery_home_url."</link>\n<description>".$gallery_desc;
// $description_header .= " &lt;a href&quot;cooliris_rss.php?album=".$album."&amp;start=".$previosfeednum."&quot;&gt;Prev&lt;/a&gt;&nbsp;&lt;a href&quot;cooliris_rss.php&amp;album=".$album."&amp;start=".$nextfeednum."&quot;&gt;Next&lt;/a&gt;";
$description_header .= "</description>";
echo $description_header;
echo "\n";

//A/ i replaced the thumbnails with the normals and the normals with the full sized pics
//A/ thumbnails are looking bad in wall view
//A/ linking in the picture by the icon doesn't work anymore with that option :-(

//A/ as you can see i now have 2 thumbnail urls
//A/ only the first will be used to load the pictures
//A/ the second one is to publish the real thumbnail filenames to piclens
//A/ without that the play button won't appear in the thumbs in album view.
$tmp_count = $lower_limit;

foreach($data AS $picture) {
  $pic_fname_url = urlencode($picture[filename]);
  $full_url = "$image_url$picture[filepath]$pic_fname_url";
  $normal_url = "$image_url$picture[filepath]$CONFIG[normal_pfx]$pic_fname_url";
// Change by Romank
//  $thumb_url  = "$image_url$picture[filepath]$CONFIG[thumb_pfx]$pic_fname_url";
  $thumb_url  = "".get_pic_url($picture,'thumb');
  $mime_content = cpg_get_type($full_url);
  $mimetype = $mime_content['mime'];
// Change by Romank


  if ( ((strlen($picture[title]) ) > 0 ) && ($desc_show_title == 1) ) {
    $title      = utf8_encode(html_entity_decode($picture[title]));
  }
  else {
    $title      = urlencode(html_entity_decode($picture[filename]));
  }
  $picmd5     = md5($picture[pid]);
 
 
  $item  = '<item>';
  $item .= "\n";
$item .= '<title>'.$title.'</title>';
$item .= "\n";

  //following line is for debugging only
//$item .= '<title>'.$title.'-'.$album.'-'.$album_name_keyword.'-'.$lower_limit.'-'.$thumb_count.'-'.$lower_limit.'-'.$start_at_imgpos.'-'.$start_at_page.'-Mod'.$start_at_imgpos % $thumb_per_page.'</title>';
 
  if ((is_numeric($album))) {
  $item .= '<link>' .$link_url_alb . $picture[aid] . '&amp;pos='. $tmp_count . '</link>';
  $item .= "\n";
$tmp_count = $tmp_count + 1;
  }
  else {
  $item .= '<link>' .$link_url . $picture[pid]. '</link>';
  $item .= "\n";
  }
  $item .= '<description>';
  $item .= '&lt;a href=&quot;'.$link_url.$picture[pid].'&quot;&gt;&lt;img src=&quot;';
  $item .= $gallery_home_url.$thumb_url.'&quot; border=&quot;1&quot; vspace=&quot;2&quot; hspace=&quot;2&quot;&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;';
  if ( ((strlen($picture[caption])) > 0) && ($desc_show_title == 1) ) {
$item .= $lang_plugin_easyrss_config['desc_show_title_txt'].utf8_encode(html_entity_decode($picture[caption])).'&lt;br&gt;';
  } 
  if ( ((strlen($album_name_keyword[title]) ) > 0) && ($desc_show_album == 1) ) {
  $item .= $lang_plugin_easyrss_config['desc_show_album_txt'].utf8_encode(html_entity_decode($album_name_keyword[title])).'&lt;br&gt;';
  }
  if ($desc_show_hits == 1) {
  $item .= $lang_plugin_easyrss_config['desc_show_hits_txt'].$picture[hits].'&lt;br&gt;';
  }
  if ($desc_show_dateposted == 1) {
  $item .= $lang_plugin_easyrss_config['desc_show_dateposted_txt'].localised_date($picture[ctime], $album_date_fmt);
  }
  $item .= '</description>';
  $item .= "\n";
  $item .= "<guid>".$picmd5."</guid>\n";
  if ($fullsizethumbs == 1) {
    $item .= '<media:thumbnail url="'.$gallery_home_url.$normal_url.'" />';
    $item .= "\n";
  }
  $item .= '<media:thumbnail url="'.$gallery_home_url.$thumb_url.'" />';
  $item .= "\n";
  if ($fullsizepics == 0) {
// Change by Romank
// $item .= '<media:content url="'.$gallery_home_url.$normal_url.'" type="image/jpeg" />';
  $item .= '<media:content url="'.$gallery_home_url.$normal_url.'" type="' . $mimetype . '" />';
// Change by Romank

  }
  if ($fullsizepics == 1) {
// Change by Romank
// $item .= '<media:content url="'.$gallery_home_url.$full_url.'" type="image/jpeg" />';
$item .= '<media:content url="'.$gallery_home_url.$full_url.'" type="' . $mimetype . '" />';
// Change by Romank
}
$item .= "\n";
$item .= "</item>\n";
  $item .= "\n";
    echo $item;
}

$rssFooter = <<<EOT
</channel>\n
</rss>
EOT;

echo $rssFooter;

$album = 'lastup';
?>d
Title: Re: CoolIris / PicsLens et Coppermine
Post by: TheWren on April 13, 2009, 02:53:10 am
Bonjour,

J'ai le même soucis que Fred35, à savoir le CoolIris n'affiche rien que ça soit avec la version embedded ou en direct via le plugin de Andiwe

J'ai suivi toutes les étapes décrites, voici mon fichier cooliris_rss.php modifié, j'ai peut être fait une erreur ??? Mais je en vois pas où.

De plus, j'ai l'erreur suivante (Cf. copie écran : en cliquant sur un photo avec le lien Cooliris = This feed has no items)

Bizarremment quand j'essaye d'atteindre directement le fichier cooliris_rss.php j'ai l'erreur suivante :

Internet Explorer ne peut pas afficher ce flux
 
   Ce flux contient des erreurs de code.
     Aller à la page précédente.
 
     Informations

Non valide au niveau supérieur du document.
 Ligne : 1 Caractère : 1

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

 


Pour info voici le contenu du fichier, je rien modifié mis à part les l'URL de ma galerie.

ça fait deux jours que je galère dessus, je vous remercie d'avance si vous avez une idée, car je ne vois pas.


Dernière question, le fichier cooliris-quick.xml je l'ai également modifié et ajouté à la racine de ma galerie

Voici la syntaxe, j'ai repris ce que Yap a présenté

Code: [Select]
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<cooliris-rss version="1.0">
  <src>^http\:\/\/monsite\.online\.fr\/gallery\/albums\_(.+?)\.jpg$</src>
  <dst>http://monsite.online.fr/gallery/albums/{1}.jpg</dst>
</cooliris-rss>


Merci d'avance

TheWren

Code modifié (juste l'URL) du fichier cooliris_rss.php provenant du plugin de Angiwe

Code: [Select]
<?php 
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery - RSS Feed                                      //
// ------------------------------------------------------------------------- //
// Copyright (C) Dr. Tarique Sani                                           //
// http://tariquesani.net/                                                  //
// modifications by versus7 - www.oixalia.gr - oixalia@oixalia.gr //
// further modifications by Brent Gerig
// 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         //
// ------------------------------------------------------------------------ //
// Mod by Andiwe to generate XML RSS Feed for PicLens Gallery b019
//  Feed will only load a defined amount of pics at once and give prev an next
//  URL to the Feed for large Album support.
//  cooliris [at] manhost [dot] de
//  Annotations marked with A/

define('IN_COPPERMINE'true);
define('INDEX_PHP'true);

global 
$CONFIG,$ALBUM_SET,$META_ALBUM_SET,$CURRENT_CAT_NAME,$FORBIDDEN_SET_DATA,$lang_plugin_easyrss,$lastup_date_fmt;
require(
'include/init.inc.php');
require(
'plugins/Cooliris_RSS/include/init.inc.php');

//How many items you want to show in RSS feed
//A/How many pictures do you want to be loaded at a time ?
//A/Should be the count of pictures in the album View to make the start at a 
//A/ specific Page working.
//A/4 Rows with 5 Colums of Pictures means 20
//A/oldconfig $thumb_per_page = intval($CONFIG[plugin_easyrss_num]);
$thumb_per_page = ((intval($CONFIG[thumbrows]))*(intval($CONFIG[thumbcols])));

//A/ We need the count of Pictures in your Movieslide below the preview Image.
//A/ Thats for to make the play Button at the start and end of pages working.
//A/oldconfig $pics_in_movieslide = intval($CONFIG[plugin_easyrss_mvslnum]);
$pics_in_movieslide intval($CONFIG[max_film_strip_items]);

//A/URL of your Gallery
//A/$gallery_home_url = 'http://www.yourgalleryhome.de/...../';
$gallery_home_url $CONFIG['http://monsite.online.fr/gallery/'];

//A/Get Gallery descriptions
$gallery_name $CONFIG['gallery_name'];
$gallery_desc $CONFIG['gallery_description'];

//A/Logo to be displayed on to of the PicLens View
//A/think this is buggy in 3D View but shows correctly in Flash Player (lite)
//A/if you don't wanna have logo or music just comment the hole line out.
//$site_logo = 'plugins/Cooliris_RSS/sitelogo.gif';
$site_logo $CONFIG['plugin_easyrss_logo'];
$site_music 'plugins/Cooliris_RSS/site_music.mp3';

//A/ If you want to display the Normal-Pictures instead of
//A/ the Thumbnails at initial Wall-View give it the value 1
$fullsizethumbs intval($CONFIG[plugin_easyrss_fullsizethumbs]);

//A/ If you want to diyplay the Full-Pictures instead of
//A/ the Normals at detailed Wall-View give it the value 1
$fullsizepics intval($CONFIG[plugin_easyrss_fullsizepics]);

$desc_show_title intval($CONFIG[plugin_easyrss_desc_show_title]);
$desc_show_caption intval($CONFIG[plugin_easyrss_desc_show_caption]);
$desc_show_album intval($CONFIG[plugin_easyrss_desc_show_album]);
$desc_show_hits intval($CONFIG[plugin_easyrss_desc_show_hits]);
$desc_show_dateposted intval($CONFIG[plugin_easyrss_desc_show_dateposted]);


//A/set initial values
$thumb_count 0;
$lower_limit 0;
$album '';
$umlautArray = Array("&amp;auml;","&amp;ouml;","&amp;uuml;","&amp;Auml;","&amp;Ouml;","&amp;Uuml;","&amp;szlig;");
$replaceArray = Array("/&auml;/","/&ouml;/","/&uuml;/","/&Auml;/","/&Ouml;/","/&Uuml;/","/&szlig;/");

if (!
USER_ID && $CONFIG['allow_unlogged_access'] == 0) {
        
$redirect $redirect "login.php";
        
header("Location: $redirect");
        exit();
    }
    
if(
count($FORBIDDEN_SET_DATA) > ){
    
$forbidden_set_string =" AND aid NOT IN (".implode(","$FORBIDDEN_SET_DATA).")";
} else {
    
$forbidden_set_string '';
}

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'];
     
$META_ALBUM_SET "AND aid IN (".(int)$_GET['album'].")".$ALBUM_SET;
}
else {

  
//If the album is not set, set it to lastup - this is the default
  
if(!isset($album)){
       
$album 'lastup';
       }
  else {
    if (
$album == 'topn') {
      
//if topviewed is selected
      //$album = 'topn';
    
}
    else {
      if (
$album == 'random') {
      
//$album = 'random');
      
}
      else {
      
//maybe someone injected something else
      
$album 'lastup';
      }
    }
  }
}


//A/ok lets get the correct start point (picture) at wich the rss shall begin
//A/that's when it's called by the prev and next links from piclens
if(isset($_GET['start'])){
    
$start_at_var $_GET['start'];
}
//A/set the lower limit to that point
if ((is_numeric($start_at_var))){
   
$lower_limit intval($start_at_var);  
   
//A/ lets make sure $lower_limit is a multiple of $thumb_per_page
   
$lower_limit = ( (intval(($lower_limit)/($thumb_per_page))) * $thumb_per_page );
}


//A/get the album page from where the feed was loaded
if(isset($_GET['page'])){
    
$start_at_page $_GET['page'];
}
//A/lets define the start lower_limit by a multiple (page) of the thumb_per_page 
if ((is_numeric($start_at_page))){
   
$lower_limit = ((intval($start_at_page) - 1) * $thumb_per_page);  
}


//A/ get the image position when clicking on big preview
if(isset($_GET['imgpos'])){
    
$start_at_imgpos $_GET['imgpos'];
}
//A/set the lower limit to that point
if ((is_numeric($start_at_imgpos))){

//A/try to reduce that to the cases where those overlapping pictures are displayed
//$pics_in_movieslide = 5; // =5
      
$movieslideleft intval(($pics_in_movieslide -1) / 2); // =2
      
$moviesliderest $pics_in_movieslide $movieslideleft// =3
      
   
if ($start_at_imgpos < ($thumb_per_page)) {
      
$lower_limit 0;
      if ( ( (
$start_at_imgpos $thumb_per_page) > ($thumb_per_page $moviesliderest) ) ) {
      
//Awe got overlapping picture on the first page
      
$thumb_per_page_multi 2;
      
$thumb_per_page $thumb_per_page_multi $thumb_per_page;  
      }
   }
   else {
      
$lower_limit = ( (intval(($start_at_imgpos)/($thumb_per_page))) * $thumb_per_page );
      
//A/sorry we got to load more pictures to show all play buttons on the thumbnails
      //A/in preview. especially when in the movie-clip view there are pictures that are
      //A/not on the same page with the viewed image, the button won't be displayed
      //A/because the feed doesn't contain that datasets.
      
      
if ( (($start_at_imgpos $thumb_per_page) < $movieslideleft) ) {
      
//A/we got overlapping pictures at the start of a page
      
$lower_limit $lower_limit $thumb_per_page;
      
$thumb_per_page_multi 2;
      
$thumb_per_page $thumb_per_page_multi $thumb_per_page;      
      }
      if ((
$start_at_imgpos $thumb_per_page) > ($thumb_per_page $moviesliderest) ) {
      
//A/we got overlapping pictures at the end of a page
      
$thumb_per_page_multi 2;
      
$thumb_per_page $thumb_per_page_multi $thumb_per_page;      
      }
      
//A/no overlapping pictures and nothing to do ;-)
      
      //A/so now we have got to make sure that we can set the previous and next feed links
      //A/correctly we will do that when it comes to generate the links.
      //A/therefor we reset the $thumb_per_page to it's original value when it comes
      //A/to the url generation in next oder prev cases.
   
}  
}


//Changes these to point to your site if the following is not giving correct results.
$link_url $CONFIG['http://monsite.online.fr/gallery/']."displayimage.php?pos=-";
$link_url_alb $CONFIG['http://monsite.online.fr/gallery/']."displayimage.php?album=";

//A/Choose between Full Path and relative one depending on where this file resides.
//A/relative one is shorter and makes smaller rss feeds.
//$image_url = $CONFIG['ecards_more_pic_target']."albums/";
$image_url "albums/";

$META_ALBUM_SET .= $forbidden_set_string;
$data get_pic_data($album$thumb_count$album_name$lower_limit$thumb_per_page);

/*
//A/we wan't to have linkback to the correct album id and not the absolute picture pos
//A/if we are have not opened the feed out of an album but a cat like e.g. lastup instead
if $start_at_imgpos < 0 {

}
*/

header ("content-type: text/xml");
//A/we need less code than easy rss what makes the rss smaller 
$rssHeader = <<<EOT
<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>

EOT;

$rssHeader .= <<<EOT
<generator>Easy RSS Feed Mod 4 PicLens by Andiwe b019</generator>

EOT;

echo $rssHeader;


//A/ ok lets create the "previous" and "next" links in the rss feed
//A/ the if construction needs to be sorted ... that sure was some alcoholic stuff ;-)

  $item = '';

if ($thumb_count > $thumb_per_page)  {
//A/ so we got to make sure that the album has more pictures than $thumb_per_page
//A/ if it has less we do not need any links
 
  if ($lower_limit < $thumb_per_page) {
  //A/ so we are at the start of the gallery and need only a next link
  $nextfeednum = $thumb_per_page;
  $item .= '<atom:link rel="next" href="cooliris_rss.php?album='.$album.'&amp;start='.$nextfeednum.'" />';
  $item .= "\n";
  }

 if (($thumb_count - $lower_limit) > $thumb_per_page)  {
 //A/ so we are anywhere in the middle of the gallery

  if ($lower_limit > ($thumb_per_page - 1)) {
  //A/ just check again if we are not at the start ... why ??? don't know anymore ;-)
  $nextfeednum = $lower_limit + $thumb_per_page;
  if ($thumb_per_page_multi > 1) {
      $thumb_per_page = $thumb_per_page / $thumb_per_page_multi;
  }
  $previousfeednum = $lower_limit - $thumb_per_page;
  $item .= '<atom:link rel="previous" href="cooliris_rss.php?album='.$album.'&amp;start='.$previousfeednum.'" />';
  $item .= '<atom:link rel="next" href="cooliris_rss.php?album='.$album.'&amp;start='.$nextfeednum.'" />';
  }
 
  if ($lower_limit > ($thumb_count - $thumb_per_page)) {
  //A/ so what was this for ???
  if ($thumb_per_page_multi > 1) {
      $thumb_per_page = $thumb_per_page / $thumb_per_page_multi;
  }
  $previousfeednum = $lower_limit;
  $item .= '<atom:link rel="previous" href="cooliris_rss.php?album='.$album.'&amp;start='.$previousfeednum.'" />';
  }
 
 }
 
 if (($thumb_count - $lower_limit) < ($thumb_per_page + 1))  {
 //A/ we are at the end of the gallery because there are less or equal than $thumb_per_page images left
 //A/ so just create a previous link
  if ($lower_limit > ($thumb_count - $thumb_per_page)) {
    if ($thumb_per_page_multi > 1) {
      $thumb_per_page = $thumb_per_page / $thumb_per_page_multi;
    }
    $previousfeednum = $lower_limit - $thumb_per_page;
    $item .= '<atom:link rel="previous" href="cooliris_rss.php?album='.$album.'&amp;start='.$previousfeednum.'" />';
  }
 }

}

  echo $item;
 
//A/ prev and next feed links maybe ;-) have now been generated.

//A/ we've lost some Easy_RSS Code here ;-)

$rssHeader = '';

if ($site_logo > '') {
  $rssHeader .= <<<EOT
<atom:icon>$site_logo</atom:icon>

EOT;
}

if ($site_music > '') {
  $rssHeader .= <<<EOT
<atom:link rel="enclosure" type="audio/mpeg" length="1337" href="$site_music" />

EOT;
}

echo $rssHeader;

$description_header = "<title>".$gallery_name."</title>\n<link>".$gallery_home_url."</link>\n<description>".$gallery_desc;
// $description_header .= " &lt;a href&quot;cooliris_rss.php?album=".$album."&amp;start=".$previosfeednum."&quot;&gt;Prev&lt;/a&gt;&nbsp;&lt;a href&quot;cooliris_rss.php&amp;album=".$album."&amp;start=".$nextfeednum."&quot;&gt;Next&lt;/a&gt;";
$description_header .= "</description>";
echo $description_header;
echo "\n";

//A/ i replaced the thumbnails with the normals and the normals with the full sized pics
//A/ thumbnails are looking bad in wall view
//A/ linking in the picture by the icon doesn't work anymore with that option :-(

//A/ as you can see i now have 2 thumbnail urls
//A/ only the first will be used to load the pictures
//A/ the second one is to publish the real thumbnail filenames to piclens
//A/ without that the play button won't appear in the thumbs in album view.
$tmp_count = $lower_limit;

foreach($data AS $picture) {
  $pic_fname_url = urlencode($picture[filename]);
  $full_url = "$image_url$picture[filepath]$pic_fname_url";
  $normal_url = "$image_url$picture[filepath]$CONFIG[normal_pfx]$pic_fname_url";
// Change by Romank
//  $thumb_url  = "$image_url$picture[filepath]$CONFIG[thumb_pfx]$pic_fname_url";
  $thumb_url  = "".get_pic_url($picture,'thumb');
  $mime_content = cpg_get_type($full_url);
  $mimetype = $mime_content['mime'];
// Change by Romank


  if ( ((strlen($picture[title]) ) > 0 ) && ($desc_show_title == 1) ) {
    $title      = utf8_encode(html_entity_decode($picture[title]));
  }
  else {
    $title      = urlencode(html_entity_decode($picture[filename]));
  }
  $picmd5     = md5($picture[pid]);
 
 
  $item  = '<item>';
  $item .= "\n";
$item .= '<title>'.$title.'</title>';
$item .= "\n";

  //following line is for debugging only
//$item .= '<title>'.$title.'-'.$album.'-'.$album_name_keyword.'-'.$lower_limit.'-'.$thumb_count.'-'.$lower_limit.'-'.$start_at_imgpos.'-'.$start_at_page.'-Mod'.$start_at_imgpos % $thumb_per_page.'</title>';
 
  if ((is_numeric($album))) {
  $item .= '<link>' .$link_url_alb . $picture[aid] . '&amp;pos='. $tmp_count . '</link>';
  $item .= "\n";
$tmp_count = $tmp_count + 1;
  }
  else {
  $item .= '<link>' .$link_url . $picture[pid]. '</link>';
  $item .= "\n";
  }
  $item .= '<description>';
  $item .= '&lt;a href=&quot;'.$link_url.$picture[pid].'&quot;&gt;&lt;img src=&quot;';
  $item .= $gallery_home_url.$thumb_url.'&quot; border=&quot;1&quot; vspace=&quot;2&quot; hspace=&quot;2&quot;&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;';
  if ( ((strlen($picture[caption])) > 0) && ($desc_show_title == 1) ) {
$item .= $lang_plugin_easyrss_config['desc_show_title_txt'].utf8_encode(html_entity_decode($picture[caption])).'&lt;br&gt;';
  } 
  if ( ((strlen($album_name_keyword[title]) ) > 0) && ($desc_show_album == 1) ) {
  $item .= $lang_plugin_easyrss_config['desc_show_album_txt'].utf8_encode(html_entity_decode($album_name_keyword[title])).'&lt;br&gt;';
  }
  if ($desc_show_hits == 1) {
  $item .= $lang_plugin_easyrss_config['desc_show_hits_txt'].$picture[hits].'&lt;br&gt;';
  }
  if ($desc_show_dateposted == 1) {
  $item .= $lang_plugin_easyrss_config['desc_show_dateposted_txt'].localised_date($picture[ctime], $album_date_fmt);
  }
  $item .= '</description>';
  $item .= "\n";
  $item .= "<guid>".$picmd5."</guid>\n";
  if ($fullsizethumbs == 1) {
    $item .= '<media:thumbnail url="'.$gallery_home_url.$normal_url.'" />';
    $item .= "\n";
  }
  $item .= '<media:thumbnail url="'.$gallery_home_url.$thumb_url.'" />';
  $item .= "\n";
  if ($fullsizepics == 0) {
// Change by Romank
// $item .= '<media:content url="'.$gallery_home_url.$normal_url.'" type="image/jpeg" />';
  $item .= '<media:content url="'.$gallery_home_url.$normal_url.'" type="' . $mimetype . '" />';
// Change by Romank

  }
  if ($fullsizepics == 1) {
// Change by Romank
// $item .= '<media:content url="'.$gallery_home_url.$full_url.'" type="image/jpeg" />';
$item .= '<media:content url="'.$gallery_home_url.$full_url.'" type="' . $mimetype . '" />';
// Change by Romank
}
$item .= "\n";
$item .= "</item>\n";
  $item .= "\n";
    echo $item;
}

$rssFooter = <<<EOT
</channel>\n
</rss>
EOT;

echo $rssFooter;

$album = 'lastup';
?>d
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 13, 2009, 06:53:50 pm
Quel est l'adresse de votre site ?
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 13, 2009, 07:06:32 pm
Dans votre xml vous indiquez :

Code: [Select]
http://monsite.online.fr/gallery/albums/{1}.jpg
dans cooliris-rss vous indiquez également :

Code: [Select]
$gallery_home_url = $CONFIG['http://monsite.online.fr/gallery/'];
Il faut y mettre l'adresse de votre site
Title: Re: CoolIris / PicsLens et Coppermine
Post by: TheWren on April 13, 2009, 08:10:43 pm
L'adresse de mon site est http://webpix.online.fr


La galerie se trouve dans le dossier /gallery

Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 13, 2009, 11:14:33 pm
Votre fichier cooliris-quick doit contenir ce code :

Code: [Select]
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<cooliris-quick version="1.0">
  <src>^http\:\/\/webpix\.online\.fr\/gallery\/albums\_(.+?)\.jpg$</src>
  <dst>http://webpix.online.fr/gallery/albums/{1}.jpg</dst>
</cooliris-quick>

et votre fichier cooliris-rss.php :

Code: [Select]
<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery - RSS Feed                                      //
// ------------------------------------------------------------------------- //
// Copyright (C) Dr. Tarique Sani                                           //
// http://tariquesani.net/                                                  //
// modifications by versus7 - www.oixalia.gr - oixalia@oixalia.gr //
// further modifications by Brent Gerig
// 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         //
// ------------------------------------------------------------------------ //
// Mod by Andiwe to generate XML RSS Feed for PicLens Gallery
//  Feed will only load a defined amount of pics at once and give prev an next
//  URL to the Feed for large Album support.
//  Annotations marked with A/

define('IN_COPPERMINE'true);
define('INDEX_PHP'true);

global 
$CONFIG,$ALBUM_SET,$META_ALBUM_SET,$CURRENT_CAT_NAME,$FORBIDDEN_SET_DATA,$lang_plugin_easyrss,$lastup_date_fmt;
require(
'include/init.inc.php');
require(
'plugins/Easy_RSS/include/init.inc.php');

//How many items you want to show in RSS feed
//A/How many pictures do you want to be loaded at a time ?
//A/Should be the count of pictures in the album View to make the start at a 
//A/ specific Page working.
//A/4 Rows with 5 Colums of Pictures means 20
//A/oldconfig $thumb_per_page = intval($CONFIG[plugin_easyrss_num]);
$thumb_per_page = ((intval($CONFIG[thumbrows]))*(intval($CONFIG[thumbcols])));

//A/ We need the count of Pictures in your Movieslide below the preview Image.
//A/ Thats for to make the play Button at the start and end of pages working.
//A/oldconfig $pics_in_movieslide = intval($CONFIG[plugin_easyrss_mvslnum]);
$pics_in_movieslide intval($CONFIG[max_film_strip_items]);

//A/URL of your Gallery
$gallery_home_url 'http://webpix.online.fr/gallery/';
// $gallery_home_url = $CONFIG['ecards_more_pic_target'];

//A/Get Gallery descriptions
$gallery_name $CONFIG['gallery_name'];
$gallery_desc $CONFIG['gallery_description'];

//A/Logo to be displayed on to of the PicLens View
//A/think this is buggy in 3D View but shows correctly in Flash Player (lite)
//A/if you don't wanna have logo or music just comment the hole line out.
//$site_logo = 'plugins/Easy_RSS/sitelogo.gif';
$site_logo $CONFIG['plugin_easyrss_logo'];
//$site_music = 'plugins/Easy_RSS/site_music.mp3';

//A/ If you want to display the Normal-Pictures instead of
//A/ the Thumbnails at initial Wall-View give it the value 1
$fullsizethumbs intval($CONFIG[plugin_easyrss_fullsizethumbs]);

//A/ If you want to diyplay the Full-Pictures instead of
//A/ the Normals at detailed Wall-View give it the value 1
$fullsizepics intval($CONFIG[plugin_easyrss_fullsizepics]);

//A/set initial values
$thumb_count 0;
$lower_limit 0;
$album '';
$umlautArray = Array("&amp;auml;","&amp;ouml;","&amp;uuml;","&amp;Auml;","&amp;Ouml;","&amp;Uuml;","&amp;szlig;");
$replaceArray = Array("/&auml;/","/&ouml;/","/&uuml;/","/&Auml;/","/&Ouml;/","/&Uuml;/","/&szlig;/");

if(
count($FORBIDDEN_SET_DATA) > ){
    
$forbidden_set_string =" AND aid NOT IN (".implode(","$FORBIDDEN_SET_DATA).")";
} else {
    
$forbidden_set_string '';
}

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'];
     
$META_ALBUM_SET "AND aid IN (".(int)$_GET['album'].")".$ALBUM_SET;
}
else {

  
//If the album is not set, set it to lastup - this is the default
  
if(!isset($album)){
       
$album 'lastup';
       }
  else {
    if (
$album == 'topn') {
      
//if topviewed is selected
      //$album = 'topn';
    
}
    else {
      if (
$album == 'random') {
      
//$album = 'random');
      
}
      else {
      
//maybe someone injected something else
      
$album 'lastup';
      }
    }
  }
}


//A/ok lets get the correct start point (picture) at wich the rss shall begin
//A/that's when it's called by the prev and next links from piclens
if(isset($_GET['start'])){
    
$start_at_var $_GET['start'];
}
//A/set the lower limit to that point
if ((is_numeric($start_at_var))){
   
$lower_limit intval($start_at_var);  
   
//A/ lets make sure $lower_limit is a multiple of $thumb_per_page
   
$lower_limit = ( (intval(($lower_limit)/($thumb_per_page))) * $thumb_per_page );
}


//A/get the album page from where the feed was loaded
if(isset($_GET['page'])){
    
$start_at_page $_GET['page'];
}
//A/lets define the start lower_limit by a multiple (page) of the thumb_per_page 
if ((is_numeric($start_at_page))){
   
$lower_limit = ((intval($start_at_page) - 1) * $thumb_per_page);  
}


//A/ get the image position when clicking on big preview
if(isset($_GET['imgpos'])){
    
$start_at_imgpos $_GET['imgpos'];
}
//A/set the lower limit to that point
if ((is_numeric($start_at_imgpos))){

//A/try to reduce that to the cases where those overlapping pictures are displayed
//$pics_in_movieslide = 5; // =5
      
$movieslideleft intval(($pics_in_movieslide -1) / 2); // =2
      
$moviesliderest $pics_in_movieslide $movieslideleft// =3
      
   
if ($start_at_imgpos < ($thumb_per_page)) {
      
$lower_limit 0;
      if ( ( (
$start_at_imgpos $thumb_per_page) > ($thumb_per_page $moviesliderest) ) ) {
      
//Awe got overlapping picture on the first page
      
$thumb_per_page_multi 2;
      
$thumb_per_page $thumb_per_page_multi $thumb_per_page;  
      }
   }
   else {
      
$lower_limit = ( (intval(($start_at_imgpos)/($thumb_per_page))) * $thumb_per_page );
      
//A/sorry we got to load more pictures to show all play buttons on the thumbnails
      //A/in preview. especially when in the movie-clip view there are pictures that are
      //A/not on the same page with the viewed image, the button won't be displayed
      //A/because the feed doesn't contain that datasets.
      
      
if ( (($start_at_imgpos $thumb_per_page) < $movieslideleft) ) {
      
//A/we got overlapping pictures at the start of a page
      
$lower_limit $lower_limit $thumb_per_page;
      
$thumb_per_page_multi 2;
      
$thumb_per_page $thumb_per_page_multi $thumb_per_page;      
      }
      if ((
$start_at_imgpos $thumb_per_page) > ($thumb_per_page $moviesliderest) ) {
      
//A/we got overlapping pictures at the end of a page
      
$thumb_per_page_multi 2;
      
$thumb_per_page $thumb_per_page_multi $thumb_per_page;      
      }
      
//A/no overlapping pictures and nothing to do ;-)
      
      //A/so now we have got to make sure that we can set the previous and next feed links
      //A/correctly we will do that when it comes to generate the links.
      //A/therefor we reset the $thumb_per_page to it's original value when it comes
      //A/to the url generation in next oder prev cases.
   
}  
}


//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=-";
$link_url_alb $CONFIG['ecards_more_pic_target']."displayimage.php?album=";

//A/Choose between Full Path and relative one depending on where this file resides.
//A/relative one is shorter and makes smaller rss feeds.
//$image_url = $CONFIG['ecards_more_pic_target']."albums/";
$image_url "albums/";

$META_ALBUM_SET .= $forbidden_set_string;
$data get_pic_data($album$thumb_count$album_name$lower_limit$thumb_per_page);

/*
//A/we wan't to have linkback to the correct album id and not the absolute picture pos
//A/if we are have not opened the feed out of an album but a cat like e.g. lastup instead
if $start_at_imgpos < 0 {

}
*/

header ("content-type: text/xml");
//A/we need less code than easy rss what makes the rss smaller 
$rssHeader = <<<EOT
<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>

EOT;

$rssHeader .= <<<EOT
<generator>Easy RSS Feed Mod 4 PicLens by Andiwe b016</generator>

EOT;

echo $rssHeader;


//A/ ok lets create the "previous" and "next" links in the rss feed
//A/ the if construction needs to be sorted ... that sure was some alcoholic stuff ;-)

  $item = '';

if ($thumb_count > $thumb_per_page)  {
//A/ so we got to make sure that the album has more pictures than $thumb_per_page
//A/ if it has less we do not need any links
 
  if ($lower_limit < $thumb_per_page) {
  //A/ so we are at the start of the gallery and need only a next link
  $nextfeednum = $thumb_per_page;
  $item .= '<atom:link rel="next" href="cooliris-rss.php?album='.$album.'&amp;start='.$nextfeednum.'" />';
  $item .= "\n";
  }

 if (($thumb_count - $lower_limit) > $thumb_per_page)  {
 //A/ so we are anywhere in the middle of the gallery

  if ($lower_limit > ($thumb_per_page - 1)) {
  //A/ just check again if we are not at the start ... why ??? don't know anymore ;-)
  $nextfeednum = $lower_limit + $thumb_per_page;
  if ($thumb_per_page_multi > 1) {
      $thumb_per_page = $thumb_per_page / $thumb_per_page_multi;
  }
  $previousfeednum = $lower_limit - $thumb_per_page;
  $item .= '<atom:link rel="previous" href="cooliris-rss.php?album='.$album.'&amp;start='.$previousfeednum.'" />';
  $item .= '<atom:link rel="next" href="cooliris-rss.php?album='.$album.'&amp;start='.$nextfeednum.'" />';
  }
 
  if ($lower_limit > ($thumb_count - $thumb_per_page)) {
  //A/ so what was this for ???
  if ($thumb_per_page_multi > 1) {
      $thumb_per_page = $thumb_per_page / $thumb_per_page_multi;
  }
  $previousfeednum = $lower_limit;
  $item .= '<atom:link rel="previous" href="cooliris-rss.php?album='.$album.'&amp;start='.$previousfeednum.'" />';
  }
 
 }
 
 if (($thumb_count - $lower_limit) < ($thumb_per_page + 1))  {
 //A/ we are at the end of the gallery because there are less or equal than $thumb_per_page images left
 //A/ so just create a previous link
  if ($lower_limit > ($thumb_count - $thumb_per_page)) {
    if ($thumb_per_page_multi > 1) {
      $thumb_per_page = $thumb_per_page / $thumb_per_page_multi;
    }
    $previousfeednum = $lower_limit - $thumb_per_page;
    $item .= '<atom:link rel="previous" href="cooliris-rss.php?album='.$album.'&amp;start='.$previousfeednum.'" />';
  }
 }

}

  echo $item;
 
//A/ prev and next feed links maybe ;-) have now been generated.

//A/ we've lost some Easy_RSS Code here ;-)

$rssHeader = '';

if ($site_logo > '') {
  $rssHeader .= <<<EOT
<atom:icon>$site_logo</atom:icon>

EOT;
}

if ($site_music > '') {
  $rssHeader .= <<<EOT
<atom:link rel="enclosure" type="audio/mpeg" length="1337" href="$site_music" />

EOT;
}

echo $rssHeader;

$description_header = "<title>".$gallery_name."</title>\n<link>".$gallery_home_url."</link>\n<description>".$gallery_desc;
// $description_header .= " &lt;a href&quot;rss.php?album=".$album."&amp;start=".$previosfeednum."&quot;&gt;Prev&lt;/a&gt;&nbsp;&lt;a href&quot;rss.php&amp;album=".$album."&amp;start=".$nextfeednum."&quot;&gt;Next&lt;/a&gt;";
$description_header .= "</description>";
echo $description_header;
echo "\n";

//A/ i replaced the thumbnails with the normals and the normals with the full sized pics
//A/ thumbnails are looking bad in wall view
//A/ linking in the picture by the icon doesn't work anymore with that option :-(

//A/ as you can see i now have 2 thumbnail urls
//A/ only the first will be used to load the pictures
//A/ the second one is to publish the real thumbnail filenames to piclens
//A/ without that the play button won't appear in the thumbs in album view.
$tmp_count = $lower_limit;

foreach($data AS $picture) {
  $full_url = "$image_url$picture[filepath]$picture[filename]";
  $normal_url = "$image_url$picture[filepath]$picture[filename]";
  $thumb_url  = "$image_url$picture[filepath]$CONFIG[thumb_pfx]$picture[filename]";
  $full_url = urlencode(html_entity_decode($image_url$picture[filepath]$pic_fname_url);
  $normal_url = urlencode(html_entity_decode($image_url$picture[filepath]$CONFIG[normal_pfx]$pic_fname_url);
  $thumb_url  = urlencode(html_entity_decode("".get_pic_url($picture,'thumb'));
  $title      = $picture[filename];
  $picmd5     = md5($picture[pid]);
  $item  = '<item>';
  $item .= "\n";
$item .= '<title>'.$title.'</title>';
$item .= "\n";

  //following line is for debugging only
//$item .= '<title>'.$title.'-'.$album.'-'.$album_name_keyword.'-'.$lower_limit.'-'.$thumb_count.'-'.$lower_limit.'-'.$start_at_imgpos.'-'.$start_at_page.'-Mod'.$start_at_imgpos % $thumb_per_page.'</title>';
 
  if ((is_numeric($album))) {
  $item .= '<link>' .$link_url_alb . $picture[aid] . '&amp;pos='. $tmp_count . '</link>';
  $item .= "\n";
$tmp_count = $tmp_count + 1;
  }
  else {
  $item .= '<link>' .$link_url . $picture[pid]. '</link>';
  $item .= "\n";
  }
  $item .= '<description>&lt;a href=&quot;'.$link_url.$picture[pid].'&quot;&gt;&lt;img src=&quot;';
  $item .= $gallery_home_url.$thumb_url.'&quot; border=&quot;1&quot; vspace=&quot;2&quot; hspace=&quot;2&quot;&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;';
  if((strlen($picture[caption])) > 0) {
$item .= 'Description: '.preg_replace($replaceArray , $umlautArray , $picture[caption]).'&lt;br&gt;';
  } 
  if((strlen($album_name_keyword[title])) > 0) {
  $item .= 'Album: '.preg_replace($replaceArray , $umlautArray , $album_name_keyword[title]).'&lt;br&gt;';
  }
  $item .= 'Hits: '.$picture[hits].'&lt;br&gt;';
  $item .= 'Posted: '.localised_date($picture[ctime], $album_date_fmt);
  $item .= '</description>';
  $item .= "\n";
  $item .= "<guid>".$picmd5."</guid>\n";
  if ($fullsizethumbs == 1) {
    $item .= '<media:thumbnail url="'.$gallery_home_url.$normal_url.'" />';
    $item .= "\n";
  }
  $item .= '<media:thumbnail url="'.$gallery_home_url.$thumb_url.'" />';
  $item .= "\n";
  if ($fullsizepics == 0) {
  $item .= '<media:content url="'.$gallery_home_url.$normal_url.'" type="image/jpeg" />';
  }
  if ($fullsizepics == 1) {
$item .= '<media:content url="'.$gallery_home_url.$full_url.'" type="image/jpeg" />';
}
$item .= "\n";
$item .= "</item>\n";
  $item .= "\n";
    echo $item;
}

$rssFooter = <<<EOT
</channel>\n
</rss>
EOT;

echo $rssFooter;

$album = 'random';
?>

Il n'y a plus qu'à ...  ;)
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 13, 2009, 11:42:29 pm
PAr contre avec la version 1.10 de cooliris il y a un soucis d'affichage.
Title: Re: CoolIris / PicsLens et Coppermine
Post by: TheWren on April 14, 2009, 12:07:03 am
Merci pour tes réponses,

Je viens de tester en changeant les deux fichiers, et ça ne fonctionne toujours pas.

En essayant d'aller sur l'URL : http://webpix.free.fr/gallery/cooliris-rss.php j'obtiens le message suivant :

Parse error: syntax error, unexpected T_VARIABLE in /mnt/158/sda/d/9/webpix/gallery/cooliris-rss.php on line 318

Par contre je précise que j'utilise le plugin de Andiwe, est-ce ça le problème ? Afin que les élèments pointent bien au bon endroit, j'ai changé le chemin dans ton code en remplaçant require('plugins/Easy_RSS/include/init.inc.php') par require('plugins/Cooliris_RSS/include/init.inc.php')
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 14, 2009, 10:35:53 am
il faut conserver le code
Code: [Select]
'plugins/Easy_RSS/include/init.inc.php'
par contre essai de modifié le code de ton fichier xml

Code: [Select]
  <src>^http\:\/\/webpix\.online\.fr\/gallery\/albums\_(.+?)\.jpg$</src>
  <dst>http://webpix.online.fr/gallery/albums/{1}.jpg</dst>

par

Code: [Select]
  <src>^http\:\/\/webpix\.free\.fr\/gallery\/albums\_(.+?)\.jpg$</src>
  <dst>http://webpix.free.fr/gallery/albums/{1}.jpg</dst>

et à la ligne 42 de cooliris-rss.php

remplacer :
Code: [Select]
$gallery_home_url = 'http://webpix.online.fr/gallery/';
// $gallery_home_url = $CONFIG['ecards_more_pic_target'];

par

Code: [Select]
$gallery_home_url = 'http://webpix.free.fr/gallery/';
Title: Re: CoolIris / PicsLens et Coppermine
Post by: TheWren on April 14, 2009, 11:22:06 pm
Même soucis, malgré le changement.

Je vais repartir depuis le début car je ne comprend vraiment pas où ça coince.

Fred35, peux tu m'envoyer le plugin Easy_RSS que tu as utilisé.

Merci d'avance
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 14, 2009, 11:43:11 pm
j'utilise la version b018 de andiwe que tu peux télécharger ici :

http://www.nordschleifenbilder.de/download/cooliris/old/Easy_RSSmod4cooliris-b018.zip (http://www.nordschleifenbilder.de/download/cooliris/old/Easy_RSSmod4cooliris-b018.zip)

Une version b019 est désormais disponible mais je ne l'ai pas essayé.
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 15, 2009, 10:15:36 am
J'ai désinstallé la version b018 d'andiwe pour installer la b019 et là l'installation est bloquée, elle me dit que le fichier cooliris_rss.php n'est pas à la racine de ma galerie, pourtant je l'ai bien copiée.

J'ai voulu réinstallé la version b018 qui fonctionnait avant et la pas moyen non plus alors que j'ai bien remplacer le fichier cooliris_rss.php.

Je retourne bidouiller avant d'avoir mes membres sur mon dos lol
Title: Re: CoolIris / PicsLens et Coppermine
Post by: fred35 on April 15, 2009, 10:59:38 am
Bon, j'ai trouvé une solution

Télécharger la version vb019 d'andiwe
Supprimer les langues qui ne vous intéresse pas
(Je ne sais pas pourquoi mais sinon le plugin ne s'install pas)
Editer le fichier init.inc.php du dossier plugins\cooliris_rss\include\ et mettre le fichier langue choisi
(attention le fichier langue français n'est pas traduit à 100%)

Allez à l'administration des plugins et installez le.

Normalement ca devrait marcher.

Notez qu'il est préférable d'installer le plugin avec la langue english.
Lorsqu'il est installé avec la langue french, les options que l'on coche ou décoche ne semble pas être pris en compte...
Title: Re: CoolIris / PicsLens et Coppermine
Post by: TheWren on April 16, 2009, 06:34:38 pm
Tu as pratiquement cassé toute ta conf. pour moi, je te remercie mais malgré cela, en suivant toutes les étapes que tu décris ça ne fonctionne toujours pas.

Je vais tester sur une autre galerie, car là je ne comprend vraiment pas.

En tout cas, merci pour tout ce temps passé et toutes ces explications.

Dès que j'ai du nouveau je te tiens au courant.