51
tzvook
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops
  • 2005/6/4 5:35

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Quote:

blueteen wrote:
it works perfectly for me :)




Quote:

i only hope there's no bad effect !


non 4 me in 2 sites ...

52
gediminasbyt
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops

The only bad effect is that Kiovi has a problem with saving html data, it ads it's own formating on top of your html. Therefore code does not work. When you click on html box and paste html code Kiovi doesn't save the content. I had to make some custom blocks with google ads, amazon etc. a couple of times I managed to save on a NEW BLOCK ONLY, but no luck on created, saved or edited before. I had to:

1: tick html box
2: paste code
3: tick html box
4: save the block

But as I mentioned if this block was created before and you try to edit, it wouldn't save or update html content.

53
gediminasbyt
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops

One more little annoying thing. When I click html box the box which used to be about 10 lines vertical shrinks to a single line, therefore to edit code is almost impossible. How do I make this box larger after I click html?

Gediminas

54
blueteen
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops
  • 2005/6/11 12:00

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


in \modules\system\admin\blocksadmin\blockform.php

find this line


$textarea = new XoopsFormDhtmlTextArea(_AM_CONTENT'bcontent'$block['content'], 1570);


and replace with

$textarea = new XoopsFormDhtmlTextArea(_AM_CONTENT'bcontent'$block['content'], 4070);


it works for me :)

55
gediminasbyt
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops

blueteen:

I updated like you said, updated system module but no difference. Somewhere else it might be defined?

UPDATE

What else I noticed: In Firefox this box shows up as 2 lines high in IE 1 line high. What defines for 2 browsers? Shouldn't be the same for both?

Gediminas

56
blueteen
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops
  • 2005/6/12 9:07

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


ok scuse me, it was an old file...

try this : in \modules\system\admin\blocksadmin\blockform.php


replace

$textarea = new XoopsFormDhtmlTextArea(_AM_CONTENT'bcontent'$block['content'], 1570);


with

$textarea = new XoopsFormDhtmlTextArea(_AM_CONTENT'bcontent'$block['content'], '100%''500px');


to update module 'system' is not needed, you can see the result immediately

57
gediminasbyt
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops

Well that did a trick, thanx blueteen!

Gediminas

58
Anonymous
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops
  • 2005/6/28 18:47

  • Anonymous

  • Posts: 0

  • Since:


Still the same bug, can't save html. Tried anything and everything. Code disappears anyway you click these html boxes and popup messages just says "please enter content". Only directly adding to SQL works. Bugger.

59
Twonames
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops
  • 2005/12/8 9:57

  • Twonames

  • Just popping in

  • Posts: 35

  • Since: 2005/1/29


This is the single most useful thread I have seen so far. It works just fine for me on XOOPS 2.0.13.2

However, there is one problem I can't see how to fix.

The kiovi editor comes up on the use account screen allowing them to put clever stuff in the signature but this does not display properly when the signature is added to a post - or anywhere else for that matter.

Someone please tell me how to do one of 2 things.....

either
1. make the signature area of edituser.php revert to using the plain text area

or

2. Make html code in signatures behave properly

feel free to visit my test site
It is not a production site. User guest, password guest and do what you like there

Thanks

60
blueteen
Re: [mini guide] How to quickly replace all the textarea with kiovi in Xoops
  • 2005/12/8 10:08

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


Hello,
on my intranet, i've modified userinfo.php

I've replaced :

$myts->makeTareaData4Show($thisUser->getVar('user_sig''N'),0,1,1));


with

$xoopsTpl->assign('user_signature'$myts->undoHtmlSpecialChars($thisUser->getVar('user_sig''N'),0,1,1));


user'signature appears correctly now on my site.
but i don't know if it's a good modification.

Login

Who's Online

465 user(s) are online (352 user(s) are browsing Support Forums)


Members: 0


Guests: 465


more...

Donat-O-Meter

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

Latest GitHub Commits