1
djtom
Integration Tiny Editor in Extcal
  • 2009/12/28 12:53

  • djtom

  • Just popping in

  • Posts: 15

  • Since: 2004/10/27



Hello,

I have integrated Tiny Editor for the module Extcal like this :
(I use the module Tiny editor in my site)

1/ I edit the file xoops/modules/extcal/admin/cat.php:

include '../../../class/xoopsformloader.php';
//include_once XOOPS_ROOT_PATH . "/class/wysiwyg/formwysiwygtextarea.php";
include_once XOOPS_ROOT_PATH "/class/xoopseditor/tinyeditor/formtinyeditortextarea.php";


and

$form = new XoopsThemeForm(_AM_EXTCAL_ADD_CATEGORY'add_cat''cat.php?op=enreg''post'true);
            
//$form->addElement(new XoopsFormText(_AM_EXTCAL_NAME, 'cat_name', 30, 255, $cat->getVar('cat_name')), true);
            //$form->addElement(new XoopsFormWysiwygTextArea(_AM_EXTCAL_DESCRIPTION, 'cat_desc', $cat->getVar('cat_desc'),'','',''), false);
            
$form->addElement(new XoopsFormTinyeditorTextArea(_AM_EXTCAL_DESCRIPTION'cat_desc'$cat->getVar('cat_desc'),'','',''), false);



and

$form->addElement(new XoopsFormText(_AM_EXTCAL_NAME'cat_name'30255), true);
        
//$form->addElement(new XoopsFormDhtmlTextArea(_AM_EXTCAL_DESCRIPTION, 'cat_desc', ''), false);
        //$form->addElement(new XoopsFormWysiwygTextArea(_MD_EXTCAL_DESCRIPTION, 'event_desc', $desc,'','',''), false);
        
$form->addElement(new XoopsFormTinyeditorTextArea(_MD_EXTCAL_DESCRIPTION'event_desc'$desc,'','',''), false);



2/ I edit the file xoops/modules/extcal/class/event.php:

include_once XOOPS_ROOT_PATH.'/modules/extcal/class/config.php';
// Intégration koivi
//include XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
//include_once XOOPS_ROOT_PATH . "/class/wysiwyg/formwysiwygtextarea.php";

// Intégration TinyEditor
include XOOPS_ROOT_PATH '/class/xoopsformloader.php';
include_once 
XOOPS_ROOT_PATH "/class/xoopseditor/tinyeditor/formtinyeditortextarea.php";


et

// Description
        //$form->addElement(new XoopsFormDhtmlTextArea(_MD_EXTCAL_DESCRIPTION, 'event_desc', $desc, 10), false);
        //$form->addElement(new XoopsFormWysiwygTextArea(_MD_EXTCAL_DESCRIPTION, 'event_desc', $desc,'100%','400px',''), false);
        
$form->addElement(new XoopsFormTinyeditorTextArea(_MD_EXTCAL_DESCRIPTION'event_desc'$desc,'100%','400px',''), false);


and

// Address
        //$form->addElement(new XoopsFormDhtmlTextArea(_MD_EXTCAL_ADDRESS, 'event_address', $address), false);
        //$form->addElement(new XoopsFormWysiwygTextArea(_MD_EXTCAL_ADDRESS, 'event_address', $address,'','',''), false);
        
$form->addElement(new XoopsFormTinyeditorTextArea(_MD_EXTCAL_ADDRESS'event_address'$address,'','',''), false);


So this integration is fully work when I'm connected with an admin user, but when it's use it with a member register user I have some problem.

When the event is post by the register user, the content of the event is blank in the database.

So I activate the debug mode and I have this error

Message: Undefined index: event_desc dans le fichier /modules/extcal/post.php - ligne 99
Message: Undefined index: event_address dans le fichier /modules/extcal/post.php - ligne 104
Message: Deprecated, use '/include/mimetypes.inc.php' directly. dans le fichier /class/mimetypes.inc.php - ligne 25

But I have the same error when I post the event with an admin user, but it works (The content of the event is Ok in the database with the admin user)

Somebody have an idea of the problem ?

Thank you too much for your help

2
alfred
Re: Integration Tiny Editor in Extcal
  • 2009/12/28 17:04

  • alfred

  • Quite a regular

  • Posts: 249

  • Since: 2005/10/29


Message is no Error

the variable is not initialized

3
djtom
Re: Integration Tiny Editor in Extcal
  • 2009/12/29 8:59

  • djtom

  • Just popping in

  • Posts: 15

  • Since: 2004/10/27


Ok,

But noboy have an idea of my problem ?

I doing new test and now the content of the event is blank when I use a register member or an Admin member?

It's my integration of tinyeditor which is wrong ?

And one detail is that use tiny Editor in modules News and Forum and there isn't any problem ?

In debug mode I have no another messages ?

In whiwh way can I fix this problem ?

Thanks you for your help !!

@ tuti

4
djtom
Re: Integration Tiny Editor in Extcal
  • 2009/12/29 9:05

  • djtom

  • Just popping in

  • Posts: 15

  • Since: 2004/10/27


Yop

Finally with new test in debug mode, I have this Erreur :


Erreurs
Message: Undefined index: event_desc dans le fichier /modules/extcal/post.php - ligne 99
Message: Undefined index: event_address dans le fichier /modules/extcal/post.php - ligne 104
Message: Deprecated, use '/include/mimetypes.inc.php' directly. dans le fichier /class/mimetypes.inc.php - ligne 25

Which is my problem, but why the event_dec is not good ?

5
djtom
Re: Integration Tiny Editor in Extcal
  • 2010/1/5 12:04

  • djtom

  • Just popping in

  • Posts: 15

  • Since: 2004/10/27


Please help me to fix this problem !! :)

Somebody have an idea of the problem ? And what can I do for fix it ?

Thank you too much for your help

@ +

6
frankblack
Re: Integration Tiny Editor in Extcal
  • 2010/1/5 15:07

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Give this a try:

$form->addElement(new XoopsFormTinyeditorTextArea
  
(array('caption' => _AM_EXTCAL_DESCRIPTION'name' => 'event_desc''value' => $desc'width' => '100%''height' => '400px''xEditor' => '1'),false));


HTH

7
djtom
Re: Integration Tiny Editor in Extcal
  • 2010/1/27 11:56

  • djtom

  • Just popping in

  • Posts: 15

  • Since: 2004/10/27


Yop,

I try your proposition, but I have always the same bug !!

I think doing a new complete install on a local machine and do more test !!

@ +

Login

Who's Online

258 user(s) are online (182 user(s) are browsing Support Forums)


Members: 0


Guests: 258


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits