6311
goffy
Re: i'm working an a standard module skeleton
  • 2014/11/18 22:48

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


strange, fresh installed tdmdownload modules, something gone wrong, I uploaded the zip via ftp, now it works, hopefully



6312
Mamba
Re: i'm working an a standard module skeleton
  • 2014/11/18 21:14

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Quote:
My latest project is http://mtbrace.eu, a website for handling mountainbike competitions with 23 tables inside (the module you can download from http://wedega.com/modules/TDMDownloads/singlefile.php?cid=1&lid=1, but pay attention, it's only a first version).

Very nice work on the Website!!! Congratulations!

Unfortunately, the download doesn't work...

Quote:
In my opinion the code and structure should stay clear and readable for everybody, like it is with TDMCreate, because not everybody made an university degree in programming, in order to keep xoops attractive for all persons, not only for experts.

The goal of XOOPS was always to keep things simple, and I hope, we can keep it that way!

@ Eduardo:
Quote:
I've recently wrote an article with a brief explanation about MVC in Common Utilities but it is in Spanish.

I have posted it in the Tutorials section. The English translation is done by Google, and I'll fix it later (I have to go to a meeting right now)
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



6313
goffy
Re: i'm working an a standard module skeleton
  • 2014/11/18 19:59

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


Hi everybody

I only understand partially, what you are discussing (and the code of vide module), because I learned php, css and so on only by myself.
I made in the past several modules like e.g. xNewsletter.
My latest project is http://mtbrace.eu, a website for handling mountainbike competitions with 23 tables inside (the module you can download from http://wedega.com/modules/TDMDownloads/singlefile.php?cid=1&lid=1, but pay attention, it's only a first version).

All my project I have started with TDMCreate, because this module gave me the basic structure for the module and I had "only" to add the new functionalities.
In the beginning I didn't really understand the system with classes,..., but it was no problem, the basic system was available.
Maybe my modules are not perfect coded, maybe they are not cloneable, but they are working.

In my opinion the code and structure should stay clear and readable for everybody, like it is with TDMCreate, because not everybody made an university degree in programming, in order to keep xoops attractive for all persons, not only for experts.





6314
bitcero
Re: i'm working an a standard module skeleton
  • 2014/11/18 18:51

  • bitcero

  • Quite a regular

  • Posts: 318

  • Since: 2005/11/26


Hi everybody.

For several recent projects, I've been using the MVC approach included in rmcommon. The biggest project where I've applied this was an ERP created entirely in XOOPS, that consists of several modules. All those modules were created from scratch, using rmcommon and MVC. The main idea is that, with this approach, the required time to create a module is smaller that traditional way. Also, by using AJAX, is possible to bring a better experience to users.

I've recently wrote an article with a brief explanation about MVC in Common Utilities but it is in Spanish.

I think that this will be a very important discussion if the result bring to XOOPS modules a new life.



6315
black_beard
Re: i'm working an a standard module skeleton

Hi,
The use of a dynamic system (class, variable, function) above allows me to quickly create a module in the shortest lines.
In terms of resources, the module is not very greedy (except some parts which demand to be optimized). The biggest module I wrote for a client, contains 42 MySQL tables, it is a module of ERP for automotive dealerships. And in addition I can easily clone the module. The only real job is to change the language files, the file instaalation MySQL and add the files to add the necessary options.
I'll try to explain how the basic module:
in the file for the web page called:
"$entree" table contains all the fields for the page.
"$class" table contains all the class to load
 
In the "class" matching file:
$table_item, MySQL columns


The idea is:
- To create a fully clonable module (without further manipulation as copy / paste / rename the module directory)
- Creation of "class" generic for basic functions (read / write BDD form, security ...)
- Quick Add feature (by copy / paste) so each function, class must be completely modular.
- Cache system for dynamic class already generated.
- Quickly Adding fields in a file.
- The page loads only what it needs for its operation.

