Fork me on GitHub
Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International



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

Learn XOOPS Core

Local Support


XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

- 2 2.5 2.6 4 6 2013 Abuse adslight Android AntiHarvesting AntiSpam API Apple Battlefield billige Blocks Bootstrap Captcha cell chronolabs CHUNG content CĂN demo download Dresses facebook Fat floor for free Gateway Google Guide herre Honeypot HP html5 Human HỘ iPhone jQuery Language List log Loss mobile module modules Monster new newbb news NHÀ online PARK Payment phone PHP Prevention profile project Protector publisher Rapid RESIDENCE responsive review Rights rmcommon Room security Sentry site Smartphone Smarty Solution Spam stem Studio support tag tags tdmcreate template The Theme themes User userlog web weight Wishcraft xoops Xortify XPayment ZendFramework

New Users

Registering user

# 137773


Welcome to XOOPS!

Bottom   Previous Topic   Next Topic  Register To Post

#1 Posted on: 2012/7/18 2:51 customization and localization: image creator class is needed?
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.

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.

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.

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

* Priority for path per types:
* NEWBB_ROOT - IF EXISTS XOOPS_THEME/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;


Module Developer
Module Developer
2003/12/7 14:14
From In the middle of nowhere
Registered Users
Community Coordinator (temporary)
Posts: 3367
(Show More) (Show Less)

You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You can vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]