Bonjour à tous,
D'origine dans PWB, le préfixe pour les vignettes est 'TN-', ce qui donne TN-image001.jpg.
J'aimerai plutôt avoir un suffixe du type '_THMB', ce qui donnerai image001_THMB.jpg
Possible ???
Merci de me tenir au courant.
Bonne soirée
Hors ligne
Help me !!! Merci
Hors ligne
Help me !!! = Veux tu bien relire les Règles
Merci...
Dans /include/functions.inc.php
Recherche:
function get_thumbnail_src($path, $tn_ext = '')
{
global $conf, $user;
if ($tn_ext != '')
{
$src = substr_replace(get_filename_wo_extension($path),
'/thumbnail/'.$conf['prefix_thumbnail'],
strrpos($path,'/'),
1);
$src.= '.'.$tn_ext;
}
else
{
$src = PHPWG_ROOT_PATH;
$src.= 'template/'.$user['template'].'/mimetypes/';
$src.= strtolower(get_extension($path)).'.png';
}
return $src;
}
Et tu remplaces par:
function get_thumbnail_src($path, $tn_ext = '')
{
global $conf, $user;
if ($tn_ext != '')
{
$src = substr_replace(get_filename_wo_extension($path),
'/thumbnail/',
strrpos($path,'/'),
1);
$src. = $conf['prefix_thumbnail'].'.'.$tn_ext;
}
else
{
$src = PHPWG_ROOT_PATH;
$src.= 'template/'.$user['template'].'/mimetypes/';
$src.= strtolower(get_extension($path)).'.png';
}
return $src;
}
Je n'ai pas testé...
8-)
Hors ligne