Utiliser différents éditeurs tels que FCK ou koivi pour les blocs dans xoops.
vous devez modifier le fichier blockform.php dans / modules / system / admin / blocksadmin /
trouver ce code en ligne 49
Citation:
$textarea = new XoopsFormDhtmlTextArea(_AM_CONTENT, ‘bcontent’, $block['content'], 15, 70);
$textarea->setDescription(’<span style=”font-size:x-small;font-weight:bold;”>’._AM_USEFULTAGS.’</span><br /><span style=”font-size:x-small;font-weight:normal;”>’.sprintf(_AM_BLOCKTAG1, ‘{X_SITEURL}’, XOOPS_URL.’/').’</span>’);
$textarea->doHtml = true;
$form->addElement($textarea, true);
Et remplacer par:
éé <a href="http://www.yoolink.fr/post/tag?noscript=1&site_id=308095">Partager</a> sur <a href="http://www.yoolink.fr">Yoolink</a>include_once XOOPS_ROOT_PATH.’/class/xoopsformloader.php’;
$editor_configs = array();
$editor_configs['name'] = ‘bcontent’;
$editor_configs['value'] = $block['content'];
$editor_configs['rows'] = $rows ? $rows : 35;
$editor_configs['cols'] = $cols ? $cols : 60;
$editor_configs['width'] = “100%”;
$editor_configs['height'] = “400px”;$textarea = new XoopsFormEditor(_AM_CONTENT, “fckeditor”, $editor_configs);
$textarea->setDescription(’‘._AM_USEFULTAGS.’
‘.sprintf(_AM_BLOCKTAG1, ‘{X_SITEURL}’, XOOPS_URL.’/').’‘);$form->addElement($textarea, true);/blockquote>