We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

TK Page Title - Creates font titles as images (like SIFR)

Development and Programming

TonyNibbles's avatar
TonyNibbles
98 posts
16 years ago
TonyNibbles's avatar TonyNibbles

This module will dynamically create background images for use throughout your site.

So, similar to SIFR, without Flash or JavaScript - use the fonts you require to get the right look for your site.

The module supports colour and gradient fills for text, plus anti-aliasing and alpha-transparency with 24-bit PNG output.

TK Page Title - More information and download link *

* This is a permalink, and the page only ever contains links to the latest version of this module. This thread is updated with details of each update, but there is only one page to get the latest file.

I’ve attached some examples of the sorts of page title images this module can produce, typefaces used are Cooper and Myriad Pro, both with gradient fills.

       
TonyNibbles's avatar
TonyNibbles
98 posts
16 years ago
TonyNibbles's avatar TonyNibbles

I’ve made some initial fixes.

Version 1.0.1

* Added first level of error checking in control panel when creating or editing existing page title types.
* Added new field to page title types: save location, for determining where page titles are stored.

http://www.tomkiss.net/ee/add-on/tk_page_title

       
Versa Studio's avatar
Versa Studio
572 posts
16 years ago
Versa Studio's avatar Versa Studio

Very cool. Anyone know the legality of uploading fonts that one owns to the web server?

       
TonyNibbles's avatar
TonyNibbles
98 posts
16 years ago
TonyNibbles's avatar TonyNibbles

Hey

afaik, fonts are like software and should be treated as such. You should not distribute them.

However, uploading to a web server for a script or SIFR is somewhat a grey area. With SIFR, users can easily download your .swf files and use your fonts on their own server through their own SIFR. Some people have even set up sites like www.fontsmack.com for this exact purpose, which in my eyes appears to be wrong.

Whilst the module above doesn’t allow for the ease of access to the fonts like SIFR does, at the moment the fonts are in a directory accessible via www.

I think I will add the ability in my module to store fonts outside of the domains site files directory, so that if users wish, they can store their fonts in a secure place.

       
Versa Studio's avatar
Versa Studio
572 posts
16 years ago
Versa Studio's avatar Versa Studio

Tony,

“I think I will add the ability in my module to store fonts outside of the domains site files directory, so that if users wish, they can store their fonts in a secure place.”

Yes, that would be helpful, say, to access the files via server path like /www/fonts/, where the site itself is in /www/public_html/

       
TonyNibbles's avatar
TonyNibbles
98 posts
16 years ago
TonyNibbles's avatar TonyNibbles

Hi there,

I’ve made that change and also made some tweaks.

Version 1.0.2

* Changed the font file storage location to an absolute path from server root. Users are advised to store fonts outside of their public html directory to prevent unauthorised access or distribution of licensed fonts.
* Fixed a bug occurring when the gradient parameter was set.
* Added a tag preview to the TK Page Title module index page.
* Added a link to the documentation page.

http://www.tomkiss.net/ee/add-on/tk_page_title

       
TonyNibbles's avatar
TonyNibbles
98 posts
16 years ago
TonyNibbles's avatar TonyNibbles

Noticed another few things that needed doing, so update again! 😊

Version 1.0.3

* Added a link to delete all files that have been generated by TK Page Title (clear cache).
* Made minor changes to CP interface.
       
TonyNibbles's avatar
TonyNibbles
98 posts
16 years ago
TonyNibbles's avatar TonyNibbles

Added further improvements:

Version 1.0.4

  • Rewrote the code which calculates the number lines in in the text, in order to more accurately generate the gradient fill. This fixes a bug with gradient fills on some images.
  • Added align parameter to define the alignment of text within an image.
  • Added style parameter to define additional style attributes on the containing tag.
  • Changed the way the filename is generated. The hashed value is now generated from a wider range of given parameters, to prevent unwanted caching.
       
D.ILyin's avatar
D.ILyin
2 posts
16 years ago
D.ILyin's avatar D.ILyin

TonyNibbles thanks! Sometimes this plugin is very usefull!

But have a question… How can i use it without font smooth? In some cases this realy needed.

       
TonyNibbles's avatar
TonyNibbles
98 posts
16 years ago
TonyNibbles's avatar TonyNibbles

Hi there,

At the moment, that is not possible. I really cant think why anyone would want that - but the next time I update this plugin I will try to implement this feature for you!

😉

       
TonyNibbles's avatar
TonyNibbles
98 posts
16 years ago
TonyNibbles's avatar TonyNibbles

I’ve made some changes in a new release.

Version 1.0.5

* Added antialias parameter which will turn off AA if set to false.
* Fixed bug for the target parameter.
* Changed the way images are stored. Gradient and Mask files used in the generation of the image are now automatically removed.
       
D.ILyin's avatar
D.ILyin
2 posts
16 years ago
D.ILyin's avatar D.ILyin

Amazing! Thanks Tony!

PS: this is good present for my birthday 😊

       
Phil J Leitch's avatar
Phil J Leitch
85 posts
16 years ago
Phil J Leitch's avatar Phil J Leitch

I love this module. Very nice.

I do get an error the first time I load a page with a new title though, and it royally messes with the URL in the browsers URL field. Only the first time though.

Is this a known bug or have I done something wrong?

Thanks.

       
TonyNibbles's avatar
TonyNibbles
98 posts
16 years ago
TonyNibbles's avatar TonyNibbles

Minor change.

Version 1.0.6

* Rewrote the code which calculates the number lines in in the text, again. This fixes a bug with gradient fills on some images.

😊

I love this module. Very nice. I do get an error the first time I load a page with a new title though, and it royally messes with the URL in the browsers URL field. Only the first time though. Is this a known bug or have I done something wrong? Thanks.

Hi Phil,

Sorry for the delay in replying.

Known bug. The rewriting URL oddity I have come accross before. I can only make it happen on rare occasions (and only when the image is being generated for the first time).

I’ve tried already but its a real hard one to track down, so I cant promise any fixes for this anytime soon, unless a brainwave hits me as to its cause.

Glad you’re enjoying the module.

       
TonyNibbles's avatar
TonyNibbles
98 posts
16 years ago
TonyNibbles's avatar TonyNibbles

I’ve made some changes in a new release.

Version 1.0.7

* Added colour property: Page titles will use the colour when a gradient fill is not provided.
* Added support for global variables within page titles.
* Restructured some code to make it a bit tidier.
* Fixed a part of the code which was causing the image to be output to the browsers URL bar. <em>This error may continue to occur in the event of a PHP error (different server setups could potentially cause some errors)</em>.

Phil J Leitch - That might have fixed your problem!

       
1 2 3

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.