31
ghia
Re: Lets shrink XOOPS
  • 2010/6/24 17:00

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Some module features when not needed as eg making a pdf document out of News articles, can also free up some space.

News module contains two ways of making pdf's. Both directories can be deleted after the link is removed from the template.

Also no longer used themes, or superseeded theme images can be deleted. (Leave the standard default and Zetagenesis themes in place for debug.)

Many times images are uploaded in the camera quality of 10 Megapixels, for then being used as a kind of thumbnail with 150x100px.
Convert the size of these images to the required size for display before uploading them to the server (eg halve the width and heigth is one quarter of the space).
The same goes for photo albums. Make a wise decision on the maximum size needed for the viewers.
Use efficient image formats.

32
Catzwolf
Re: Lets shrink XOOPS
  • 2010/6/24 17:16

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


One of the biggest issues is the core ability to understand the needs of the module developers in general. For example: if there was the ability to create pdf on the fly straight from the core then there wouldn't be a need for loads of modules using the same packages in their own modules over and over.

I personally would like to see the Xoops Editors removed from Xoops and only have one WYSIWYG editor and the ability to add more if the user wishes.

Also, we really do not need loads of user and admin themes, lets get defaults and use them only, again, give the user the ability to update if and when required.

Also, another issue I would like to see resolved is all the redundant code, duplicated files, classes and functions. For example, Blocks uses two different classes that more or less do the exact same thing. These could easily be merged.


33
bjuti
Re: Lets shrink XOOPS
  • 2010/6/24 21:42

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


Nice point!

I'll try to make Xoops Light package as soon as 2.4.5 final go out. :)

34
zyspec
Re: Lets shrink XOOPS
  • 2010/6/25 3:45

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


I agree with Catzwolf. It would also be useful, as a module developer, if the core provided 'other' classes to help developers. Things like a XoopsRating class, a XoopsGraph class, XoopsMap class, XoopsCategory class, maybe even something like a XoopsBarCode class to allow easy generation of barcodes (both 2D and 3D) similar to XoopsCaptcha class with plugins. I'm sure there's others too.

Having 3, 4, 5 editor options is good - but they don't have to all be in the core distribution. Same with themes, make them available, but pick one for the core distribution.

35
noo-b
Re: Lets shrink XOOPS
  • 2010/7/14 22:58

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


Quote:

bjuti wrote:
Nice point!

I'll try to make Xoops Light package as soon as 2.4.5 final go out. :)



bump
I Love Xoops

36
bjuti
Re: Lets shrink XOOPS
  • 2010/7/15 8:20

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


Ok, Ok, give me some time :)

37
bjuti
Xoops 2.4.5 Light alpha
  • 2010/7/15 14:09

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


Please help me to test and give some suggestions :)

Xoops 2.4.5 Light (shrinked edition)

The main goal is to get Xoops light as possible. This is what I've found and deleted. Yes, the difference is not great, but if you take that the most of the files are small language definitions, you should be aware that uploading Xoops to the server now is much faster.

This realase is just for test and fun. In the future, I'll try to make even smaller Xoops package, excluding some default modules and WYSIWYG editors.

This package contains only htdocs directory from the original archive and it is only for expert users.

Please test this version and let me know what you think. Also, please suggest what else you think that is obsolate or not in common use.

The results of shrinking is:
Xoops 2.4.5 zip archive (only htdocs dir) - 6.560.241 bytes
Xoops 2.4.5 light zip archive - 4.823.017 bytes

Xoops 2.4.5 unpacked (only zip archive) - 13.861.410 bytes
Xoops 2.4.5 light unpacked - 10.137.698 bytes

The final result - 3.723.712 bytes less!

The Legend:

# - path
- - action
? - to be considered and tested

---------------

What is deleted:

PHPMailer

# class/mail/phpmailer/language/
deleted all languages but english, and index.html

CKEditor

# class/xoopseditor/ckeditor/ckeditor/lang/
deleted all languages but english, and files _languages.js, and _translations.txt
file languages.js should be modified because it contains preferences for many languages

# class/xoopseditor/ckeditor/language/
deleted all but english.php and index.html

There is also 3 skins for CKEditorbut I didn't delete them because I don't know the default one.

DHTMLTextArea

# class/xoopseditor/dhtmltextarea/language/
deleted all but english.php and index.html

TextArea

# class/xoopseditor/textarea/language/
deleted all but english.php and index.html

TinyMCE

# class/xoopseditor/tinymce/language/
deleted all but english.php and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/langs/
deleted all but en.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/advhr/langs/
deleted all but en_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/advimage/langs/
deleted all but en_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/advlink/langs/
deleted all but en_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/emoticons/langs/
deleted all but en_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/example/langs/
deleted all but en.jsen_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/fullpage/langs/
deleted all but en_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/media/langs/
deleted all but en_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/paste/langs/
deleted all but en_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/searchreplace/langs/
deleted all but en_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/style/langs/
deleted all but en_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/table/langs/
deleted all but en_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/template/langs/
deleted all but en_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/xhtmlxtras/langs/
deleted all but en_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/xoopscode/langs/
deleted all but en.jsen_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/xoopsemoticons/langs/
deleted all but en.jsen_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/xoopsimagemanager/langs/
deleted all but en.jsen_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/xoopsmlcontent/langs/
deleted all but en.jsen_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/plugins/xoopsquote/langs/
deleted all but en.jsen_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/themes/advanced/langs
deleted all but en.jsen_dlg.js and index.html

# class/xoopseditor/tinymce/tinymce/jscripts/themes/simple/langs
deleted all but en.js and index.html

There are 2 themes in TinyMCEAdvanced and SimpleOne should be deleted.

Protector

# xoops_lib/modules/protector/doc/
removed whole /doc directory containing pdf documentation in french "documentation_protector-3-10_french.pdf"

# xoops_lib/modules/protector/language/
removed all dirs but english and index.php in root


Download link

38
Runeher
Re: Lets shrink XOOPS
  • 2010/7/15 14:47

  • Runeher

  • Module Developer

  • Posts: 825

  • Since: 2008/1/24


Great initiative bjuti! :)

I hope many will test it!...

Login

Who's Online

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


Members: 0


Guests: 337


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