1
AlexSolo
Unable to use ANY wusiwug editor-help
  • 2008/1/29 15:19

  • AlexSolo

  • Not too shy to talk

  • Posts: 145

  • Since: 2006/3/8 1


Installed recent upgrade hoping that would fix my problem but still get the script message "A script on this page maybe busy or it may have stopped responding. You can stop script now, or you can continue to see if the script will complete". I get this trying to create or update a smartsection document. this with all installed editors but initially with tinyeditor. Tried re-installing tinyeditor, resetting modules, changing editors. Pages are not displaying after but links are created.

Also my recent upgrade has changed all my links. They are all in-line instead of each taking up a separe line in the blocks. How can I fix this? Looks like this:
page1 page2 page3

instead of:
page1
page2
page3

2
McDonald
Re: Unable to use ANY wusiwug editor-help
  • 2008/1/29 20:00

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


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:
// $Id$
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 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    
 * @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    
 * @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  tag
     */
    
function insertBreak($extra ''$class'')
    {
        
$class = ($class != '') ? " class='".htmlspecialchars($classENT_QUOTES)."'" '';
         
//Fix for $extra tag not showing
        
if ($extra) {
            
$extra "$class>$extra";
            
$this->addElement($extra);
        } else {
            
$extra "$class> ";
            
$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 "
            .$ele_name."' id='".$ele_name."' action='".$this->getAction()."' method='".$this->getMethod()."' onsubmit='return xoopsFormValidate_".$ele_name."();'".$this->getExtra().">
            
            "
.$this->getTitle()."
        "
;
        
$hidden '';
        
$class ='even';
        foreach ( 
$this->getElements() as $ele ) {
            if (!
is_object($ele)) {
                
$ret .= $ele;
            } elseif ( !
$ele->isHidden() ) {
                
$ret .= "";
                if ( (
$caption $ele->getCaption()) != '' ) {
                    
$ret .= 
                        
". ($ele->isRequired() ? "-required" "" ) . "'>".
                        
"{$caption}"
.
                        
"*"
.
                        
"
";
                }
                if ( (
$desc $ele->getDescription()) != '' ) {
                    
$ret .= "{$desc}
";
                }
                
$ret .= "$class'>".$ele->render()."n";
            } else {
                
$hidden .= $ele->render();
            }
        }
        
$ret .= "n$hiddennn";
        
$ret .= $this->renderValidationJStrue );
        return 
$ret;
    }
}
?>

This fixed for me the meshed up toolbars in tinyeditor.

3
AlexSolo
Re: Unable to use ANY wusiwug editor-help
  • 2008/1/29 21:01

  • AlexSolo

  • Not too shy to talk

  • Posts: 145

  • Since: 2006/3/8 1


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.

4
McDonald
Re: Unable to use ANY wusiwug editor-help
  • 2008/1/29 22:54

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


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:

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$value2060);
                } else {
                    
$editor = new XoopsFormTextArea($caption$name$value760);
                }
            }
        } 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$value2060);
                } else {
                    
$editor = new XoopsFormTextArea($caption$name$value760);
                }
            }
        } 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$value2060);
                } else {
                    
$editor = new XoopsFormTextArea($caption$name$value760);
                }
            }
        } 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$value2060);
                } else {
                    
$editor = new XoopsFormTextArea($caption$name$value760);
                }
            }
        } 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$value2060);
                } else {
                    
$editor = new XoopsFormTextArea($caption$name$value760);
                }
            }

        } 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$value2060);
                } else {
                    
$editor = new XoopsFormTextArea($caption$name$value760);
                }
            }
        } else {
            
$editor = new XoopsFormEditor($caption"htmlarea"$editor_configs);
        }
        break;

        default :
        if (
$dhtml) {
            
$editor = new XoopsFormDhtmlTextArea($caption$name$value2060);
        } else {
            
$editor = new XoopsFormTextArea($caption$name$value760);
        }

        break;
    }

    return 
$editor;
}

5
AlexSolo
Re: Unable to use ANY wusiwug editor-help
  • 2008/1/29 23:01

  • AlexSolo

  • Not too shy to talk

  • Posts: 145

  • Since: 2006/3/8 1


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.

6
McDonald
Re: Unable to use ANY wusiwug editor-help
  • 2008/1/29 23:45

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


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

td#mainmenu a {    
                
color:#FFFFFF;
                
displayblock;
                
margin0;
                
padding4px;}

Login

Who's Online

322 user(s) are online (249 user(s) are browsing Support Forums)


Members: 0


Guests: 322


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