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?
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 " | "; //echo ""; //echo " |
//";
////Start of article images
//$graphpath = $wfsConfig['graphicspath'];
//$graph_array =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/".$graphpath);
//echo "
" ._AM_GRAPHIC."";
//echo "
"; //echo ""; //echo " | "; //echo ""; //echo " |
//";
}else{