1
Kumar
Is it safe using mxdirectory_V3_0_1_RC1_tripmon?
  • 2007/8/9 16:38

  • Kumar

  • Just popping in

  • Posts: 61

  • Since: 2005/8/8 1


Is it safe using mxdirectory_V3_0_1_RC1_tripmon on production site?

2
wtravel
Re: Is it safe using mxdirectory_V3_0_1_RC1_tripmon?

It is never recommended to use RC releases on a production web site .

3
zyspec
Re: Is it safe using mxdirectory_V3_0_1_RC1_tripmon?
  • 2007/8/10 1:09

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


In general I agree with wtravel - you should not use RC releases on production sites however in this case the RC1 release of mx-directory has been released for nearly a year and is being used on a lot of sites without any serious bug reports.

I'd recommend you look at the development site and review the bug reports and forum posts to see if there's anything there that concerns you before you use it in a production site.

4
Kumar
Re: Is it safe using mxdirectory_V3_0_1_RC1_tripmon?
  • 2007/8/10 7:23

  • Kumar

  • Just popping in

  • Posts: 61

  • Since: 2005/8/8 1


Thanks for the replies.
zyspec, can you please comment on any upcoming/stable release of mxdirectory or about current dev status.

5
zyspec
Re: Is it safe using mxdirectory_V3_0_1_RC1_tripmon?
  • 2007/8/10 13:24

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Unfortunately I can't give you any definitive information. Tripmon, the lead developer, has been extremely busy over the past 6 months. His intent was to wait for the new XOOPS release before releasing mx-directory so he could test it first. Given the delay in a new XOOPS version the new mx-directory version was being continually delayed.

I have given Tripmon about 20-30 minor changes and/or bug fixes and he was working on making the module duplicatable. I haven't even traded email/PM with him in several months so I really don't have any insight into when he might find enough time to put together another release candidate.

Sorry I don't have better news...

6
Kumar
Re: Is it safe using mxdirectory_V3_0_1_RC1_tripmon?
  • 2007/8/10 16:41

  • Kumar

  • Just popping in

  • Posts: 61

  • Since: 2005/8/8 1


Thank you verymuch for the kind information.
Hope to see new release of this great useful module soon...
However i decided to use this in a production site and interested in using TinyEditor in description and coupon description fields. Is there any solution/snippet available for this.
Thanks

7
Kumar
Re: Is it safe using mxdirectory_V3_0_1_RC1_tripmon?
  • 2007/8/11 3:56

  • Kumar

  • Just popping in

  • Posts: 61

  • Since: 2005/8/8 1


I have added the following code to functions.php (adapted from news module)
function &yellow_getWysiwygForm($caption$name$value ''$width '100%'$height '400px'$supplemental='')
{
    
$editor false;
    
$x22=false;
    
$xv=str_replace('XOOPS ','',XOOPS_VERSION);
    if(
substr($xv,2,1)=='2') {
        
$x22=true;
    }
    
$editor_configs=array();
    
$editor_configs['name'] =$name;
    
$editor_configs['value'] = $value;
    
$editor_configs['rows'] = 35;
    
$editor_configs['cols'] = 60;
    
$editor_configs['width'] = '100%';
    
$editor_configs['height'] = '400px';


    switch(
strtolower(yellow_getmoduleoption('form_options'))) {
        case 
'spaw':
            if(!
$x22) {
                if (
is_readable(XOOPS_ROOT_PATH '/class/xoopseditor/spaw/formspaw.php'))    {
                    include_once(
XOOPS_ROOT_PATH '/class/xoopseditor/spaw/formspaw.php');
                    
$editor = new XoopsFormSpaw($caption$name$value);
                }
            } else {
                
$editor = new XoopsFormEditor($caption'spaw'$editor_configs);
            }
            break;

        case 
'fck':
            if(!
$x22) {
                if ( 
is_readable(XOOPS_ROOT_PATH '/class/xoopseditor/FCKeditor/formfckeditor.php'))    {
                    include_once(
XOOPS_ROOT_PATH '/class/xoopseditor/FCKeditor/formfckeditor.php');
                    
$editor = new XoopsFormFckeditor($caption$name$value);
                }
            } else {
                
$editor = new XoopsFormEditor($caption'fckeditor'$editor_configs);
            }
            break;

        case 
'htmlarea':
            if(!
$x22) {
                if ( 
is_readable(XOOPS_ROOT_PATH '/class/xoopseditor/htmlarea/formhtmlarea.php'))    {
                    include_once(
XOOPS_ROOT_PATH '/class/xoopseditor/htmlarea/formhtmlarea.php');
                    
$editor = new XoopsFormHtmlarea($caption$name$value);
                }
            } else {
                
$editor = new XoopsFormEditor($caption'htmlarea'$editor_configs);
            }
            break;

        case 
'dhtml':
            if(!
$x22) {
                
$editor = new XoopsFormDhtmlTextArea($caption$name$value1050$supplemental);
            } else {
                
$editor = new XoopsFormEditor($caption'dhtmltextarea'$editor_configs);
            }
            break;

        case 
'textarea':
            
$editor = new XoopsFormTextArea($caption$name$value);
            break;

        case 
'tinyeditor':
            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'));
            }
            break;

        case 
'koivi':
            if(!
$x22) {
                if ( 
is_readable(XOOPS_ROOT_PATH '/class/xoopseditor/formwysiwygtextarea.php')) {
                    include_once(
XOOPS_ROOT_PATH '/class/xoopseditor/formwysiwygtextarea.php');
                    
$editor = new XoopsFormWysiwygTextArea($caption$name$value'100%''450px''');
                }
            } else {
                
$editor = new XoopsFormEditor($caption'koivi'$editor_configs);
            }
            break;
        }
        return 
