Fork me on GitHub

Rapport de message :*
 

Re: Modules Smartsection

Titre du sujet : Re: Modules Smartsection
par PinMaster sur 06/09/2009 19:01:29

Voici donc le p'tit correctif, pour avoir les tinyeditor/mce dans smartsection.

1 - Edite le fichier "/include/functions.php"
2 - Va à la ligne 297, tu devrais avoir ceci :
if ( is_readable(XOOPS_ROOT_PATH "/Frameworks/xoops22/class/xoopseditor/tinyeditor/formtinyeditortextarea.php"))    {
    include_once(
XOOPS_ROOT_PATH "/Frameworks/xoops22/class/xoopseditor/tinyeditor/formtinyeditortextarea.php");
    
$editor = new XoopsFormTinyeditorTextArea(array('caption'=>$caption'name'=>$name'value'=>$value'width'=>'100%''height'=>'400px'));
} else {

3 - Remplace ces lignes par ce qui suit :
if ( is_readable(XOOPS_ROOT_PATH "/class/xoopseditor/tinyeditor/formtinyeditortextarea.php"))    {
    include_once(
XOOPS_ROOT_PATH "/class/xoopseditor/tinyeditor/formtinyeditortextarea.php");
    
$editor = new XoopsFormTinyeditorTextArea(array('caption'=>$caption'name'=>$name'value'=>$value'width'=>'100%''height'=>'400px'));
} elseif ( 
is_readable(XOOPS_ROOT_PATH "/class/xoopseditor/tinymce/formtinymce.php")) {
    include_once(
XOOPS_ROOT_PATH "/class/xoopseditor/tinymce/formtinymce.php");
    
$editor = new XoopsFormTinymce(array('caption'=>$caption'name'=>$name'value'=>$value'width'=>'100%''height'=>'400px'));
}else {

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

90 Personne(s) en ligne (57 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 90 | Plus ...