151
luciorota
Re: X-Center 1.09 -> wysiwyg (formselecteditor.php - fault)
  • 2008/10/15 20:09

  • luciorota

  • Module Developer

  • Posts: 211

  • Since: 2007/4/20



hi everybody,
Quote:

wishcraft wrote:
Hi all how are you, this is a core issue not an issue with the application, the formselecteditor.php does not have a argument for the extra but also has a fault.. the remmed out lines are in error

To Fix this in the core here is how you do it, see it is using an none standardised form of Java which ensures you can have no use in the western world or anywhere else..

From line 51 of XOOPS_ROOT_PATH/class/xoopsform/formselecteditor.php you will have to alter it like so..

function render()
    {
        
xoops_load('XoopsEditorHandler');
        
$editor_handler XoopsEditorHandler::getInstance();
        
$editor_handler->allowed_editors $this->allowed_editors;
        
$option_select = new XoopsFormSelect(""$this->name$this->value);

##[ Incorrect Javascript ]#################################################
//        $extra = 'onchange="if(this.options[this.selectedIndex].value.length > 0 ){
//            window.document.forms.'.$this->form->getName().'.submit();
//            }"';
###########################################################################

// Here is the universal version of this it will work on any system as the location.href is the best method for backward compatibility..

        
$extra 'onchange='location.href="'.XOOPS_URL.$_SERVER['PHP_SELF']."?";
        foreach (
$_GET as $key => $value)
            if (
$key!=$this->name)
                
$extra .= $key."=".$value."&";
        
$extra .= $this->name."="+this.options[this.selectedIndex].value'";

/// End of admendment.
            
        
$option_select->setExtra($extra);
        
$option_select->addOptionArray($editor_handler->getList($this->nohtml));
        
        
$this->addElement($option_select);
        
        return 
parent::render();
    }


there are some errors with the quotes in the code... I try this version, and it runs

function render()
    {
        
xoops_load('XoopsEditorHandler');
        
$editor_handler XoopsEditorHandler::getInstance();
        
$editor_handler->allowed_editors $this->allowed_editors;
        
$option_select = new XoopsFormSelect(""$this->name$this->value);

##[ Incorrect Javascript ]#################################################
//        $extra = 'onchange="if(this.options[this.selectedIndex].value.length > 0 ){
//            window.document.forms.'.$this->form->getName().'.submit();
//            }"';
###########################################################################

// Here is the universal version of this it will work on any system as the location.href is the best method for backward compatibility..

        
$extra 'onchange='location.href="'.$_SERVER['PHP_SELF'].'?';

        foreach (
$_GET as $key => $value)
            if (
$key!=$this->name)
                
$extra .= $key.'='.$value.'&';
                
$extra .= $this->name.'="+this.options[this.selectedIndex].value+"';
                
$extra .= '"'';

/// End of admendment.
            
        
$option_select->setExtra($extra);
        
$option_select->addOptionArray($editor_handler->getList($this->nohtml));
        
        
$this->addElement($option_select);
        
        return 
parent::render();
    }


but I don't like this solution because, in this way, I loose all just inserted values...

someone find a better solutions?
Rota Lucio
lucio.rota@gmail.com;
mobile: +39 338 9966321



152
luciorota
Re: New module MultiEditor (beta)
  • 2008/9/24 10:45

  • luciorota

  • Module Developer

  • Posts: 211

  • Since: 2007/4/20


Resized Image

Fixed some errors

- Added a NEW v230 style logo
- Fixed MySQL syntax error
- Added some minor checks

Download module: http://luciorota.altervista.org/xoops ... ds/visit.php?cid=2&lid=10

More info (sorry, italian):
http://luciorota.altervista.org/xoops ... wnloads/viewcat.php?cid=2
Rota Lucio
lucio.rota@gmail.com;
mobile: +39 338 9966321



153
luciorota
Re: New module MultiEditor (beta)
  • 2008/9/23 19:45

  • luciorota

  • Module Developer

  • Posts: 211

  • Since: 2007/4/20


