Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
6 - 5 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: Unable to use ANY wusiwug editor-help
by McDonald on 2008/1/29 23:45:05

Check in the style.css of your theme if display: block; is defined for the main menu:

le="color: #000000"><?php td#mainmenu a { color:#FFFFFF; display: block; margin: 0; padding: 4px;}
Re: Unable to use ANY wusiwug editor-help
by AlexSolo on 2008/1/29 23:01:13

Just upgraded. Will let you know.
Figured out what is wrong with my theme. It is the theme itself. When choosing the default theme from the new install everything lines up perfectly. Now I have to replace blue-lagoon theme and it's a shame cause everybody loves it.
Need a theme appropriate for a swimm team.
Re: Unable to use ANY wusiwug editor-help
by McDonald on 2008/1/29 22:54:30

Consider upgrading to SmartSection 2.13 or check the function smartsection_getEditor in include/functions.php.
Probably the paths to the editors are incorrect.

The function should look like this:

le="color: #000000"><?php function smartsection_getEditor($caption, $name, $value, $dhtml = true) { $smartConfig =& smartsection_getModuleConfig(); global $xoops22; if (!isset($xoops22)) { $xoops22 = smartsection_isXoops22(); } $editor_configs=array(); $editor_configs["name"] = $name; $editor_configs["value"] = $value; $editor_configs['caption'] = $caption; $editor_configs["rows"] = 35; $editor_configs["cols"] = 60; $editor_configs["width"] = "100%"; $editor_configs["height"] = "400px"; switch ($smartConfig['use_wysiwyg']) { case 'tiny' : if (!$xoops22) { if ( is_readable(XOOPS_ROOT_PATH . "/class/xoopseditor/tinyeditor/formtinyeditortextarea.php")) { include_once(XOOPS_ROOT_PATH . "/class/xoopseditor/tinyeditor/formtinyeditortextarea.php"); $editor = new XoopsFormTinyeditorTextArea(array('caption'=>$caption, 'name'=>$name, 'value'=>$value, 'width'=>'100%', 'height'=>'400px')); } else { if ($dhtml) { $editor = new XoopsFormDhtmlTextArea($caption, $name, $value, 20, 60); } else { $editor = new XoopsFormTextArea($caption, $name, $value, 7, 60); } } } else { $editor = new XoopsFormEditor($caption, "tinyeditor", $editor_configs); } break; case 'inbetween' : if (!$xoops22) { if ( is_readable(XOOPS_ROOT_PATH . "/class/xoopseditor/inbetween/forminbetweentextarea.php")) { include_once(XOOPS_ROOT_PATH . "/class/xoopseditor/inbetween/forminbetweentextarea.php"); $editor = new XoopsFormInbetweenTextArea(array('caption'=> $caption, 'name'=>$name, 'value'=>$value, 'width'=>'100%', 'height'=>'300px'),true); } else { if ($dhtml) { $editor = new XoopsFormDhtmlTextArea($caption, $name, $value, 20, 60); } else { $editor = new XoopsFormTextArea($caption, $name, $value, 7, 60); } } } else { $editor = new XoopsFormEditor($caption, "inbetween", $editor_configs); } break; case 'fckeditor' : if (!$xoops22) { if ( is_readable(XOOPS_ROOT_PATH . "/class/xoopseditor/fckeditor/formfckeditor.php")) { include_once(XOOPS_ROOT_PATH . "/class/xoopseditor/fckeditor/formfckeditor.php"); $editor = new XoopsFormFckeditor($editor_configs,true); } else { if ($dhtml) { $editor = new XoopsFormDhtmlTextArea($caption, $name, $value, 20, 60); } else { $editor = new XoopsFormTextArea($caption, $name, $value, 7, 60); } } } else { $editor = new XoopsFormEditor($caption, "fckeditor", $editor_configs); } break; case 'koivi' : if (!$xoops22) { if ( is_readable(XOOPS_ROOT_PATH . "/class/wysiwyg/formwysiwygtextarea.php")) { include_once(XOOPS_ROOT_PATH . "/class/wysiwyg/formwysiwygtextarea.php"); $editor = new XoopsFormWysiwygTextArea($caption, $name, $value, '100%', '400px'); } else { if ($dhtml) { $editor = new XoopsFormDhtmlTextArea($caption, $name, $value, 20, 60); } else { $editor = new XoopsFormTextArea($caption, $name, $value, 7, 60); } } } else { $editor = new XoopsFormEditor($caption, "koivi", $editor_configs); } break; case "spaw": if(!$xoops22) { if (is_readable(XOOPS_ROOT_PATH . "/class/spaw/formspaw.php")) { include_once(XOOPS_ROOT_PATH . "/class/spaw/formspaw.php"); $editor = new XoopsFormSpaw($caption, $name, $value); } else { if ($dhtml) { $editor = new XoopsFormDhtmlTextArea($caption, $name, $value, 20, 60); } else { $editor = new XoopsFormTextArea($caption, $name, $value, 7, 60); } } } else { $editor = new XoopsFormEditor($caption, "spaw", $editor_configs); } break; case "htmlarea": if(!$xoops22) { if ( is_readable(XOOPS_ROOT_PATH . "/class/htmlarea/formhtmlarea.php")) { include_once(XOOPS_ROOT_PATH . "/class/htmlarea/formhtmlarea.php"); $editor = new XoopsFormHtmlarea($caption, $name, $value); } else { if ($dhtml) { $editor = new XoopsFormDhtmlTextArea($caption, $name, $value, 20, 60); } else { $editor = new XoopsFormTextArea($caption, $name, $value, 7, 60); } } } else { $editor = new XoopsFormEditor($caption, "htmlarea", $editor_configs); } break; default : if ($dhtml) { $editor = new XoopsFormDhtmlTextArea($caption, $name, $value, 20, 60); } else { $editor = new XoopsFormTextArea($caption, $name, $value, 7, 60); } break; } return $editor; }
Re: Unable to use ANY wusiwug editor-help
by AlexSolo on 2008/1/29 21:01:56

