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 "<br /><div style='text-align: left;'><b>" ._AM_SMILIE."</b><br />";
        //echo "<table><tr><td align='top' valign='left'>";
        //echo "<div><script type='text/javascript'>
        //<!--
        //    function showbutton() {
        //           document.all.".$textareaname."_mysmile.src = '".$xoopsConfig['xoops_url']."/$smiliepath/' + document.all.".$textareaname."_smiley.value;
        //    }
        //// -->
        //</script>";
        //echo "<select name='".$textareaname."_smiley' onchange='showbutton();'>";
         //foreach($smilie_array as $file){
         //    echo "<option value='".$file."' $opt_selected>".$file."</option>";
        //}
        //echo "</select></td><td align='top' valign='left'>";
        //echo "<img name='".$textareaname."_mysmile' src='".$xoopsConfig['xoops_url']."/$smiliepath/$file' style='cursor:hand;' border='0' onclick="doFormat('InsertImage', document.all.".$textareaname."_mysmile.src);" />";
        //echo "</td></tr></table>
        //<script type='text/javascript'>
        //    showbutton();
        //</script>";

        ////Start of article images
        //$graphpath = $wfsConfig['graphicspath'];
        //$graph_array =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/".$graphpath);
        //echo "<br><div style='text-align: left;'><b>" ._AM_GRAPHIC."</b><br />";
        //echo "<table><tr><td align='top' valign='left'>";
        //echo "<script type='text/javascript'>
        //<!--
        //    function showbutton2() {
        //        document.all.".$textareaname."_mygraph.src = '".$xoopsConfig['xoops_url']."/$graphpath/' + document.all.".$textareaname."_graph.value;
        //    }
        //// -->
        //</script>";
        //echo "<select name='".$textareaname."_graph' onchange='showbutton2();'>";
        //foreach($graph_array as $file2){
         //    echo "<option value='".$file2."' $opt_selected>".$file2."</option>";
        //}
        //echo "</select></td><td align='top' valign='left'>";
        //echo "<img name='".$textareaname."_mygraph' src='".$xoopsConfig['xoops_url']."/$graphpath/$file2' style='cursor:hand;' border='0' onclick="doFormat('InsertImage', document.all.".$textareaname."_mygraph.src);" />";
        //echo "</td></tr></table>
        //<script type='text/javascript'>
        //    showbutton2();
        //</script>";

        
}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

234 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 234


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