41
abbey
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops
  • 2005/3/25 17:54

  • abbey

  • Just popping in

  • Posts: 50

  • Since: 2005/3/17


Hi, i have tried to use your mini guide to get kiovi editor working in all the models.

however after going thru your steps i have even lost what i had working in the news module.

what shd i do next?

thanks

42
Rhomal
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops
  • 2005/3/25 19:43

  • Rhomal

  • Quite a regular

  • Posts: 274

  • Since: 2004/10/5


first I would restore the files with a backup so you can alteast get the site working again.

Next, did you install Koivi? Did you get it working fine normally before this hack?

Can you give more details what happens after you apply the hack?

43
pgroell
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops
  • 2005/4/3 20:01

  • pgroell

  • Just popping in

  • Posts: 20

  • Since: 2005/4/3 1


Hello,

may be this can help some others. I had a blank page with Tiny content, via PHPdebug, a found the error.

Tinycontent 's file was performing a browser check and this produced a conflict in the

e:\easyphp1-7\www\ourplane\class\wysiwyg\include\functions.inc.php

file as there is also a browser check there.
I disabled the function in Tinycontent, but for your purpose you may try to disable it in the above file and see what happens.

I also have a question about the height of the edit box, I cannot change it via the function parameter.

44
tzvook
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops
  • 2005/4/7 19:28

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


When Implementing the full hack to XOOPS it causes a few fields in modules to show the HTML codes, how can I enable those fields to use HTML codes (I looked @ the code but didn't knew what to change in something like this:

// DESCRIPTION
    
$description_text = new XoopsFormDhtmlTextArea(_CO_SCLIENT_DESCRIPTION'description'''1560);
    
$description_text->setDescription(_CO_SCLIENT_DESCRIPTION_DSC);
    
$form->addElement($description_textfalse);


or is there something like "preg_replace" or whatever ?

I wonder how this question wasn't asked due to the fact that it happands in a lot of module if you implement this hack.

But I got to say samuels that I take my words back, it is a really good wysiwyg editor, and as I see from the demo, it got even better then the version I'm using.
where is the link to this version ?
Is it out already (the new version) ?
Are you still developing the editor ?

45
tzvook
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops
  • 2005/4/21 10:19

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Hi All
Still here though this thread looks dead
again: is there an easy way to enable Html in those fields without html ability?

For instance - the user signature is now wysiwyg enabled but if you use html, site shows the tags, not the results...

46
tzvook
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops
  • 2005/4/22 15:52

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Since no good soul came to help, here is my solution (which is very welcome for critic ... though it works great for me till now)

I found 2 solutions for two cases

1. In the file that is responsible to show the data (depends on which module you need it for) find the field inwhich you have the wysiwyg (or want to make html enable from any other reason) ... replace:
$myts->makeTareaData4Show($your-field,0)


with:
$myts->undoHtmlSpecialChars($your-field,0)


2. If fields look like this:
$this->initVar("description"XOBJ_DTYPE_TXTAREAnullfalse);


Add in the end of the list:
$this->initVar("dohtml"XOBJ_DTYPE_INT1false);


Till now it covered my need with the wysiwyg fields replacement (see my posts above) ... hope it'll help ....

47
tzvook
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops
  • 2005/4/22 23:20

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Is there a way of enabling the kiovi in a form that is fuly in the templates ( as in the Xdirectory case ) ?
I'm talking about the Description field ...

48
jlm69
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops
  • 2005/4/23 16:54

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


To tzvook,

look at this post for seeing how to add koivi to xdirectory. DO NOT overwrite xdirectory files with these, they are for mxdirectory. But if you look through the files you will see how to use this for xdirectory. All additions are commented except one which is explained in the readme file.

https://xoops.org/modules/newbb/viewtopic.php?topic_id=35082&forum=15

hope this helps.
John

49
tzvook
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops
  • 2005/5/9 14:54

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Sice the solution for the regular kiovi don't fits here, the solution for the site-wide hack can be found in the end of this post:
https://xoops.org/modules/newbb/viewtopic.php?topic_id=35018&viewmode=flat&order=ASC&start=10

50
blueteen
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops
  • 2005/6/3 12:57

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


Thanks for your second tip !!
i've modified 5 files for newBB.
it works perfectly for me :)
i only hope there's no bad effect !

Quote:

tzvook wrote:
Since no good soul came to help, here is my solution (which is very welcome for critic ... though it works great for me till now)

I found 2 solutions for two cases

1. In the file that is responsible to show the data (depends on which module you need it for) find the field inwhich you have the wysiwyg (or want to make html enable from any other reason) ... replace:
$myts->makeTareaData4Show($your-field,0)


with:
$myts->undoHtmlSpecialChars($your-field,0)


2. If fields look like this:
$this->initVar("description"XOBJ_DTYPE_TXTAREAnullfalse);


Add in the end of the list:
$this->initVar("dohtml"XOBJ_DTYPE_INT1false);


Till now it covered my need with the wysiwyg fields replacement (see my posts above) ... hope it'll help ....

Login

Who's Online

117 user(s) are online (77 user(s) are browsing Support Forums)


Members: 0


Guests: 117


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