Oui la partie album fonctionne mais je cherche maintenant à comprendre comment interfacer DAlbum et PHPFM :?
Je ne vois pas ce que je n'ai pas fait.
Sur le site de PHPFM, ils disent :
CITATION
Adding upload button
So the following assumes that either you have decided to allow users to use FTP, or have one of the PHP file managers in place.
Now you need to add 'Upload' button to the DAlbum toolbar when DAlbum is in admin mode.
The recommended solution would be to edit config/custom.php, uncomment customGetButton function and change it as follows:
function customGetButton($id, $href, $text, $title, $nSpacer, $target)
{
$ret=getButton($id,$href,$text,$title,$nSpacer,$target,false);;
if ($id=='reindex')
{
// change here!
$uploadURL="ftp://user:password@ftp.mysite.com/public_html/photo/pictures";
// Add 'Upload' button after reindex
$ret.=getButton('upload',"$uploadURL","Upload","Upload files",2,"_new",false);
}
return $ret;
}
Change $uploadURL to point to your PHP file manager or FTP location.
Ici
Moi mon fichier custom.php donne maintenant :
CITATION
function customGetButton($id, $href, $text, $title, $nSpacer, $target)
{
$ret=getButton($id,$href,$text,$title,$nSpacer,$target,false);;
if ($id=='reindex')
{
// change here!
$uploadURL="http://www.URLDUSITE/photos/phpfm.0.2.3/index.php";
// Add 'Upload' button after reindex
$ret.=getButton('upload',"$uploadURL","Upload","Upload files",2,"_new",false);
}
return $ret;
}
Si quelqu'un voit une erreur, merci par avance car cela dépasse de très loin mes compétences et je n'ai toujours pas de bouton Upload dans l'admin de DAlbum..