81
ALOOoo
Re: " Car Garage" Module
  • 2007/9/22 14:16

  • ALOOoo

  • Just popping in

  • Posts: 41

  • Since: 2004/10/9


Greetings..

Sorry for being late to join you all..

I have just noticed this thread and the idea is great.

A dear friend of mine told me that xgarage module is the same module used in this web site

http://www.customandstock.com/modules/cars/view.php?id=23

Well, I run an e-magazine ( www.SaudiGear.com ) and I have been dreaming to provide my readers such librity to interact with the magazine and provide thier vihecle information and quarter-mile times just like this web site;

http://www.dragtimes.com/Hudson-Super-Essex-Timeslip-6546.html

Dose this module provide all the above??

I tried to joinhttp://www.calibernation.com/ but its seems to be closed.

I'll copy thise add to xgarage.org

Thanks for making this come true.

82
script_fu
Re: " Car Garage" Module

XGarage Support


http://dev.xoops.org/modules/xfmod/project/?xgarage
http://sourceforge.net/projects/xgarage
http://code.google.com/p/xgarage/


http://www.xgarage.org/
http://www.xoopsgarage.org/
http://www.xoopsgarage.net/
http://www.xoopsgarage.com/

That about sums it up afaik atm.

83
Northern
Re: " Car Garage" Module
  • 2007/9/23 18:55

  • Northern

  • Just can't stay away

  • Posts: 420

  • Since: 2004/12/26


Quote:


http://www.customandstock.com/modules/cars/view.php?id=23



Not yet but maybe in a future version, will be close to it, or even surpassing it.
At this point it time we needed a module and not a hack, so if a site was to be updated it wouldnt interfear with the prosess of the upgrade. and if the xgarage mod was to be updated it could with out interfearing with the site.
so it was placed as a module instead of a hack.


Quote:

Well, I run an e-magazine ( www.SaudiGear.com ) and I have been dreaming to provide my readers such librity to interact with the magazine and provide thier vihecle information and quarter-mile times just like this web site;

http://www.dragtimes.com/Hudson-Super-Essex-Timeslip-6546.html


Many prople have dreamed of a module like xgarage. many have made attemps at it, some have made it work and some gave up. but the few that attemped it have much to offer.

As for the quartermile,r/t's ect. this version cerrently has these, but it might not on the next version.

Quote:

I tried to joinhttp://www.calibernation.com/ but its seems to be closed.

Thanks for making this come true.


Cerrently im upgrading and changing the look and feal of the site to assist users on there online hunts.
Ill have Caliber Nation back on line shortly.

Your most welcome.

Marc.

84
ALOOoo
Re: " Car Garage" Module
  • 2007/9/24 1:28

  • ALOOoo

  • Just popping in

  • Posts: 41

  • Since: 2004/10/9


Thanks Billy and Marc for the kind replies.

Thanks again and again.

Warm Regards

85
Anonymous
WYSIWYG Editors implementation in garage module
  • 2007/9/28 17:07

  • Anonymous

  • Posts: 0

  • Since:


Hi,

Do you like to add WYSIWYG editors to garage module ?

You need to modifiy 4 files:

1. Edit xoops_version.php and add before ?> :
// Use WYSIWYG Editors? 

$modversion['config'][19]['name'] = 'form_options';
$modversion['config'][19]['title'] = '_MI_EDITOR';
$modversion['config'][19]['description'] = '_MI_LIST_EDITORS';
$modversion['config'][19]['formtype'] = 'select';
$modversion['config'][19]['valuetype'] = 'text';
$modversion['config'][19]['default'] = 'dhtml';
$modversion['config'][19]['options'] = array( 'DHTML editor' => 'dhtml',
                                              
'Spaw editor' => 'spaw',
                                              
'HtmlArea Editor' => 'htmlarea',
                                              
'Koivi editor' => 'koivi',
                                              
'FCK Editor' => 'fckeditor',
                                              
'Inbetween' => 'inbetween',
                                              
'TinyEditor' => 'tiny');


2. Edit modules/garage/include/functions.php and add before ?> :
function getEditor($caption$name$value ""$width '100%'$height ='400px'$supplemental=''$dhtml true){

    global 
$xoopsModuleConfig;
$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($xoopsModuleConfig['form_options'])){

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


3. Edit modules/garage/garage.php and replace any new XoopsFormDhtmlTextArea with getEditor .

4. Add the following lines to language/english/modinfo.php:
define("_MI_EDITOR","Editor to use:");
define("_MI_LIST_EDITORS","Select the editor to use.");


5. Update garage module.


86
script_fu
Re: WYSIWYG Editors implementation in garage module

Hi Mowaffak,

Thank you for the code donation! Do you have a working example of this that we may download? Very nice of you to spend some time on the module!


Also
php 5.2.4 broke the garage module do you have any ideas on how to repair it?

Thanks in advance for your time...

87
Anonymous
Re: " Car Garage" Module
  • 2007/9/28 18:41

  • Anonymous

  • Posts: 0

  • Since:


Hi Script_fu,

Sorry I don't have online demo now but you can d/l WYSIWYG patch from here:
http://www.arabxoops.com/uploads/garage_wysiwyg_patch.zip

Just overwrite then update garage module

Also I registed at xgarage.com but I didn't receive activation link :(

88
script_fu
Re: " Car Garage" Module

I will apply your patch tonight to garage_beta2 for testing! I also have activated your account on xoops.

I am no longer able to test garage myself on my server due to php 5.2.4

However I will be able to test this locally so i may give you so feedback on your work.

thank you Mowaffak

89
Northern
Re: " Car Garage" Module
  • 2007/9/29 5:49

  • Northern

  • Just can't stay away

  • Posts: 420

  • Since: 2004/12/26


@ Billy

Check your XG PM's
I sent you a link to download the updated module
it should work with php 5.2.4 But its unknow till you test it, lol

Also added Mowaffak's add-ons for the WYSIWYG.

90
script_fu
Re: " Car Garage" Module

Yep I got the download. I still have another php 5.2.4 error. I think this one is in the XOOPS code this time.

Warning: xoopsOption[template_main] should be defined before including header.php in file /footer.php line 68

Login

Who's Online

134 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 134


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