1
irmtfan
customization and localization: image creator class is needed?
  • 2012/7/18 7:51

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


I am about to send it in tracker but first i think this feature needs some discussion here.
I got the base idea from some modules like publisher.
In publisher module when you create a clone it create a new PNG logo with the new name.

It uses some php functions like: "imagecreatefrompng", "imagecolorallocate", ...
It also borrow a ttf font to write new name and also choose new color.

I think it can be very useful for customization and localization.

Customization:
An end user can create its own logo/images/icons for a theme with the desire text and color without using any extra tool.
more than that end user can create a new image set for its module/core.

Localization:
Local parties dont need to translate and add local image sets (using photo editors) to the new released english core. In install the image set will be created automatically for the selected languages.

Sidenote:
In the next days I will send another separate feature to show how modules and core images/icons can be fully customized and localized using the way phppp (DJ) used in the newbb module.
you can see a brief in newbb/class/icon.php
Quote:

* Priority for path per types:
* NEWBB_ROOT - IF EXISTS XOOPS_THEME/modules/newbb/images/, TAKE IT;
* ELSEIF EXISTS XOOPS_THEME_DEFAULT/modules/newbb/images/, TAKE IT;
* ELSE TAKE XOOPS_ROOT/modules/newbb/templates/images/.
* types:
* button/misc - language specified;
* //indicator - language specified;
* icon - universal;
* mime - universal;
*/




Login

Who's Online

275 user(s) are online (164 user(s) are browsing Support Forums)


Members: 0


Guests: 275


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