$editor;
}



function 
yellow_getmoduleoption($option$repmodule='yellow_module')
{
    global 
$xoopsModuleConfig$xoopsModule;
    static 
$tbloptions= Array();
    if(
is_array($tbloptions) && array_key_exists($option,$tbloptions)) {
        return 
$tbloptions[$option];
    }

    
$retval false;
    if (isset(
$xoopsModuleConfig) && (is_object($xoopsModule) && $xoopsModule->getVar('dirname') == $repmodule && $xoopsModule->getVar('isactive'))) {
        if(isset(
$xoopsModuleConfig[$option])) {
            
$retval$xoopsModuleConfig[$option];
        }
    } else {
        
$module_handler =& xoops_gethandler('module');
        
$module =& $module_handler->getByDirname($repmodule);
        
$config_handler =& xoops_gethandler('config');
        if (
$module) {
            
$moduleConfig =& $config_handler->getConfigsByCat(0$module->getVar('mid'));
            if(isset(
$moduleConfig[$option])) {
                
$retval$moduleConfig[$option];
            }
        }
    }
    
$tbloptions[$option]=$retval;
    return 
$retval;
}


and xoops_version.php with

/**
 * Editor to use
 */
$modversion['config'][37]['name'] = 'form_options';
$modversion['config'][37]['title'] = "_MI_YELLOW_FORM_OPTIONS";
$modversion['config'][37]['description'] = '_MI_YELLOW_FORM_OPTIONS_DESC';
$modversion['config'][37]['formtype'] = 'select';
$modversion['config'][37]['valuetype'] = 'text';
$modversion['config'][37]['options'] =
 array(    
_MI_YELLOW_FORM_DHTML=>'dhtml',
            
_MI_YELLOW_FORM_COMPACT=>'textarea',
            
_MI_YELLOW_FORM_SPAW=>'spaw',
        
_MI_YELLOW_FORM_HTMLAREA=>'htmlarea',
            
_MI_YELLOW_FORM_KOIVI=>'koivi',
            
_MI_YELLOW_FORM_FCK=>'fck',
        
_MI_YELLOW_FORM_TINYEDITOR=>'tinyeditor'
            
);
$modversion['config'][37]['default'] = 'dhtml';


updated the module and changed submit.php

//$modlinkform->addElement(new XoopsFormDhtmlTextArea(_MD_DESCRIPTIONC , 'moddesc' , null , 8, 50), false);
     
$editor=yellow_getWysiwygForm(_MD_DESCRIPTIONC'moddesc'$moddesc1560'moddesc_hidden');
$modlinkform->addElement($editor,true);


The form displayed fine with the selected editor but the data was not saved to the database.

any help please

Thanks

Login

Who's Online

214 user(s) are online (113 user(s) are browsing Support Forums)


Members: 0


Guests: 214


more...

Donat-O-Meter

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

Latest GitHub Commits