coppermine-gallery.com/forum

Support => Français (French) => Language Specific Support => cpg1.4.x Français (French) => Topic started by: Jenn75 on July 25, 2009, 05:31:36 PM

Title: Problemes CPMFETCH
Post by: Jenn75 on July 25, 2009, 05:31:36 PM
Bonjour,

J'aimerais utiliser CPMFETCH sur mon site web.
J'ai bien suivi les instructions, le code a
marché et a exécuté les 4 dernières photos mise
dans la galerie.

Quote<?php
  include "./cpmfetch.php";
  $objCpm = new cpm("./cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

J'ai copié ce code dans le header.php de mon site (j'utilise wordpress),
et voilà ce que ça m'affiche :

Quote
Warning: include() [function.include]: Unable to access ./cpmfetch.php in /home/jeniworld/www/katevoegeleweb/wp-content/themes/wp-polaroid/header.php on line 82

Warning: include(./cpmfetch.php) [function.include]: failed to open stream: No such file or directory in /home/jeniworld/www/katevoegeleweb/wp-content/themes/wp-polaroid/header.php on line 82

Warning: include() [function.include]: Unable to access ./cpmfetch.php in /home/jeniworld/www/katevoegeleweb/wp-content/themes/wp-polaroid/header.php on line 82

Warning: include(./cpmfetch.php) [function.include]: failed to open stream: No such file or directory in /home/jeniworld/www/katevoegeleweb/wp-content/themes/wp-polaroid/header.php on line 82

Warning: include() [function.include]: Failed opening './cpmfetch.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/jeniworld/www/katevoegeleweb/wp-content/themes/wp-polaroid/header.php on line 82

Fatal error: Class 'cpm' not found in /home/jeniworld/www/katevoegeleweb/wp-content/themes/wp-polaroid/header.php on line 83

Je suis une novice en php, donc je ne comprends pas grand chose.
J'ai constaté que ma galerie photo est hébergé sur free, or mon site est hébergé
ailleurs. J'ai beau change l'url dans l'"include" et dans "$objCpm", rien ne marche  ???

Merci d'avance,
Jennifer
Title: Re: Problemes CPMFETCH
Post by: Pascal YAP on July 25, 2009, 06:40:40 PM
Tentez d'héberger votre Coppermine à la même adresse (jeniworld.com) Pourquoi ne le faites-vous pas ?
Ou encore utilisez cfimageget.php du package CPMFetch.
Title: Re: Problemes CPMFETCH
Post by: Jenn75 on July 26, 2009, 12:51:52 AM
Bonsoir,

merci pour votre réponse rapide!
Je préfère héberger ma galerie photos ailleurs,
pour avoir plus d'espace et consacrer l'hébergement
chez free aux sites médias (vidéos, photos, paroles, etc.).
Que dois-je changer dans cfimageget.php pour que
CPMFETCH aille chercher les dernières images sur un site externe (soit la galerie photos hébergée sur free) ?
Title: Re: Problemes CPMFETCH
Post by: Pascal YAP on July 26, 2009, 02:50:50 AM
Il et possible d'utiliser CPMFetch et Javascript. Un Sujet dans ce sens est disponible ici :
Simple Javascript plugin for cpmFetch (http://forum.coppermine-gallery.net/index.php/topic,42440.0.html) => http://forum.coppermine-gallery.net/index.php/topic,42440.0.html

Lisez bien ce Sujet, il y a votre bonheur là-dedans  ;)
Title: Re: Problemes CPMFETCH
Post by: Jenn75 on July 26, 2009, 09:10:14 PM
En effet, j'ai trouvé mon bonheur!
J'ai réussi malgré le fait que ce soit tout en anglais ;D
MERCI beaucoup  :D