GT Mod Multiline Enhancement - now with transparency! BETA!

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
macmukka

GT Mod Multiline Enhancement - now with transparency! BETA!

Post by macmukka »

Updated: 26 Nov 07

-- JUST recieved 'new GT code' from OG, so further update to follow.

Progress has been made:- (ALL EXPERIMENTAL - Take Care)

I dont have much time to support this, but let me know feedback. It's not perfect!

Image

I have now updated the mod and updated this post. I don't know if that's the right thing to do. It just seemed a pointless having non relevant info here.

Usage

Paragraph styles are now available - right, left and center. Justified to come later.

PNG24 transparency is now supported and the mod includes a php browser detect script and automatically inserts alpha filters for ie6 and ie7 if you wish. Why ie7? Because I have noticed that alpha filters solve an "antialias" problem when using png in opacity effects when overlaying. So it's there if you want to use it.

When using PNG24 setting, only foreground color is an option and PNG fix is an option choose IE6 for IE6 and less, IE7 for IE7 and less.

The mod now has slightly better maths and things look a little better.

IT IS ALL EXPERIMENTAL! and the backend looks bad sometimes in Firefox etc Sorry I havent had time to fix this yet. Thought you'd like a look.



Install

Download the zip below and replace the entire \include\inc_module\mod_graphical_text directory with the contents of the zip.

The add your fonts again! - Remember to do this.

No database modification should be neccessary.

Notes

Thanks to Jermome in the first place - I hope you dont mind me changing it - just say if you do! ;-) and I'll take it down.

And while I'm at it thanks to OG, enjoying some of your new 1.35 features at the moment.

I am still using the old code, as new code hasnt appeared yet! ;-)

To come
- Justified text
- rotation sooon!

Download modified gt mod here:-

http://www.jamesryder.co.uk/gt/mod_grap ... tiline.zip

Hope it's useful
Last edited by macmukka on Tue 27. Nov 2007, 07:59, edited 2 times in total.
macmukka

Post by macmukka »

Ok I have now updated the GT MOD tweaks to include
  • - You can now put in any height size - so 0 is allowed. Enter 5 in height for old mod values.
    - Fixed height issue for single lines ( I think - feedback please)
    - You can now choose on style page whether to include alt and title tags
In the next week, I will be adding styles to paragraph - right, left, center and justify (may be!).

Enjoy

Download from link above

Please BACK-UP old GT mod first, or use version from a fresh zip for reinstall
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Post by jsw_nz »

Let me be among the first to say - very very nice
Great job building on Jerome's original contribution

The upgrade went extremely smoothly ( :D )

Having the ability to have full paragraphs using GT is great
- opens up a really flexible 'typographic design' framework
for phpwcms

Have been creating custom plaintext templates
where title, subtitle and text itself gets treated
as GT text - this exceeds my expectations -
GREAT ONE!!!!

respect
:)
Last edited by jsw_nz on Wed 21. Nov 2007, 19:04, edited 1 time in total.
macmukka

Post by macmukka »

Thanks jsw

I was quite pleased myself - especially as I thought I couldnt manage to do it...

As I said, when I've got a moment I'm going to look at paragraph styles soon - hopefully somtime this week.

To do list comprises:-


1 better letter spacing to avoid letters being missed at line ends.
2 paragraph styles
3 improve png transparency
4 px measurements for line length
5 fix new font bugs
6 fix deleting content/gt
7 SPAN replacements - so that if you use GT for an H1/H2 tag you still get the H1/H2 tag but the GT text just goes over the top of it - google will like that.
8 better height calculation

and last but not least-

9 Text Rotation...


Bug Watch
I think there is a bug when you add/change fonts, I have seen it once, but didnt note it down.
Also sometimes you have to delete contents of content/GT

Let me know feedback...

I am going to put a new site up later today (hopefully) that uses the mod extensively.
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Post by jsw_nz »

This all sounds very good

- including the text rotation option
- (vertical text anyone?)

- again BIG thanks macmukka
- this one made my day
- guessing OliG will likely adopt your work into core
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

paragraphs support is in it since very long time.

Image Image

You can also use it this way:

Code: Select all

{GT:style}My text[br]and this on new line{GT}
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
macmukka

Post by macmukka »

true - but you have to break the lines yourself, with my little addition you can set the line length....
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

I have checked your changes - I really don't know why you have used that old code basis. And I don't see the need behind your changes.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
macmukka

Post by macmukka »

long night, re-edit of post

when it comes to the code base, this came from the latest download of phpwcms that I could find - may be I have missed something?

I made the changes for my owne need really, I have a whole bunch of ramdom quotes I need to generate on a site in handwritten text, different paragraph styles in different lengths is what I need. The GT mod then gets fed a random quote, so I cant use the line split you suggest...

The alt and title stuff, someone asked me to do.

only trying my best OG! I am not a programmer more of a bodger!
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Post by update »

Hey hey hey Oliver - what will this be going to become - flaming in such an ordinary uncool manner at a guy (or girl) who is sharing some ideas - better name it enhancements - for a really great mod, which is actually named as an object for enhancement by the creator him/herself :!: :!: :!:
If you ever will have children - alas! Paedagogics isn't your second forname...

What did happen? Somebody delivered an addition unto the community, perhaps bored to death while waiting for you to deliver!

So what. Do you really think you are the only one who is able to act/react in an uncool manner? I can do better
:evil: :evil: :evil: :!:
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Post by update »

OK, calming down again. But please try to stimulate rather (as you're doing now and then) than being kind of destuctive, for the sake of us all. We all need people who are able to contribute and if there's something to critizise just do so in a pushing -not destroying- manner.
This all has to be fun, too :wink:
macmukka

Post by macmukka »

I'm all for fun Claus...now back to look at transparency issues, such fun....
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Post by update »

:lol:
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

no flaming here - it's just that I can't understand why old code is used.

But it's up to you to use it.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
macmukka

Post by macmukka »

as I said have I missed something? the GT mod I used is from 2007-10-29 I thought. I made have made a mistake of course...any guidance?
Post Reply