1
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 !!

@ +



2
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

@ +



3
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 ?



4
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



5
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



6
djtom
Re: XoopsCalander Error
  • 2009/12/10 11:48

  • djtom

  • Just popping in

  • Posts: 15

  • Since: 2004/10/27


Hi Trabis,

So after many days of use I can say that your modification works whitout any bug on my site !!

So for my part it's very good.

Thank you so much for this modification

@ +



7
djtom
Re: XoopsCalander Error
  • 2009/12/6 22:36

  • djtom

  • Just popping in

  • Posts: 15

  • Since: 2004/10/27


Yeah !!!


Yes Trabi you have totaly right !!

It's good that's work !!!

I try the many possibilities and I make a feed back.

Thank you too much for your modifications




8
djtom
Re: XoopsCalander Error
  • 2009/12/6 21:56

  • djtom

  • Just popping in

  • Posts: 15

  • Since: 2004/10/27



Yop,

With the debug mode activate I have this errors :

Quote:

Avertissement: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /class/xoopsload.php:254) dans le fichier /include/common.php - ligne 178
Avertissement: fopen(/home/r13083/xosecure/modules/protector/configs/configcachedf28de) [function.fopen]: failed to open stream: Permission denied dans le fichier /home/r13083/xosecure/modules/protector/class/protector.php - ligne 134
Avertissement: fwrite(): supplied argument is not a valid stream resource dans le fichier /home/r13083/xosecure/modules/protector/class/protector.php - ligne 135
Avertissement: fclose(): supplied argument is not a valid stream resource dans le fichier /home/r13083/xosecure/modules/protector/class/protector.php - ligne 136
Avertissement: XoopsLoad::load('model') is deprecated, use XoopsLoad::load('xoopsmodelfactory') dans le fichier /class/xoopsload.php - ligne 64
Avertissement: XoopsLoad::load('model') is deprecated, use XoopsLoad::load('xoopsmodelfactory') dans le fichier /class/xoopsload.php - ligne 64
Avertissement: Cannot modify header information - headers already sent by (output started at /class/xoopsload.php:254) dans le fichier /kernel/session.php - ligne 261
Avertissement: Cannot modify header information - headers already sent by (output started at /class/xoopsload.php:254) dans le fichier /include/checklogin.php - ligne 81
Requêtes





9
djtom
Re: XoopsCalander Error
  • 2009/12/6 19:02

  • djtom

  • Just popping in

  • Posts: 15

  • Since: 2004/10/27


Hi Every body,

Sorry for later response....

So Trabis when I put your file xoopsload.php , I can edit the event in Extcal and the news too.

But I have a problem with the session !! When i try to log on the website, I have the message who say " Hello , you are connect" but i go back onthe website like an anonymous...

The strange is that in French Forum there is another man who have the same problem with Extcal and with your patch all workly good on his site...

So I have try to disable Protector, and I try to use a personaliez session but I have the same problem !!

You have an idea of the problem ?

You want debug report ?

@ +



10
djtom
Re: XoopsCalander Error
  • 2009/12/4 7:31

  • djtom

  • Just popping in

  • Posts: 15

  • Since: 2004/10/27



Hi Trabis !!!

Wow you are too efficient:)

I will try your suggestion tonight when I go home and I will inform !!

Thank you too much for you participation in this problem

@ +





TopTop
(1) 2 »



Login

Who's Online

196 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 196


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