1
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?
le="color: #000000"><?php 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;
le="color: #000000"><?php //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{