xoops forums

Forum Index


Board index » All Posts (luciorota)




luciorota

Module Developer
Posted on: 2009/1/26 13:52
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#141

Re: Version 2.3.3RC

i got installer problems in the tarball
Rota Lucio
lucio.rota@gmail.com; l.rota@caritasbergamo.it
mobile: +39 338 9966321


luciorota

Module Developer
Posted on: 2008/10/16 5:33
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#142

Re: X-Center 1.09

but it runs
Rota Lucio
lucio.rota@gmail.com; l.rota@caritasbergamo.it
mobile: +39 338 9966321


luciorota

Module Developer
Posted on: 2008/10/15 20:18
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#143

Re: X-Center 1.09 -> wysiwyg (formselecteditor.php - fault)

sorry, some \ desapears... (maybe a [code] tag bug?)

CODE

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();
}

END_CODE
Rota Lucio
lucio.rota@gmail.com; l.rota@caritasbergamo.it
mobile: +39 338 9966321


luciorota

Module Developer
Posted on: 2008/10/15 20:09
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#144

Re: X-Center 1.09 -> wysiwyg (formselecteditor.php - fault)


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; l.rota@caritasbergamo.it
mobile: +39 338 9966321


luciorota

Module Developer
Posted on: 2008/9/24 10:45
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#145

Re: New module MultiEditor (beta)

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; l.rota@caritasbergamo.it
mobile: +39 338 9966321


luciorota

Module Developer
Posted on: 2008/9/23 19:45
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#146

Re: New module MultiEditor (beta)

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; l.rota@caritasbergamo.it
mobile: +39 338 9966321


luciorota

Module Developer
Posted on: 2008/9/23 19:44
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#147

Re: New module MultiEditor (beta)

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; l.rota@caritasbergamo.it
mobile: +39 338 9966321


luciorota

Module Developer
Posted on: 2008/9/23 19:43
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#148

Re: New module MultiEditor (beta)

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; l.rota@caritasbergamo.it
mobile: +39 338 9966321


luciorota

Module Developer
Posted on: 2008/9/23 14:55
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#149

New module MultiEditor (beta)

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; l.rota@caritasbergamo.it
mobile: +39 338 9966321


luciorota

Module Developer
Posted on: 2008/9/2 20:48
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#150

Re: Help Setting User Permissions to upload files using WF-Downloads

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; l.rota@caritasbergamo.it
mobile: +39 338 9966321



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