Graphical Text MOD - FINAL - Version 2.0

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
User avatar
nekket
Posts: 613
Joined: Tue 18. Nov 2003, 15:46
Location: Baden-Baden
Contact:

Post by nekket »

no i'didn't... and: i tried both
snobba
Posts: 166
Joined: Sat 6. Mar 2004, 12:41
Location: Sweden
Contact:

Post by snobba »

Same here...Just didn't work..

tag: {GT:bit:8:black:Testtext} (shorttag is correct)

With what do you create the pictures? Can it be that there could be something with the picture generating on the server?

Greetings from Martin
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

I have just re-installed the MOD on a clean install and it still works for me with the replacement tag

Code: Select all

{GT:bit3:24:003366:Hallo, dies ist ein Test}
bit3 is the short name of my font. Anyway, if a shortname is not found, the MOD returns just the simple text.

A white space in front of the replacement tag (someone has posted this and then deleted it again) should not be a solution to this problem.

Have you done the change to "inc_front/content.func.inc.php"? :?:
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

snobba wrote:Same here...Just didn't work..

tag: {GT:bit:8:black:Testtext} (shorttag is correct)

With what do you create the pictures? Can it be that there could be something with the picture generating on the server?

Greetings from Martin
Please don't use color-names for the color definitions, that will not work in this release (but in later ones, it will).

The pictures are generated with GD-functions and should work as GD is included in most PHP-packages.
bebernl
Posts: 15
Joined: Wed 24. Mar 2004, 15:53
Location: Amsterdam

Post by bebernl »

Hellas,
i had the same problem...
i put the line in the content.func.inc.php just a few line up, before the

Code: Select all

// add possible redirection code (blablalba
and then i worked on mine
User avatar
nekket
Posts: 613
Joined: Tue 18. Nov 2003, 15:46
Location: Baden-Baden
Contact:

Post by nekket »

Jetzt bin ich wirklich verwirrt...
Ich habe deinen {GT...}-Tag in meinen Artikel copy-pasted und jetzt wird mit der Text angezeigt... allerdings nicht als Bild, obwohl ich die Schriftart auch entsprechend benannt und aktiviert habe... ?!
EDIT:
Vielleicht war das Problem, dass ich Überschrift als Text hatte und er Umlaute nicht mag?!

Gleich die nächste Frage: Wo kann ich die Hintergrundfarbe für das PNG einstellen?

Gefunden: RGB Wert: $background = imagecolorallocate($im, 255, 255, 255);
User avatar
nekket
Posts: 613
Joined: Tue 18. Nov 2003, 15:46
Location: Baden-Baden
Contact:

Post by nekket »

Was noch toll wäre: Hintergrundfarbe entweder transparent oder über Replacement Tag definierbar. Wenn man das Mod im Template verwendet und man verschiedene Hintergründe hat, siehts sonst nicht so doll aus.

Aber genial, sowas hab ich ewig gesucht. Super Arbeit!
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

Okay...

in the next release, the background-color will be configurable and/or transparent.
User avatar
nekket
Posts: 613
Joined: Tue 18. Nov 2003, 15:46
Location: Baden-Baden
Contact:

Post by nekket »

Found "my" problem:
script doesn't like colors beginning with A / B / C / D / E / F .. only numbers :(
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

UUUUUPSALA!!! My fault! I will correct this!
snobba
Posts: 166
Joined: Sat 6. Mar 2004, 12:41
Location: Sweden
Contact:

Post by snobba »

A, I read your installation post wrong.I thought that you could only use text color-definition(which I hate) - much better with the 'correct' color definition!

Now a picture is created but with normal text! And I tried with different shorttags on different .tff - but still the same problem. Maybe there are some answer here in GERMAN but I do not understand it! :wink:

Thanks,

Greetings from

Martin
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

i have updated the ZIP-package.

Please download it again, overwrite the whole files (no database changes necessary) and try it again.

BTW: Special chars, like äöüßçõ are no problem for this MOD.
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

it seems like the font bit3 doesnt work...

It will not work on server running on xp
http://www.studmed.dk Portal for doctors and medical students in Denmark
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

How will this mod work for a visitor?

Will it first check if the user have the font and if not will it then load the font to the harddisk or how does it work?

Cause every font is about 100kb and if you want to use many weird fonts on your site it will end with many kb a user have to download to see a page = looooong time....
http://www.studmed.dk Portal for doctors and medical students in Denmark
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

I see that I haven't explained the MOD well enough.

The fonts are loaded onto your webserver. The MOD will then generate a picture which the visitor will see like any other picture. The fonts are only used to generate the pictures.

You can use whatever font you like. I don't know why the bit3-Font does not work on your site, it works on mine, and if it doesn't, just replace it by another one :)
Locked