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
Fulvio Romanin
Posts: 394
Joined: Thu 4. Dec 2003, 11:12
Location: Udine, Italy
Contact:

Post by Fulvio Romanin »

errrr.....
i know i always ask for the moon, but couldn't it be possible to make the GT tag spaw-compatible so we can decide the font directly in the WYSIWYG editor and see all the fonts there? :)

(hides)
Completeness is reached through subtraction, not through addition
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

Wohow. You and your SPAW ;). No, this will not be possible, I fear. This is just a replacement tag, nothing else - you can't "include" other replacement tags in SPAW, do you?
User avatar
Fulvio Romanin
Posts: 394
Joined: Thu 4. Dec 2003, 11:12
Location: Udine, Italy
Contact:

Post by Fulvio Romanin »

*SIGH* :wink:
Completeness is reached through subtraction, not through addition
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

Fulvio Romanin wrote:errrr.....
i know i always ask for the moon, but couldn't it be possible to make the GT tag spaw-compatible so we can decide the font directly in the WYSIWYG editor and see all the fonts there? :)

(hides)
Well you can use the replacement tags inside spaw!!
http://www.studmed.dk Portal for doctors and medical students in Denmark
User avatar
Fulvio Romanin
Posts: 394
Joined: Thu 4. Dec 2003, 11:12
Location: Udine, Italy
Contact:

Post by Fulvio Romanin »

yes, of course
but since i'm a lazyass i'd like to just have the selector with the font name, and that's all...consider how easy it might be to have clients decide their own font.....


besides that, to whom it may concern: i'm moving forward with my flash frontend after a long, forced pause...
Completeness is reached through subtraction, not through addition
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

would you like some stars and a few planet with that moon too Frold :)
maybe I could warm then up a little too
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

Fulvio Romanin wrote:yes, of course
but since i'm a lazyass i'd like to just have the selector with the font name, and that's all...consider how easy it might be to have clients decide their own font.....
In spaw you can define your own stiles maybe jerome can make a hack for that :D
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 »

Req: maybe you could make a preview of the fonts under the Fonts
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 »

another REQ

instead of tags like this:

{GT:tri_b:24:003366:text} it would be cool if you could do like this:

{GT:tri_b:24:003366}text{/GT} or something like that cause then you could use this tags for all the other replacements tags like:


{GT:tri_b:24:003366}{BREADCRUMB}{/GT}

{GT:tri_b:24:003366}{AUTHOR}{/GT}

{GT:tri_b:24:003366}{DATE_LONG}{/GT}

etc-.
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 »

Good idea, frold, I will try to to implement this.
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

I have just released Version 1.0.1. This will fix some bugs. There are some more, but for them I will need more time.

The replacement tag has changed slightly:

{GT:font_shortname:fontsize:color:(backgroundcolor):text}

backgroundcolor is optional (that is why it is in brackets)
snobba
Posts: 166
Joined: Sat 6. Mar 2004, 12:41
Location: Sweden
Contact:

Post by snobba »

Now we can make great looking navbars with this function! I am sure that this will be an option for navbartable in the future!

But mine just don't want to work! I have installed it a couple of times by now (also the new one) but in IE it just shows that a pictures should be there but it can't find it! And in Mozilla it just shows the text..the properties of the 'picture' is

Code: Select all

http://localhost/NITROMEDIA_CMS/include/inc_module/mod_graphical_text/inc_fonts/fontizer.php?font=trebuchet.ttf&size=10&color=000000&bgcolor=ffffff&text=testingtext
From the tag: {GT:tre:10:000000:ffffff:testingtext}
And this path is good! And I can then also see that he finds the shortcut because it displays the .tff name..

????? Such a useful function and I can't use it! :cry: :cry:

I also tried to change to GD1 and IM out /on and so on but I just do not know if this matters at all..?

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

Post by Jérôme »

For Mozilla it is also a broken picture, but it displays the ALT-Text, that is why it looks irritating.

To be honest, I don't know why this does not work in your browser, because the path seems to be correct, as you say it.

It could be a GD-issue, but I don't know which - as you need GD for phpwcms I thought that this would always work :/

Can you try the same thing on a real server to test if this works?
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

For the test you could try to set the font in fontizer.php manually and statically, if it works when you put the full path to the font.

Search the line

Code: Select all

$fonttype="$font";
and change $font to the full path to one of your font-files.

So we can see if it has something to do with the location.

(Don't wonder about this line, it is so because me myself I tested something ;))
snobba
Posts: 166
Joined: Sat 6. Mar 2004, 12:41
Location: Sweden
Contact:

Post by snobba »

Noop...still nothing... :cry:

Well I have to leave it for now, after all it is just a 'lazymachine' :wink: and everything can be done by hand as normally..(trying to convince myself that I do not really need it :) )

And I didn't know that it didn't work for Mozilla..Like when everything looks exactly how I intended...

Thanks J.!

Martin
Locked