1 of 3
1
TK Page Title - Creates font titles as images (like SIFR)
Posted: 21 October 2008 04:35 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  126
Joined  06-10-2007

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.

Image Attachments
91c4ca90e85604b1c21d494644dbfb9c.png0429511c2fa47c5150c580ab4acc6029.png
Click thumbnail to see full-size image
Profile
 
 
Posted: 27 October 2008 06:25 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  126
Joined  06-10-2007

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

Profile
 
 
Posted: 27 October 2008 07:42 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  748
Joined  11-29-2005

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

 Signature 

Versa Studio: a consultative approach to web site design and development.
Free 28-page web site planning guide | Member, EE Pro Network

Profile
 
 
Posted: 27 October 2008 08:02 PM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  126
Joined  06-10-2007

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.

Profile
 
 
Posted: 27 October 2008 09:15 PM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  748
Joined  11-29-2005

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/

 Signature 

Versa Studio: a consultative approach to web site design and development.
Free 28-page web site planning guide | Member, EE Pro Network

Profile
 
 
Posted: 22 November 2008 06:26 PM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  126
Joined  06-10-2007

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

Profile
 
 
Posted: 23 November 2008 11:55 AM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  126
Joined  06-10-2007

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

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.

Profile
 
 
Posted: 27 November 2008 08:16 AM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  126
Joined  06-10-2007

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.

Profile
 
 
Posted: 12 December 2008 05:19 AM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  2
Joined  07-31-2005

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.

Profile
 
 
Posted: 12 December 2008 05:53 AM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  126
Joined  06-10-2007

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!

wink

Profile
 
 
Posted: 16 December 2008 09:50 AM   [ Ignore ]   [ # 10 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  126
Joined  06-10-2007

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.

Profile
 
 
Posted: 17 December 2008 01:44 AM   [ Ignore ]   [ # 11 ]  
Summer Student
Total Posts:  2
Joined  07-31-2005

Amazing! Thanks Tony!

PS: this is good present for my birthday smile

Profile
 
 
Posted: 22 December 2008 03:23 PM   [ Ignore ]   [ # 12 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  110
Joined  12-21-2005

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.

 Signature 

Phil J Leitch - Unwound Design

Profile
 
 
Posted: 13 January 2009 12:04 PM   [ Ignore ]   [ # 13 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  126
Joined  06-10-2007

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.


smile

Phil J Leitch - 22 December 2008 08:23 PM

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.

Profile
 
 
Posted: 10 June 2009 08:34 AM   [ Ignore ]   [ # 14 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  126
Joined  06-10-2007

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. This error may continue to occur in the event of a PHP error (different server setups could potentially cause some errors).

Phil J Leitch - That might have fixed your problem!

Profile
 
 
Posted: 19 June 2009 04:42 AM   [ Ignore ]   [ # 15 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  126
Joined  06-10-2007

Version 1.0.8

  * Fixed another part of the code which was causing the image to be output to the browsers URL bar. Please let me know if you still have this bug!.

Profile
 
 
Posted: 20 June 2009 05:05 AM   [ Ignore ]   [ # 16 ]  
Lab Assistant
RankRank
Total Posts:  108
Joined  03-06-2007

The download link for the latest release does not work correctly.

Profile
 
 
Posted: 20 June 2009 05:44 AM   [ Ignore ]   [ # 17 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  126
Joined  06-10-2007

Why thank you, Flatulent Badger!

Fixed the link now, simple typo error smile

Profile
 
 
Posted: 20 June 2009 10:42 AM   [ Ignore ]   [ # 18 ]  
Lab Assistant
RankRank
Total Posts:  108
Joined  03-06-2007

Thanks Tony,

I downloaded it and gave it a try. Unfortunately my production server PHP is not up to standard at this moment and I kinda need to finish this project in the next 3 or 4 days.

Its on my list to try when I get more time. It certainly looks like it could be the solution to some issues I have.

FB.

Profile
 
 
   
1 of 3
1