1
FeraTechInc
WYSIWYG SmartSection hack or alternative?

Using XOOPS 2.0.17 and the xoopseditor pack in /class/xoopseditor

I have successfully gotten the AMS and WiwiMod modules to use Koivi Editors.

However, SmartSection refuses to be compliant. I have even edited /include/functions.php to match the current editor directory.

The editor then shows up but does no function in the least.

2
Anonymous
Re: WYSIWYG SmartSection hack or alternative?
  • 2008/2/8 13:10

  • Anonymous

  • Posts: 0

  • Since:


It's easier than it first looks - see this FAQ.

I have Koivi working with XOOPS 2.0.18 and SmartSection 2.13 in this way.

It's because the SmartSection, News and other modules look for the wysiwyg editors in xoops_root/class/ whereas wiwimod, CBB and others use the standard xoopseditor install directories.

3
BlueStocking
Re: WYSIWYG SmartSection hack or alternative?

FYI: post...

SmartSection
Talk:SmartSection

In order to link to wiki section
1) open double braces [ [ no spaces
2) Talk:SmartSection or SmartSection
3) closed double braces ] ] no spaces

That is all there is to it.

For those who might be interested in helping link appropiate module to its own discussion pages.

EXAMPLE: see ModuleRepository_S for s list needing linked.

Thanking you in advance...
BlueStocking - a wiki worker.
_____________________
NOTE: whenever you list a module or speak about about a module in your post please enclose it in double braces so it can be tied back to the wiki.
hhttps://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG

4
FeraTechInc
Re: WYSIWYG SmartSection hack or alternative?

The link to the Koivi editor does not work. dev.xoops.org is currently down.

So it does sound very easy but half of the XOOPS resources are eigther down or do not work.

dev.xoops.org, I don't even remember when it was up

XoopAddons has been hacked and is also down.

5
Anonymous
Re: WYSIWYG SmartSection hack or alternative?
  • 2008/2/8 19:15

  • Anonymous

  • Posts: 0

  • Since:


Quote:
FeraTechInc wrote:

The link to the Koivi editor does not work.


Send me a PM with your email address and I'll send Koivi to you.

I like Koivi because it uses the XOOPS image-manager. Haven't tried to get SS to work with the other editors.

6
BlueStocking
Re: WYSIWYG SmartSection hack or alternative?

Just curious JAVesey,

Can you upload it to the Module Repository now?

FYI: post...

Koivi
Talk:Koivi

In order to link to wiki section
1) open double braces [ [ no spaces
2) Talk:Koivi or Koivi
3) closed double braces ] ] no spaces

That is all there is to it.

For those who might be interested in helping link appropiate module to its own discussion pages.
hhttps://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG

7
Anonymous
Re: WYSIWYG SmartSection hack or alternative?
  • 2008/2/8 19:40

  • Anonymous

  • Posts: 0

  • Since:


Quote:
BlueStocking wrote:
Just curious JAVesey,


Why have I been added to the wiki without my being asked? Please remove me.

Quote:
BlueStocking wrote:
Can you upload it to the Module Repository now?


I'll give it a go now.....

Quote:
BlueStocking wrote:
FYI: post...

Koivi
Talk:Koivi

In order to link to wiki section
1) open double braces [ [ no spaces
2) Talk:Koivi or Koivi
3) closed double braces ] ] no spaces

That is all there is to it.

For those who might be interested in helping link appropiate module to its own discussion pages.


Exactly the "thread pollution" that I was referring to. Please stop it.

8
Anonymous
Re: WYSIWYG SmartSection hack or alternative?
  • 2008/2/8 19:47

  • Anonymous

  • Posts: 0

  • Since:


Quote:
JAVesey wrote:

I'll give it a go now.....


Sorry, can't do it

It sits in .zip file on my HDD rather than on a webserver, hence the offer to email it to those who ask.

I don't really want to host it myself - can anyone help?

Likewise, would anyone like to host xcgallery 2.0.3 (inc my very minor keyword hack)?

9
BlueStocking
Re: WYSIWYG SmartSection hack or alternative?

Special:Listusers

Irmtfan, or phppp We need you to get the file upload activated so this and other zip files can be uploaded to the Wiki. (also need image ability for wiki pages)

Thanking you in advance...
BlueStocking

EDIT NOTE: pm'd D.J.
hhttps://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG

10
McDonald
Re: WYSIWYG SmartSection hack or alternative?
  • 2008/2/8 22:41

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Check if the paths for the wysiwyg editors are correct in /include/functions.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$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;
}


Note that the path to Koivi here is /class/wysiwyg/ you might want to change this to /class/xoopseditor/

If you want to use a good editor you should try TinyEditor (demo) which is the Xoops-edition of TinyMCE. TinyEditor supports the Xoops-ImageManager and others by means of plugins. The toolbars can be defined per user group.

Don't use the Spaw editor because of security problems.

Login

Who's Online

331 user(s) are online (256 user(s) are browsing Support Forums)


Members: 0


Guests: 331


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