Page 1 of 16

Graphical Text MOD - FINAL - Version 2.0

Posted: Thu 8. Apr 2004, 04:40
by Jérôme
Graphical Text MOD is implemented in phpwcms core code since 2004-06-08. All questions should be posted in support forum only.

Code: Select all

############################################################################################
## MOD Title: phpwcms Graphical Text MOD
## MOD Author: Jerome < spam@jerome-gamez.de > (Jerome Gamez) http://jerome-gamez.de/
## MOD Description: Adds the possibilty to create dynamic graphical text
##                  with replacement tags
##
## MOD Version: 2.0
##
## Installation Level: Easy
## Installation Time: 5-10 Minutes
##
##
## Files To Edit:  phpwcms.php
##                 include/inc_front/content.func.inc.php
##
###########################################################################################
## For Security Purposes, Please Check http://www.phpwcms.de/forum/
## for the latest version of this MOD. Downloading this MOD from other sites could cause 
## malicious code to enter into your phpwcms-installation. As such, phpwcms will not 
## offer support for MOD's not offered at: http://www.phpwcms.de/forum/
###########################################################################################
## Author Notes:
##
##       For usage information, see the file "replacement tags.txt".
##
##       Full localisation is only available in english and german. All other languages
##       are also english and perhaps not actual. This is due to the fact that I can't
##       speak all the languages, but the folders must be available to prevent phpwcms
##       from moaning about include-errors.
##
##       If you want to translate the MOD to your native language, please feel free to
##       send me your lang.inc.php so that I can include it to the MOD.
##
###########################################################################################
## MOD History:
##
##   2004-05-17 - Version 2.0
##      * Added underline ability
##      * 2.0 final. This version will be included into the core of phpwcms. No further
##        development as a MOD.
##
##   2004-05-15 - Version 1.5
##      * Added background and foreground transparency
##        Note: Transparency can lead to worse image quality
##
##   2004-05-11 - Version 1.4
##      * Chose output format (JPG, PNG, GIF) in the styles area.
##        Unsupported formats will not show up
##      * Just one replacement tag available:  {GT:style] ... {/GT}
##      * Fixed filename issue (no capital letters were possible)
##
##   2004-05-04 - Version 1.3
##      * Perfect caching
##      * Dropped fontizer.php => no security/exploit issues anymore
##      * fixed some bugs
##      * fixed NS 4.x problem (could not handle URI parameters)
##
##   2004-05-03 - Version 1.2 BETA
##      * Added first caching engine (better, but not best)
##      * Fixed some bugs
##
##   2004-04-25 - Version 1.1.2
##      * Fixed bug which prevented from deleting a style
##      * Added font, color and style data to show how things work and to make it possible
##        directly to use the fonts, colors and styles
##
##   2004-04-13 - Version 1.1.1
##      * Fixed display bugs in the styles edit screen
##      * Fix of the fonts include problem that affects users with disadvantageous
##        open_basedir/include settings of php
##
##   2004-04-13 - Version 1.1
##      * Change in the use of the replacement tag. It is now possible to use other
##        replacement tags within a graphical text replacement tag
##      * Background color property added. This property is optional, but if it is not
##        given, the quality of the generated text will decrease massively
##      * Font preview in the backend added
##      * Anti-Aliasing switch
##      * Color presets
##        Ability to define names that represent colors. This makes subsequent changes to
##        colors easier and more effective (the changes are reflected on the whole website
##        immediately)
##      * Styles presets:
##        Ability to define combinations of font, size and colors for easier 
##        inclusion in articles and subsequent site wide changes (the changes are reflected
##        on the whole website immediately
##      * Changement of replacement tags
##        * {GT:font_shortname:size:antialiasing:fgcolor:(bgcolor)}text{/GT}
##        * {GT:style}text{/GT}
##
##   2004-04-08 - Version 1.0
##      * Initial Release
##
###########################################################################################
## Before Adding This MOD To Your phpwcms, You Should Back Up All Files Related To This MOD
###########################################################################################
Important information
  • You will first have to upload your fonts to your webspace and add them to the database before you can make use of it. More detailed information is provided on the 'Graphical Text' MOD's index page.
  • Transparent background will lead to bad image quality
