1
jimbofoxman
KOIVI + XFSECTION

I followed the install file and got it to appear on the CATEGORY MANAGEMENT page, but now how do I go about getting it to appear when I create new artciles or edit articles?

I'm not a PHP guy by any stretch, so I don't know exactly where I am going.

Here is what it told me to do, so I did. But the last line says to COMMENT the following lines since you arrive to }else{. So I take that to mean ever line gets commented untl the ELSE line. RIGHT?

Comment line 1190:
//if (!strstr($HTTP_SERVER_VARS["HTTP_USER_AGENT"], "MSIE")) $wfsConfig['wysiwygeditor'] = '0';

After line 1192 add the koivi wysiwyg area:
if (
$wfsConfig['wysiwygeditor'] == '1') {

include 
XOOPS_ROOT_PATH "/class/xoopsformloader.php";
include 
XOOPS_ROOT_PATH "/class/wysiwyg/formwysiwygtextarea.php";

$wysiwyg_text_area= new XoopsFormWysiwygTextArea''"maintext"$GLOBALS['maintext'], '100%''400px','');
echo 
$wysiwyg_text_area->render();

Comment the following lines since you arrive to the "}else{" clause.


So this is what I got now;

//if (!strstr($HTTP_SERVER_VARS["HTTP_USER_AGENT"], "MSIE")) $wfsConfig['wysiwygeditor'] = '0';

        
if ($wfsConfig['wysiwygeditor'] == '1') {
        include 
XOOPS_ROOT_PATH "/class/xoopsformloader.php";
        include 
XOOPS_ROOT_PATH "/class/wysiwyg/formwysiwygtextarea.php";

        
$wysiwyg_text_area= new XoopsFormWysiwygTextArea''"maintext"$GLOBALS['maintext'], '100%''400px','');
        echo 
$wysiwyg_text_area->render();  
        
//html_editor('maintext');
        //$smiliepath = $wfsConfig['smiliepath'];
        //$smilie_array = XoopsLists::getimgListAsArray(XOOPS_ROOT_PATH."/".$smiliepath);

        //echo "" ._AM_SMILIE."";
        //echo "";
        //echo "

        //
        //";
        //echo "";
         //foreach($smilie_array as $file){
         //    echo "".$file."";
        //}
        //echo "";
        //echo "";
        //echo "

        //
        //    showbutton();
        //";

        ////Start of article images
        //$graphpath = $wfsConfig['graphicspath'];
        //$graph_array =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/".$graphpath);
        //echo "
" ._AM_GRAPHIC."";
        //echo "";
        //echo "
        //
        //";
        //echo "";
        //foreach($graph_array as $file2){
         //    echo "".$file2."";
        //}
        //echo "";
        //echo "";
        //echo "

        //
        //    showbutton2();
        //";

        
}else{

2
jimbofoxman
Re: KOIVI + XFSECTION

Anyone? I can get this to work in the CATEGORY form but not CREATE ARTCILE form.

3
jimbofoxman
Re: KOIVI + XFSECTION

I hate to be a pest, but I need to have a better WYSIWYG editor for XF Section so I can use XOOPS like I want to. I want to have several people be able to add articles, edit article, etc.


Anyone? Hello? Bueller?


(again, not wanting to be a pest)

4
Peekay
Re: KOIVI + XFSECTION
  • 2005/6/29 17:41

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Sorry I can't help with XF-Section (I never understood what 'upper compatible module' meant!) but if you have no luck, I can recommend taking a look at the new SmartSection

It has permissions, file attachments, custom article image upload, sub-categories, article teasers and some nice blocks. Plus the Koivi editor works simply by adding the Koivi wysiwyg folder to the XOOPS 'class' folder and then checking a radio button in SmartSection admin. No files to edit.

SmartSection uses a reduced Koivi button set, but you can access all features by right-clicking. I have been given a hack to display all the buttons but haven't tried it yet.

News 1.13 also loads Koivi editor via a selection in the News admin provided wysiwyg folder is in place. News uses the full Koivi button set.
A thread is for life. Not just for Christmas.

5
jimbofoxman
Re: KOIVI + XFSECTION

Thanks Peekay,

That may just be the ticket. Let me know how that Koivi hack works out!

THANKS

Login

Who's Online

363 user(s) are online (313 user(s) are browsing Support Forums)


Members: 0


Guests: 363


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