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.
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.
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.
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/
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
Added further improvements:
Version 1.0.4
I’ve made some changes in a new release.
* 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.
Minor change.
* 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.
I’ve made some changes in a new release.
* 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!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.