Quote:

by Mamba on 2008/9/23 20:53:43

Sounds very exciting!!! I'll have to install it!!!

If your module works with XOOPS 2.3, please consider changing your logo to the blue one, as described here.

i'll do asap!!!!!!!!!
Rota Lucio
lucio.rota@gmail.com;
mobile: +39 338 9966321



154
luciorota
Re: New module MultiEditor (beta)
  • 2008/9/23 19:44

  • luciorota

  • Module Developer

  • Posts: 211

  • Since: 2007/4/20


Quote:

dslchart wrote:
nice idea, but i become an

Quote:
Errore 500 :(


if i visit your site.


try this link (direct download)
http://luciorota.altervista.org/xoops ... ds/visit.php?cid=2&lid=10
Rota Lucio
lucio.rota@gmail.com;
mobile: +39 338 9966321



155
luciorota
Re: New module MultiEditor (beta)
  • 2008/9/23 19:43

  • luciorota

  • Module Developer

  • Posts: 211

  • Since: 2007/4/20


Quote:

kerkyra wrote:
hey mate,nice idea for a module!! i tried to install it in 2.3 php 5 and it gives me errors in MySQL syntax! tried to find out whats going on but no luck...:(


which MySQL error and when?
your MySQL version?
thanks to test my module... it's still a beta
Rota Lucio
lucio.rota@gmail.com;
mobile: +39 338 9966321



156
luciorota
New module MultiEditor (beta)
  • 2008/9/23 14:55

  • luciorota

  • Module Developer

  • Posts: 211

  • Since: 2007/4/20


With this module administrators can choose, for any module and group, the editor...

This is my first module!!!

Xoops from v2.0.15 to v2.0.18.2 compatible
Xoops v2.3.0 compatible

More info and download here:
http://luciorota.altervista.org/xoops ... nglefile.php?cid=2&lid=10
Rota Lucio
lucio.rota@gmail.com;
mobile: +39 338 9966321



157
luciorota
Re: Help Setting User Permissions to upload files using WF-Downloads
  • 2008/9/2 20:48

  • luciorota

  • Module Developer

  • Posts: 211

  • Since: 2007/4/20


If you need upload permission by category, look here!

http://luciorota.altervista.org/xoops ... ?cid=2&lid=9&lang=english

A very small hack... but useful, at least for me
Rota Lucio
lucio.rota@gmail.com;
mobile: +39 338 9966321



158
luciorota
Re: Background Sound Hack [bgsound]...[/bgsound]
  • 2008/6/19 20:15

  • luciorota

  • Module Developer

  • Posts: 211

  • Since: 2007/4/20


a wish for the next XOOPS version:
customizable XOOPS tags, by users and by modules too...
it will be a very useful function
Rota Lucio
lucio.rota@gmail.com;
mobile: +39 338 9966321



159
luciorota
Re: Integrating "My Maps" from google.com
  • 2007/6/7 7:49

  • luciorota

  • Module Developer

  • Posts: 211

  • Since: 2007/4/20


Rota Lucio
lucio.rota@gmail.com;
mobile: +39 338 9966321



160
luciorota
Re: Addresses 1.7 + Google Maps Hack
  • 2007/5/9 5:08

  • luciorota

  • Module Developer

  • Posts: 211

  • Since: 2007/4/20


This hack is now hosted on Xoopsitalia here:
http://www.xoopsitalia.org/modules/PDdownloads/viewcat.php?cid=38

Thanks! - Grazie!
Rota Lucio
lucio.rota@gmail.com;
mobile: +39 338 9966321




TopTop
« 1 ... 13 14 15 (16) 17 »



Login

Username:
Password:

Lost Password? Register now!

Who's Online

65 user(s) are online (43 user(s) are browsing Support Forums)


Members: 1


Guests: 64


Mamba,

more...

Donat-O-Meter

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

Latest GitHub Commits