Fork me on GitHub




(1) 2 »


tiny editor
Régulier
Inscrit: 22/09/2006 11:34
Messages: 133
bonjour,
j'ai installé ce module et depuis, sur le forum, impssible de poster ou editer

site: helicos zooms

voici l'erreur:

Fatal error: Call to a member function on a non-object in /data/members/paid/g/s/gsm-net.net/htdocs/www/Frameworks/xoops22/class/xoopsform/formeditor.php on line 36

All errors (5) queries (28) blocks (8) extra (0) timers (5)
Errors
Notice: Undefined index: name in file /class/xoopseditor/xoopseditor.php line 78

Notice: Undefined index: name in file /class/xoopseditor/xoopseditor.php line 78

Notice: Undefined index: name in file /class/xoopseditor/xoopseditor.php line 78

Notice: Undefined index: name in file /class/xoopseditor/xoopseditor.php line 78

Warning: array_multisort(): Array sizes are inconsistent in file /class/xoopseditor/xoopseditor.php line 82

le forum est cbb3.05

utilisateur: telepat1
pass: test
merci de vos idées.

Posté le : 21/10/2006 09:20
Partager Twitter Partagez cette article sur GG+
Re: tiny editor
Xoops accro
Inscrit: 04/02/2003 01:54
De Le Mans
Messages: 12273
Regarde ce sujet tout récent qui traite de tinyEditor, cbb 3.06.

Posté le : 21/10/2006 09:54
Partager Twitter Partagez cette article sur GG+
Re: tiny editor
Régulier
Inscrit: 22/09/2006 11:34
Messages: 133
mon probleme n'est pas tout à fait identique....j'avais bien frameworks à jour...voilà ce qu'il y a dans l'onglet "aide "du module:

If you're using an "old" version of Xoops (< 2.2) you can still use tinyeditor with your modules
In this case only a few changes to some of your module's files are required.
Following is a sample of integration with an old News module:
In your favourite text editor open the file XOOPS_ROOT_PATH/modules/news/include/storyform.inc.php
about line 35 add the following line include_once XOOPS_ROOT_PATH . "/class/xoopseditor/tinyeditor/formtinyeditortextarea.php";
Make sure this is the last file to be included

Then move on and replace the lines which render the textareas with $sform->addElement(new XoopsFormtinyeditorTextArea(array('caption'=> _NW_THESCOOP, 'name'=>'hometext', 'value'=>$hometext, 'width'=>'100%', 'height'=>'400px'),true));
for the Scoop text and
$sform->addElement(new XoopsFormtinyeditorTextArea(array('caption'=> _AM_EXTEXT, 'name'=>'bodytext', 'value'=>$bodytext, 'width'=>'100%', 'height'=>'400px'),false));
for the Extended text
That's all!
Unfortunately this is not all!
Here is a short description of how to make "new" modules work with tinyeditor that were designed for the xoopseditor framework

We take the new news-module as example. Koivi was the first editor that was used for the xoopseditor framework. So lets search for occurrances of koivi to mimic this to make tinyeditor work

Open xoops_version.php and look for this array (may vary):

array(_MI_NEWS_FORM_DHTML=>'dhtml', _MI_NEWS_FORM_COMPACT=>'textarea', _MI_NEWS_FORM_SPAW=>'spaw', _MI_NEWS_FORM_HTMLAREA=>'htmlarea', _MI_NEWS_FORM_KOIVI=>'koivi', _MI_NEWS_FORM_FCK=>'fck');
and change this to:

array(_MI_NEWS_FORM_DHTML=>'dhtml', _MI_NEWS_FORM_COMPACT=>'textarea', _MI_NEWS_FORM_SPAW=>'spaw', _MI_NEWS_FORM_HTMLAREA=>'htmlarea', _MI_NEWS_FORM_KOIVI=>'koivi', _MI_NEWS_FORM_FCK=>'fck', 'tinyeditor'=>'tinyeditor');
Now open include/functions.php and look for:

case "koivi":
if(!$x22) {
if ( is_readable(XOOPS_ROOT_PATH . "/class/wysiwyg/formwysiwygtextarea.php")) {
include_once(XOOPS_ROOT_PATH . "/class/wysiwyg/formwysiwygtextarea.php");
$editor = new XoopsFormWysiwygTextArea($caption, $name, $value, '100%', '400px', '');
}
} else {
$editor = new XoopsFormEditor($caption, "koivi", $editor_configs);
}
break;
After this insert these lines:

case "tinyeditor":
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'));
}
break;
Update the news-module and you are done (hopefully). Now you have a good example on how to implement tinyeditor in other modules.


--------------------------------------------------------------------------------
a premiere vue faut modifier pas mal de fichiers.....où alots j'ai rien pigé..

Posté le : 21/10/2006 16:14
Partager Twitter Partagez cette article sur GG+
Re: tiny editor
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
Messages: 16972
Bonjour,

As tu télécharger la version de tinyeditor sur ce site ?

A +

Posté le : 21/10/2006 16:32

La connaissance s'accroît quand on la partage ...
Partager Twitter Partagez cette article sur GG+
Re: tiny editor
Régulier
Inscrit: 22/09/2006 11:34
Messages: 133
oui oui....

merci

Posté le : 21/10/2006 16:34
Partager Twitter Partagez cette article sur GG+
Re: tiny editor
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
Messages: 16972
Version de xoops ?

Posté le : 21/10/2006 16:46

La connaissance s'accroît quand on la partage ...
Partager Twitter Partagez cette article sur GG+
Re: tiny editor
Régulier
Inscrit: 22/09/2006 11:34
Messages: 133
Url du site : http://www.gsm-net.net
Version de Xoops : XOOPS 2.0.15
Thème Xoops : CPphpkaox
Jeu de templates : default
Version PHP : 4.3.10
Version MySQL : 5.0.24alyceu
Logiciel serveur : Apache (UNIX)
Statut safe mode : ON (This May Cause Problems)
Register Globals : ON
Navigateur : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

--------------------------------------------------------------------------------

Support librairie GD : Activé (vignettes disponibles)
Version libraire GD : 2.0 or higher
Statut d'upload du serveur : ON
Taille maximum d'upload autorisée : 50M

voici xoops info

merci

Posté le : 21/10/2006 17:00
Partager Twitter Partagez cette article sur GG+
Re: tiny editor
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
Messages: 16972
Normalement avec la version de tinyeditor téléchargeable sur ce site, les modifications pour les principaux modules sont déjà réalisées (si tu as téléversé la totalité des fichiers et dossiers de l'archive).
Pour cbb 3.06, je pense qu'il y a une modification à réaliser dans un des fichiers se trouvant dans frameworks.
Il ne faut pas oublier que, pour des raisons de sécurité, l'utilisation d'un éditeur html comme tinyeditor n'est pas recommandé dans un forum

A +

Posté le : 21/10/2006 17:05

La connaissance s'accroît quand on la partage ...
Partager Twitter Partagez cette article sur GG+
Re: tiny editor
Régulier
Inscrit: 22/09/2006 11:34
Messages: 133
suis e train d'essayer de le desinstaller...

merci de ton aide...

Posté le : 21/10/2006 17:07
Partager Twitter Partagez cette article sur GG+
Re: tiny editor
Régulier
Inscrit: 22/09/2006 11:34
Messages: 133
re

a premiere vue j'ai reussi a le sortir.......
il ne me reste donc plus que l'erreur insolutionné de la création de nouvelles categorie dans le forum..

merci de ton aide..

Posté le : 21/10/2006 17:18
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant
(1) 2 »



Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.

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

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