I'm using 2.0.18. Can't get any form editor to work except tinyeditor. I am using smartsection 2.11 to post articles.

any idea why my blocks became so wonky? Nothing in list form. All jumbled together.
Re: Unable to use ANY wusiwug editor-help
by McDonald on 2008/1/29 20:00:30

What XOOPS version?
Do you have Framework installed (not necessary for tinyeditor)?

If you're using 2.0.18 wait until 2.0.18.1 will be released (probably this weekend) or read the comments here.

One thing that you might try is replacing class/xoopsform/themeform.php by this one:
<?php // $Id$ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // // <https://xoops.org/> // // ------------------------------------------------------------------------ // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation; either version 2 of the License, or // // (at your option) any later version. // // // // You may not change or alter any portion of this comment or credits // // of supporting developers from this source code or any supporting // // source code which is considered copyrighted (c) material of the // // original comment or credit authors. // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // // Author: Kazumi Ono (AKA onokazu) // // URL: http://www.myweb.ne.jp/, https://xoops.org/, http://www.xoopscube.jp/ // // Project: The XOOPS Project // // ------------------------------------------------------------------------- // if (!defined('XOOPS_ROOT_PATH')) { die("XOOPS root path not defined"); } /** * * * @package kernel * @subpackage form * * @author Kazumi Ono <onokazu@xoops.org> * @copyright copyright (c) 2000-2003 XOOPS.org */ /** * base class */ include_once XOOPS_ROOT_PATH."/class/xoopsform/form.php"; /** * Form that will output as a theme-enabled HTML table * * Also adds JavaScript to validate required fields * * @author Kazumi Ono <onokazu@xoops.org> * @copyright copyright (c) 2000-2003 XOOPS.org * * @package kernel * @subpackage form */ class XoopsThemeForm extends XoopsForm { /** * Insert an empty row in the table to serve as a seperator. * * @param string $extra HTML to be displayed in the empty row. * @param string $class CSS class name for <td> tag */ function insertBreak($extra = '', $class= '') { $class = ($class != '') ? " class='".htmlspecialchars($class, ENT_QUOTES)."'" : ''; //Fix for $extra tag not showing if ($extra) { $extra = "<tr><td colspan='2' $class>$extra</td></tr>"; $this->addElement($extra); } else { $extra = "<tr><td colspan='2' $class>&nbsp;</td></tr>"; $this->addElement($extra); } } /** * create HTML to output the form as a theme-enabled table with validation. * * @return string */ function render() { $ele_name = $this->getName(); $ret = " <form name='".$ele_name."' id='".$ele_name."' action='".$this->getAction()."' method='".$this->getMethod()."' onsubmit='return xoopsFormValidate_".$ele_name."();'".$this->getExtra()."> <table width='100%' class='outer' cellspacing='1'> <tr><th colspan='2'>".$this->getTitle()."</th></tr> "; $hidden = ''; $class ='even'; foreach ( $this->getElements() as $ele ) { if (!is_object($ele)) { $ret .= $ele; } elseif ( !$ele->isHidden() ) { $ret .= "<tr valign='top' align='left'><td class='head'>"; if ( ($caption = $ele->getCaption()) != '' ) { $ret .= "<div class='xoops-form-element-caption" . ($ele->isRequired() ? "-required" : "" ) . "'>". "<span class='caption-text'>{$caption}</span>". "<span class='caption-marker'>*</span>". "</div>"; } if ( ($desc = $ele->getDescription()) != '' ) { $ret .= "<div class='xoops-form-element-help'>{$desc}</div>"; } $ret .= "</td><td class='$class'>".$ele->render()."</td></tr>n"; } else { $hidden .= $ele->render(); } } $ret .= "</table>n$hiddenn</form>n"; $ret .= $this->renderValidationJS( true ); return $ret; } } ?>

This fixed for me the meshed up toolbars in tinyeditor.

Who's Online

177 user(s) are online (144 user(s) are browsing Support Forums)


Members: 0


Guests: 177


more...

Donat-O-Meter

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

Latest GitHub Commits