I am to create simple modules, secure, requires very little hardware resources, fast, functional and easy to modify (even for a novice)

If I understand, you want to use smarty to generate (or simulate) a module.
I haven't explored this track, I don't know if it's a good idea.
We don't have the same approach, I try to keep a (speed RAM, PIC, size,) hardware and ergonomic approach to the user. To estimate a module, I look at the lines of code (graphics rendering happens at the end)
It's good to have multiple approaches.



6316
Mamba
Re: i'm working an a standard module skeleton
  • 2014/11/17 23:20

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Quote:
ps: congratulations for the Wideimage Framework, we need a common image processing framework in Xoops core, and your work could be what we need.

In XOOPS 2.6.0 we are using Zebra_Image, so I was planning to convert the modules I'm working on and which currently are using phpThumbnail to Zebra_Image. I've already done it here for the Pedigree module.
Source code of Zebra_Image is on GitHub

The nice thing is that is a compact (one-file only), lightweight library, and object-oriented:
Quote:
Provides methods for performing several types of image manipulation operations. It doesn’t require any external libraries other than the GD2 extension (with which PHP usually comes pre-compiled with).

With this library you can resize, flip, rotate, crop and sharpen images. All sort of filters can also be applied to images: negate, grayscale, brightness, contrast, colorize, edgedetect, emboss, gaussian blur, selective blur, mean removal, smooth and pixelate; multiple filters can be applied at once for creating custom filters; It supports loading and saving images in the GIF, JPEG and PNG formats and preserves transparency of GIF, PNG8 and PNG24 images.

If you're missing something from the functionality there, please let us know.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



6317
luciorota
Re: i'm working an a standard module skeleton
  • 2014/11/17 21:44

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


Cedrik, i'll study your work, it's an interesting approach to the problem.
I think that using variable variables could decrease performances and i suppose (but i'm not sure) that it could be a problem when you would create a module with more than 1 item...

I would like to create a skeleton module as template and use Smarty engine to generate all php code i need.

ie:
$<{$item1}>Objs = $<{$module_name}>->getHandler('<{$item_handler_name1}>')->getObjects();
$<{
$item2}>Objs = $<{$module_name}>->getHandler('<{$item_handler_name2}>')->getObjects();


with

$item1 'flower';
$item_handler_name1 'flowers';
$item2 'plant';
$item_handler_name2 'plants';
$module_name 'vegetables';


will be rendered as

$flowerObjs $vegetables->getHandler('flowers')->getObjects();
$plantObjs $vegetables->getHandler('plants')->getObjects();


It is a different approach... do not you think?
Xoops and Smarty have all structures and tools to do this.

ps: congratulations for the Wideimage Framework, we need a common image processing framework in Xoops core, and your work could be what we need.



6318
Mamba
Re: Pedigree module uploading pictures issue
  • 2014/11/17 15:32

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Quote:
I can give you the site url if you need it?

That would be great! You can publish it here for all to see, or you can send me a Private message...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



6319
exotics
Re: Pedigree module uploading pictures issue
  • 2014/11/17 10:20

  • exotics

  • Just popping in

  • Posts: 25

  • Since: 2013/4/5 1


Ah thats great, wonder how the others get the pictures there on theirs, Ive looked on the doberman website and the cane corso and they seem to work with the pictures I can give you the site url if you need it?



6320
Mamba
Re: i'm working an a standard module skeleton
  • 2014/11/16 20:42

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Cedrik, this exactly the feedback and suggestions that we would like to receive in this thread. In Open Source we are learning from each other, so your active participation is very much appreciated.

While our individual efforts might not be perfect, by working together and exchanging ideas, we can create something much much better!

I hope, others will jump in as well!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs




TopTop
« 1 ... 629 630 631 (632) 633 634 635 ... 29425 »



Login

Who's Online

665 user(s) are online (334 user(s) are browsing Support Forums)


Members: 0


Guests: 665


more...

Donat-O-Meter

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

Latest GitHub Commits