Page 1 of 1

GT MOD: text correction + possible errors

Posted: Tue 8. Jun 2004, 19:34
by DeXXus
NOT a bug, just something for next update...
Needs a ~tiny~ correction to initial implementation of GT mod by -=Jerome=-
:D HUGE THANX to Oliver & Jerome :D

-phpWCMS Modules screen for GT Mod needs update to reflect Oliver's relocation of one of the folders. (to avoid user confusion)

From the screen in phpWCMS:
Graphical Text - Home
This addon enables you to use dynamic graphical text with replacement tags. To do this, you have to perform the following actions.

Please upload the fonts that you want to use for your graphical texts into the folder


include/inc_module/mod_graphical_text/inc_fonts/

Afterwards, please click on the menu entry "Fonts" and add the fonts to the database. Enter a full name (e.g. "MS Trebuchet") and a short name (e.g. "trebuchet") - the short name will be the key to use the font within the replacement tag.

Fonts that are not added to the database will not be available for use with the replacement tags.

To use this MOD, you must create a folder "gt" into the folder


content/images/


and CHMOD it to 777.
The blue text should now be:
content/

Of course, Oliver has ~clearly~ mentioned in changelog.txt, but sometimes that is overlooked by folks :roll:
================================================================================
PHPWCMS CHANGELOG
================================================================================

08-06-2004

- Graphical Text MOD included with only some small changes. If you use the
GT MOD please move the gt folder from content/images to content.
- Upgrade/Update script updated too - now you can choose the SQL file
manually you want to use for upgrading/updating.
Finally a REMINDER posted by Pappnase:
if you use the GT mod please don't forget to give the dir content/gt chmod 777

Posted: Tue 8. Jun 2004, 19:49
by Oliver Georgi
Just my 2 cents:

Please - the GD MOD is a very early hack. I haven't time to proof and test it as much as possible. It's working on my test system - but it might not work on your system. I will implement a new var in conf.inc.php where you can disable the GT MOD.

Jérôme has done a great job. But GD itself needs lot of checks and isn't the best solution. There are such tests missing - which can cause in error messages.

I will make some enhancements and tests later - also changing the replacement tag to [GT:style][/GT]. The module will be moved into admin section.

Oliver

Posted: Tue 8. Jun 2004, 20:55
by Jérôme
Yeah, I have also recognized that this is still not a very clean MOD (although I always had the intention to do so). I have not made checks for available formats (PNG/JPG/GIF) at every place (in version 2.0 only in the styles area) - so e.g. in the fonts area the images are always generated as PNG, which will cause errors on systems that do not fully support PNG.

I am sure Oliver will wipe out those deficiencies and make out of the MOD a great "original" feature in phpwcms.

Please remember: at the moment it is just a modified MOD that is implemented in phpwcms - Oliver has already said that. You should not use it productively because Oliver will certainly make many changes to it.

Posted: Tue 8. Jun 2004, 22:11
by Oliver Georgi
:D Maybe ;-)

Here is what i did

Posted: Mon 21. Jun 2004, 03:35
by kpimichael
Oliver Georgi wrote::D Maybe ;-)
I had all kinds of trouble with the GT adds... Since i could not turn off I just "returned" all the functions....

What was happening to me...was the php output that i embedded in an article was causing the GT code to be included...i never could figure out why.

The DEFINEs were not correctly done in some of it.

I appreciate all the work people do to provide functionality... NO FLAMES here. It is just that this one "caused" me a lot of hair pulls...because my code was "put to bed" and i had set error_reporting off. :)

Posted: Mon 21. Jun 2004, 03:39
by Pappnase
hello michael

what problems did you have with the gt mod!? wich php version do you use!?

Posted: Mon 21. Jun 2004, 06:45
by kpimichael
Pappnase wrote:hello michael

what problems did you have with the gt mod!? wich php version do you use!?
PHP Version 4.3.4

I was getting errors with the Define statements. They appeared to be formatted wrong at least to me. I did not need the functionality...so i just returned them until Oliver puts in the configuration option to turn off.

Posted: Mon 21. Jun 2004, 07:20
by Oliver Georgi
The CVS release has a config value included which enables/disables GT MOD. I know that the GT MOD needs many corrections.

Oliver

Posted: Sun 5. Jun 2005, 18:41
by Oliver Georgi
I have enhanced GT Mod yesterday - but better integrated release will come...