61
samuels
Re: Koivi page break?
  • 2004/12/11 13:48

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I have plans to add XOOPS codes support to new versions of koivi.
By bow, try to add the pagebreak code.



62
samuels
Re: could you help me with koivi editor ?
  • 2004/12/11 13:27

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I'm trying to collect all patches here and put them into Koivi docs.
But remember, in newer versions of XOOPS users will be able to change the default dhtml editor for other one (not only koivi, but spaw, htmlarea, fckeditor e.t.c), without hacking any file.

The problem here is that a lot of people need this functions now, including me.

So, this hacks are only a temporal solution.

@silver74
You have commented this line

//$sform->addElement( new XoopsFormDhtmlTextArea( _MD_DESCRIPTION, 'message', '', 15, 60 ), true );


So the koivi editor must be call as:
$sform->addElement(new XoopsFormWysiwygTextArea_MD_DESCRIPTION'message',' ''100%''400px',''), true);


The way to call koivi editor is really similar to XoopsFormDhtmlArea.



63
samuels
Re: could you help me with koivi editor ?
  • 2004/12/9 19:58

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


This module is a little bit different cause it doesn't use xoopsform, but no problem just open:

xoopsfaq/admin/contentsform.php.

Comment lines 41 and 42:
//xoopsCodeTarea("contents_contents", 60, 20);
//xoopsSmilies("contents_contents");


And add the following:
include_once XOOPS_ROOT_PATH."/include/xoopscodes.php";
include 
XOOPS_ROOT_PATH "/class/xoopsformloader.php";
include 
XOOPS_ROOT_PATH "/class/wysiwyg/formwysiwygtextarea.php";
$wysiwyg_text_area= new XoopsFormWysiwygTextArea'''contents_contents'$contents_contents'100%''400px','');
echo 
$wysiwyg_text_area->render();


All done



64
samuels
Re: HTMLArea Availability for XOOPS
  • 2004/12/9 12:27

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Have you downloaded the last version?



65
samuels
Re: could you help me with koivi editor ?
  • 2004/12/9 10:30

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


This is because only admins have privileges to check "Enable HTML code" in comments.
If you want to change it you must edit xoops/include/comment_form.php

In line 79,80,81 you'll see the following code:
$html_checkbox = new XoopsFormCheckBox('''dohtml'$dohtml);
$html_checkbox->addOption(1_CM_DOHTML);
$option_tray->addElement($html_checkbox);


You need to move it out of the if clause, for example before line 85:
$smiley_checkbox = new XoopsFormCheckBox('''dosmiley'$dosmiley);



The resultant code will be like this:
}
}
$html_checkbox = new XoopsFormCheckBox('''dohtml'$dohtml);
$html_checkbox->addOption(1_CM_DOHTML);
$option_tray->addElement($html_checkbox);
$smiley_checkbox = new XoopsFormCheckBox('''dosmiley'$dosmiley);
$smiley_checkbox->addOption(1_CM_DOSMILEY);
...


But remember, you don't need to use the default toolbar with all buttons everywhere.
You can build your own or use the 'small' one:
$wysiwyg_text_area= new XoopsFormWysiwygTextArea_MD_CONTENTC'content'$value'100%''400px','small');



66
samuels
Re: could you help me with koivi editor ?
  • 2004/12/8 16:34

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Have you commented the xoopsdhtmlarea line on code?



67
samuels
Re: HTMLArea Availability for XOOPS
  • 2004/12/7 10:13

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I'll check it. Thx for reporting.



68
samuels
Re: HTMLArea Availability for XOOPS
  • 2004/12/7 9:33

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Sorry I don't understand you. What did you lose?.

I'll release a new version of koivi on the following days with some bugs corrected and more implementation examples on docs



69
samuels
Re: could you help me with koivi editor ?
  • 2004/12/7 1:10

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


@assniok
I'll ask to phppp, I think he did the newbb wysiwyg selector.

@ClubNUKE
There is an example of news 1.2 implementation on koivi docs.



70
samuels
Re: HTMLArea Availability for XOOPS
  • 2004/12/7 0:29

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


You can add XOOPS imagemanager support to koivi editor.
If you create categories on XOOPS imagemanager admin, you can control wich groups are allowed to upload images.

Take a look on my testsite:
http://www.forjandoleyendas.com/public/testsite/modules/news/submit.php

Click on this button:
Resized Image

Select a category, and upload or attach a image already uploaded pressing this button. Resized Image

I've included instructions on koivi package to implement imagemanager integration. (just change one template)




TopTop
« 1 ... 4 5 6 (7) 8 9 10 ... 22 »



Login

Who's Online

238 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 238


more...

Donat-O-Meter

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

Latest GitHub Commits