GT MOD: text correction + possible errors

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

GT MOD: text correction + possible errors

Post 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
Last edited by DeXXus on Tue 8. Jun 2004, 20:02, edited 2 times in total.
User avatar
Oliver Georgi
Site Admin
Posts: 9913
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post 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.
User avatar
Oliver Georgi
Site Admin
Posts: 9913
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

:D Maybe ;-)
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
kpimichael
Posts: 44
Joined: Mon 29. Dec 2003, 03:29

Here is what i did

Post 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. :)
Pappnase

Post by Pappnase »

hello michael

what problems did you have with the gt mod!? wich php version do you use!?
kpimichael
Posts: 44
Joined: Mon 29. Dec 2003, 03:29

Post 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.
User avatar
Oliver Georgi
Site Admin
Posts: 9913
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
Oliver Georgi
Site Admin
Posts: 9913
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

I have enhanced GT Mod yesterday - but better integrated release will come...
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Locked