Fork me on GitHub

Rapport de message :*
 

Re: wf-link et les éditeurs

Titre du sujet : Re: wf-link et les éditeurs
par Wailers sur 04/06/2011 21:30:23

Bonjour

Ce module est relativement ancien, par conséquent les éditeurs placés dans le répertoire class/xoops_editors/ ne sont pas détectés automatiquement.

Il vous faut donc modifier le code du module :

- xoops_version.php
$i++;
$modversion['config'][$i]['name'] = 'form_options';
$modversion['config'][$i]['title'] = '_MI_WFL_EDITOR';
$modversion['config'][$i]['description'] = '_MI_WFL_EDITORCHOICE';
$modversion['config'][$i]['formtype'] = 'select';
$modversion['config'][$i]['valuetype'] = 'text';
$modversion['config'][$i]['default'] = 'dhtml';
$modversion['config'][$i]['options'] =  array(    
_MI_WFL_FORM_DHTML => 'dhtml',
_MI_WFL_FORM_DHTMLEXT => 'dhtmlext',
_MI_WFL_FORM_COMPACT => 'textarea',
_MI_WFL_FORM_HTMLAREA => 'htmlarea',
_MI_WFL_FORM_KOIVI => 'koivi',
_MI_WFL_FORM_FCK => 'fck',
_MI_WFL_FORM_TINYEDITOR => 'tinyeditor',
_MI_WFL_FORM_TINYMCE => 'tinymce'
);


Remplacez _MI_WFL_FORM_FCK => 'fck', par _MI_WFL_FORM_CK => 'ck',
(dans le fichier de langue approprié, ajouter la define _MI_WFL_FORM_CK)

- include/functions.php
switch ( $formuser ) {
        case 
"fck":
            if ( !
$x22 ) {
                if ( 
is_readableXOOPS_ROOT_PATH "/class/xoopseditor/fckeditor/formfckeditor.php" ) ) {
                    include_once( 
XOOPS_ROOT_PATH "/class/xoopseditor/fckeditor/formfckeditor.php" );
                    
$editor = new XoopsFormFckeditor$editor_configstrue );
                } else {
                    if ( 
$dhtml ) {
                        
$editor = new XoopsFormDhtmlTextArea$caption$name$value2060 );
                    } else {
                        
$editor = new XoopsFormTextArea$caption$name$value760 );
                    }
                }
            } else {
                
$editor = new XoopsFormEditor$caption"fckeditor"$editor_configs );
            }
            break;


Remplacez :
- case "fck": par case "ck":
- /class/xoopseditor/fckeditor/formfckeditor.php par /class/xoopseditor/ckeditor/formckeditor.php
- XoopsFormFckeditor par XoopsFormCkeditor
- fckeditor par ckeditor


Ensuite pensez à mettre à jour le module wflinks.

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

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