Bonjour,
Voilà je voudrais modifier le lien permanent de l'image en une zone INPUT sur laquelle on clique pour copier facilement le lien, donc j'ai remplacé ceci :
$info[$lang_picinfo['URL']] = '<a href="' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') .basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '" >' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '</a>';
Par cela :
$info[$lang_picinfo['URL']] = '<input type="text" size="60" onClick="this.select()" readonly="readonly" value="' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') .basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '" />';
Jusque là aucun problème ça fonctionne nickel, cependant je voudrais en mettre un deuxième pour faire un lien automatique BBCode, donc une balise IMG pour afficher une miniature de l'image (soit la toute petite, soit l'intermédiaire) mais je n'ai pas trouvé comment récupérer l'url de ces images, voilà où j'en suis rendu :
$info[$lang_picinfo['URL']] = '<input type="text" size="60" onClick="this.select()" readonly="readonly" value="' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') .basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '" /><br><input type="text" size="60" onClick="this.select()" readonly="readonly" value="[url=' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') .basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '][img]Comment récupérer l'url ?[/img][/url]" />';
Merci de votre aide :-)