Download

mod_graphical_text_2_0.zip

Replacement Tags

{GT:style}text{/GT}
This is really easy to use. You have to define styles in the backend that you can use in the frontend.


You will need freetype support enabled on your server. Search your phpinfo() for the string "freetype" to check if you have it.
For transparency you need at least PHP 4.3.2.

Posted: Thu 8. Apr 2004, 04:43
by Jérôme
Again a long night of work, but I hope it was worth it ;). The only thing that disturbs me is that nobody is awake to test the MOD immediately ;).

Posted: Thu 8. Apr 2004, 11:01
by pSouper
what is the GT index page?
does this mod enable you to use any font in your article by converting the font to a graphic then replace every letter with a graphic?

wiat about bold, underline, italic leading(empty pixels on the top of the letter increasing line height) and kerning(empty pixels after letter increasing letter spacing)?

if this is what I think I am very teased :)

Posted: Thu 8. Apr 2004, 11:13
by frold
I will test it and you will hear from me :D

Posted: Thu 8. Apr 2004, 11:26
by Jérôme
This is yet a very simple MOD at the moment. It enables you "only" to create graphical text whith whatever font you want in every size you want with whatever text you want wherever you want :)

You give a text, and the Replacement Tags return you one single PNG with the text in your font.

PS: The GT (= Graphical Text) Index page is the pagee you see when you click on "Graphical Text" in the Modules-Area.

Posted: Thu 8. Apr 2004, 11:36
by pSouper
YUMMY: installing now, feed back so very soon :)

Posted: Thu 8. Apr 2004, 11:42
by Jérôme
pSouper wrote:what is the GT index page?
does this mod enable you to use any font in your article by converting the font to a graphic then replace every letter with a graphic?
No, it creates one single image-file (PNG at the moment).
pSouper wrote:wiat about bold, underline, italic leading(empty pixels on the top of the letter increasing line height) and kerning(empty pixels after letter increasing letter spacing)?
This depends of which font you load up and use.

Posted: Thu 8. Apr 2004, 11:57
by Jérôme
With the help of frold, I found out that the install instructions are buggy (it was late again *apologize*). Until i have uploaded a cleaned up version, please notice the following [...]

EDIT: Notice the following post of pSouper, he has done it better ;)

Posted: Thu 8. Apr 2004, 12:05
by pSouper
from

Code: Select all

$wcsnav["modules"] = "<strong class=€"navtexta€">".$wcsnav["modules"]."</strong>";
to..

Code: Select all

$wcsnav["modules"] = "<strong class="navtexta">".$wcsnav["modules"]."</strong>";
only € is actualy a euro sign but this bb doesn't like that in a [ code ]much :)

Posted: Thu 8. Apr 2004, 12:10
by Jérôme
huh? but I don't know what you mean ;). What do you mean?

I have re-uploaded the ZIP - could someone test if the errors in the install instructions still are there, please?

Posted: Thu 8. Apr 2004, 12:11
by pSouper
i'm testing now but i must wait for 180mb to upload to my new isp - so I'll let you know next week ;)
@j in your amendment you missed an 'a' and in doing so use two different but valid classes. just shoot me ;)

Posted: Thu 8. Apr 2004, 12:20
by Jérôme
There are no some fonts included in the MOD (please don't kill me for legal issues, if there are some ;))

Posted: Thu 8. Apr 2004, 12:24
by Jérôme
Some pictures to give you an impression how it looks like in the backend:

GT index page
Image


GT fonts page
Image

Posted: Thu 8. Apr 2004, 12:28
by pSouper
Mmmmm looks lovely too.

also for anyone looking to avoid any legal issues that may arise from using this (not sure if any, but do suspect some) I get ALL my fonts from http://www.1001fonts.com they are all free and have no legal issue to contened with.

Posted: Thu 8. Apr 2004, 12:29
by cyrano
great stuff this means we can use any ttf-font on the website?

and for example also only the headline for example?

coool :lol: