The TTFTitles WordPress Plugin

Download

This plugin lets you use images to replace the titles of your posts, thus circumventing the problem of guessing what fonts your end-users might have installed.

This is primarily a reworking of the Image Headlines plugin by Brian “ColdForged” Dupuis, so that it would work in WordPress 2.3. Of course, THAT was a reworking of another plugin by Joel Bennett. Anyway, this plugin lets you replace text on your site (titles specifically, but you can actually replace just about anything) with atttractively rendered TrueType Fonts images.

The README file included in the zip archive explains some details of installation, such as permissions for the fonts and cache directories.

If you use this, I’d love to hear about. If you have problems, I’d love to hear those two. Feel free to leave comments here in either case.

Admin Interface

You get a new tab under Presentation called ‘TTF Titles.’ This has three subtabs: ‘Styles,’ ‘Cache,’ and ‘Fonts.’

In the ‘Styles’ tab, you can define different text styles. A style includes the font, size, color, shadow, spacing, etc. The styles you define here will be used in template tags in your theme files.

Screenshot of the Styles Tab

In the ‘Cache’ tab, you can set a few particulars about the image cache, basically where it is and how long images last before they expire.

Screenshot of the Cache Tab

In the ‘Fonts’ tab, you can install fonts, view those already installed, and delete ones you no longer need.

Screenshot of the Fonts Tab

Template Tags

There are two template tags you can use to actually make the text images show up:

<?php the_ttftitle(before, after, display, style, overrides); ?>
<?php the_ttftext(text, style, overrides); ?>

The tag ‘the_ttftitle’ can be used to replace ‘the_title.’ The first three arguments for the_ttftitle are the same as for the_title. The tag ‘the_ttftext’ can be used to turn any chunk of text into an image.

The ’style’ argument should be the name of a style defined in the ‘Styles’ tab. You can use ‘null’ for this argument to use the default style.

The ‘overrides’ argument can be used to override any of the parts of the style. It should look like: name1=val1&name2=val2… The variables you can override are:

Variable Meaning Example
font_name the name of the font Warp 1
font_size the font size to use 24
font_color the color of the text #FF0000
bg_color the background color #FFFFFF
bg_transparent make the background transparent? true
bg_image an image to put in the background null or a filename
indent indent of the first line 5
maxwidth how wide a line can be… 0 for no limit 500
subindent indent for subsequent lines 20
leading space between lines 10
effect_type what kind of shadows? none, hard_shadow, or soft_shadow
soft_shadow_color the color of the soft shadow #000000
soft_shadow_spread how fuzzy the shadow is 5
soft_shadow_x_offset horizontal offset of the shadow 3
soft_shadow_y_offset vertical offset of the shadow 3
hard_shadow_color_1 hard shadow inside color #FFFFFF
hard_shadow_color_2 hard shadow outside color #000000
hard_shadow_offset hard shadow offset 2

Styling the Images

Beyond the ’styles’ used by TTF Titles, you might also want to apply some CSS properties to the resulting images. To make this easier, the images are marked as belonging to the class ‘ttf’. This was added in 0.1.5, when I realized I wanted to style just the text images and couldn’t.

Updates

  • 10/18 – 10:04 – Version 0.1.1 released. Added error suppression for when then font does not contain all the characters you need. Also updated README to be clearer when it comes to permissions.
  • 10/18 – 10:13 – Version 0.1.2 released. Got rid of some pesky control-Ls in the code. My bad.
  • 10/18 – 10:58 – Version 0.1.3 released. Removed call to str_split that was causing problems for some people.
  • 10/18 – 17:20 – Version 0.1.4 released. Minor cosmetic change that should make things clearer when defining a new style.
  • 10/23 – 19:31 – Version 0.1.5 released. Removed the ‘border=0′ from the img tags and added style=”ttf”. Who am I to say they shouldn’t have borders? Also, this makes them easier to style in general.
  • 10/25 – 17:27 – Version 0.1.6 released. Small change to provide compatibility back to WP 1.5.2.
  • 11/13 – 12:01 – Version 0.2 released. Added a ‘Usage’ tab and the letter_case style feature.
  • 11/13 – 07:10 – Version 0.2.1 released. Fixed a really really sloppy bug. My bad!
  • 11/13 – 07:58 – Version 0.2.2 released. Fixed an even dumber bug.
  • 12/10 – 16:35 – Version 0.4.1 released. Should have been 0.4.0, but I messed up with svn check in. Added contextual help. Fixes a few bugs.
  • 12/11 – 07:02 – Version 0.4.2 released. Fixed incompatibility with older PHPs
487 Comments

Comment by anappygirl

Made Thursday, 18 of October , 2007 at 9:22 am

Hello!

Desperately wanting this to work, since I can’t even get the original Headlines plugin to show up, even with the -image error.

When I activated it, I got a bunch of “Warning: Unexpected character input on line…” errors. I deactivated it, and now I’m sad again. I don’t understand “chmod a+w”. I understand file permissions, “777″, etc, but “chmod a+w” has me stumped.

I’d appreciate any help can offer! :)

Comment by jrrl

Made Thursday, 18 of October , 2007 at 9:48 am

Ah. The ‘Unexpected character” warning usually comes when the font you use does not include a character you need. Really annoying, actually. I suppose I should guard the imagettftext calls with ‘@’.

My personal old habits showed up in the permissions stuff. 777 is what you want. Sorry about that. I’ll update the code and readme and have 0.1.1 out in a few.

Comment by anappygirl

Made Thursday, 18 of October , 2007 at 10:05 am

Bless you!

Comment by jrrl

Made Thursday, 18 of October , 2007 at 10:12 am

Actually, it turns out the unexpected character was because (old bad habit from C) I separated code sections with page breaks (control-l). Fixed now.

Up to 0.1.2 now.

Comment by anappygirl

Made Thursday, 18 of October , 2007 at 10:16 am

Okay. Stand by…

Comment by anappygirl

Made Thursday, 18 of October , 2007 at 10:39 am

I got a fatal error message. I emailed you the screenshot, cuz I thought that would be easier. I’m hangin’ in there with you, cuz you’re my ONLY hope! LOL! :)

Comment by jrrl

Made Thursday, 18 of October , 2007 at 11:00 am

Okay, I got rid of the calls to str_split. Crossing my fingers to get one stable user (outside of this site) before lunch.

Comment by anappygirl

Made Thursday, 18 of October , 2007 at 11:48 am

Almost there, John. Almost there. :)

Comment by Leanne

Made Thursday, 18 of October , 2007 at 12:31 pm

VERY nice plugin – I love what you’ve done with it! I’m using it on my design blog and it’s awesome how you’ve got style options, now I can save my clients styles and refer right to the menu when I do the setup.

THANK YOU for taking the time to get this going for 2.3!!

Comment by anappygirl

Made Thursday, 18 of October , 2007 at 1:30 pm

You’re a lifesaver! Thank you SO much! EXCELLENT plugin! You’re “Tha Man!”.

Comment by anappygirl

Made Thursday, 18 of October , 2007 at 2:34 pm

A suggested fix:

When you go in the admin panel, to change the display characteristics of your chosen font, you have to reload all the info, because it stays at “Warp 1″, even if you’re not using that font.

I uploaded my own font, and when I click on “edit” the default info that was there is not there. I have to start from scratch.
:)

Comment by jrrl

Made Thursday, 18 of October , 2007 at 2:39 pm

Ah, the problem is that you have to change the name of new styles from ‘**NEW**’ to pretty much anything else. This is clearer in the admin interface now.

Comment by BGH Quiz

Made Sunday, 21 of October , 2007 at 4:06 am

How could I apply this only to blockquote-tags? I’m not very savvy when it comes to CSS, but is there a solution?

Comment by jrrl

Made Sunday, 21 of October , 2007 at 4:49 pm

[quote comment="22"]How could I apply this only to blockquote-tags? I’m not very savvy when it comes to CSS, but is there a solution?[/quote]

Hmmm. I’m not sure there is a way to do this right now. It is pretty much designed to let you mark parts of your theme as being translated into images. That said, you’ve given me a couple of awesome ideas to add before version 1.0 which WOULD make it possible.

Comment by Cindy

Made Monday, 22 of October , 2007 at 9:02 pm

This is a wonderful update of Image Headlines. Great job :)

Comment by Jenny

Made Tuesday, 23 of October , 2007 at 3:19 am

Is it possible to remove the border around the letters. If I choose pink there will be a black border around.?

Comment by jrrl

Made Wednesday, 24 of October , 2007 at 1:28 pm

Here’s the problem with the border. GIF images only have two levels of transparency (1 bit). Things are either transparent or opaque. PNG images can do up to 256 levels of transparency, which makes it a great solution. The problem with PNG is our old friend Microsoft. Until version 7, Internet Explorer didn’t handle PNG transparency correctly and instead put a grungy gray background in place. Ick.

The solution Brian used when he wrote Image Headlines was to have a background color for blending purposes, but allow the option to make the background color itself transparent. Since I was working from is code, I stuck with it.

I’ll see if there is a better solution that I could add into the code.

In the meantime, set the ttftitles background color to something close to your site’s background and it should look better.

Comment by Ralph Thornton

Made Sunday, 28 of October , 2007 at 1:00 pm

Absolutely fantastic plugin, will be using it on all of my blogs, thankyou!

Pingback by 小化妝 : 徒然之書 The Void Notes

Made Monday, 29 of October , 2007 at 7:31 am

[...] TTFTitles 的外掛不過幾秒鐘,google [...]

Comment by Bloody

Made Monday, 29 of October , 2007 at 1:32 pm

Hi there ! Great pluggin, excellent job!

There stil for me a little ‘blem with the accents. (i.e. éàè…) What would you suggest for a french WP?

My fonts have accents, but they don’t show up with your pluggin… Any Idea? Am I missing something?

Thanks again.

Comment by ColdForged

Made Monday, 29 of October , 2007 at 2:14 pm

Don’t know that I’ve mentioned anything yet, but nice work! Very well-done remake of the remake of the remake, etc, etc ;) .

Comment by Ali

Made Tuesday, 30 of October , 2007 at 9:32 am

Hi, I must admit to being slightly confused. Okay, more than slightly. My question is this: all I want to change the text that says “I Shout Love” on my site. Where exactly do I put the code in and how exactly do I make it Scriptinia (yes, I’ve already uploaded the font file).

Comment by jrrl

Made Tuesday, 30 of October , 2007 at 10:08 am

[quote comment="34"]There stil for me a little ‘blem with the accents. (i.e. éàè…) What would you suggest for a french WP?

My fonts have accents, but they don’t show up with your pluggin… Any Idea? Am I missing something?
[/quote]

Well, I just tested a couple of French headlines (taken from the Le Monde website) with BitStream Vera and it seemed okay. Perhaps it is a font encoding issue? Drop me some email with more details (the font in question, etc.) and I’ll see what I can figure out.

Comment by jrrl

Made Tuesday, 30 of October , 2007 at 10:12 am

[quote comment="35"]Don’t know that I’ve mentioned anything yet, but nice work! Very well-done remake of the remake of the remake, etc, etc ;) .[/quote]

Thank you! Appreciate the nod and the link. Couldn’t have done it without your code, man.

Comment by jrrl

Made Tuesday, 30 of October , 2007 at 2:16 pm

[quote comment="36"]Hi, I must admit to being slightly confused. Okay, more than slightly. My question is this: all I want to change the text that says “I Shout Love” on my site. Where exactly do I put the code in and how exactly do I make it Scriptinia (yes, I’ve already uploaded the font file).[/quote]

Okay, fair question. I really need to toss together a cookbook for this sort of thing.

In your header.php, there is probably a line something like this:

<h1><a href="<?php echo get_option('home'); ?> rel="nofollow">/"><?php get_bloginfo('name'); ?></a></h1>

You can simply wrap the call to get_bloginfo with a call to the_ttftext like so:

<h1><a href="<?php echo get_option('home'); ? rel="nofollow">/"><?php the_ttftext(get_bloginfo('name')); ?></a></h1>

Additional arguments can be added before the final close parenthesis. For example, if you created a style called ‘blogname’ just for your “I Shout Love”, you could change the line to this:

<h1><a href="<?php echo get_option('home'); ? rel="nofollow">/"><?php the_ttftext(get_bloginfo('name'), 'blogname'); ?><a></h1>

You will probably want to style that image as having no border, since it is inside an anchor tag, btw. I hope this helps.

Comment by BGH Quiz

Made Tuesday, 30 of October , 2007 at 4:38 pm

@ jrrl

Though before the update there was no border at all. Why is it there now?

Comment by BGH Quiz

Made Tuesday, 30 of October , 2007 at 4:47 pm

Oh well, okay. So I set this thing to white background to get rid of the borders, and at first it looks alright. But when I check back minutes later the borders are there again. It looks pretty messed up with borders. How do I add the border=0 to the script again. It was better before.

Comment by jrrl

Made Tuesday, 30 of October , 2007 at 4:50 pm

[quote comment="40"]
Though before the update there was no border at all. Why is it there now?[/quote]

Yeah. That’ll happen. Here’s why:

In the first few releases, the img tag it spits out includes “border=0″. As of 0.1.5, I got rid of that and instead marked them as ‘class=”ttf”‘. This way, you can style these images with CSS however you wish, with or without border, etc.

The downside is that you kind of HAVE to style it, since titles are typically inside of anchor tags. I suppose the RIGHT thing to do would have been to have an option for whether to include border=0 and include it by default. Maybe in 0.1.7.

In the meantime, add something like this to your style.css:

img.ttf { border:0;}

Hope this helps!

Comment by jrrl

Made Tuesday, 30 of October , 2007 at 4:59 pm

[quote comment="41"]Oh well, okay. So I set this thing to white background to get rid of the borders, and at first it looks alright. But when I check back minutes later the borders are there again. It looks pretty messed up with borders. How do I add the border=0 to the script again. It was better before.[/quote]

Just add the following to your style.css:

img.ttf { border: 0;}

That should do it fine. Sorry for this change causing problems. In the long run, I still thing it was the right change to make, but I agree that the transition is, well, gross.

Pingback by Caracasa - You may say I’m a dreamer » TTFTitles Wordpress Plugin

Made Wednesday, 31 of October , 2007 at 8:45 am

[...] wieder ein neues Spielzeug für das Blog. Das Plugin TTFTitles fügt an beliebiger Stelle einen grafischen Schriftzug ein. Als Überschriften der [...]

Comment by Steveo

Made Wednesday, 31 of October , 2007 at 5:45 pm

You have done an awesome job making the original plugin even better :) Just installed the plugin in the latest WP 2.3.1 (with K2 theme, r582) and it works perfectly.

Cheers!!

Pingback by freyah.uni.cc

Made Thursday, 1 of November , 2007 at 6:25 am

[...] back to normal. Thank to my bf Nile  . He helped me in installing and understanding the new image headline plugin for wp 2.3 Thank you so much beh! [...]

Comment by jerrydrussell

Made Thursday, 1 of November , 2007 at 11:40 am

Do you know of a way to get this to work with widget titles???

I’m working on it right now, and if i figure it out I’ll be happy to post about it

Comment by jrrl

Made Thursday, 1 of November , 2007 at 6:10 pm

[quote comment="47"]Do you know of a way to get this to work with widget titles???
[/quote]

Unfortunately, widgets are still new enough that the code isn’t peppered with action and filter points like the rest of the code. What that means is that it is hard to have plugins really change them much.

That said… here’s what you can do.

The file that contains all the default widget code is BASE/wp-includes/widgets.php. In each widget’s code, the title is produced by an expression like this:

$before_title . $title . $after_title

You can give them prettified titles by changing these to look like this:

$before_title . the_ttftext($title, false) . $after_title

I haven’t looked at a lot of third party widgets, so I can’t guarantee that the expression will look the same, but it should be pretty similar.

In the future (and I’ll propose this officially if I can figure out who to send the proposal to), I’d love to see all of the widgets make some call like the_widget_title which would then have a filter hook for plugins like this one.

Let me know how it works out.

Comment by Brad Ramsey

Made Thursday, 1 of November , 2007 at 8:12 pm

If you wanted to use this inline with a post/page you’d have to have a PHP plugin and then call the_ttftext function. It would be better to have a command like [ttf=Convert this Text&style=Style Name] or however that would work. I have a YouTube plugin that works the same way.

Comment by jrrl

Made Thursday, 1 of November , 2007 at 8:29 pm

[quote comment="49"]If you wanted to use this inline with a post/page you’d have to have a PHP plugin and then call the_ttftext function. It would be better to have a command like [ttf=Convert this Text&style=Style Name] or however that would work. I have a YouTube plugin that works the same way.[/quote]

Exactly what I am working on for version 1.0! What’s the name of the YouTube plugin? (For educational purposes only, of course!)

Comment by Bloody

Made Friday, 2 of November , 2007 at 3:41 am

Hi John. Thanks for the answer.
Actually, I think I found where the probleme was coming from. When using OpenType fonts accent won’t show-up. I now use true-type and everything is fine. Any idea why ?

Merci beaucoup. Excellent travail !

Pingback by Ugh! New teeth, new plugins and the death of a project. » the Spun Puppy

Made Friday, 2 of November , 2007 at 10:43 am

[...] subset of the blogging world that may gain something from it. Most specifically those people using TTFTitles by John Leavitt, as this plugin is strictly a companion to his own that adds some functionality to [...]

Comment by philip

Made Saturday, 3 of November , 2007 at 1:07 pm

ive chmod’d it but it still says “home/cautiond/public_html/hosting/wp-content/plugins/ttftitles/cache” is not writable” any helP?

Comment by philip

Made Saturday, 3 of November , 2007 at 1:28 pm

any help?

Comment by jrrl

Made Saturday, 3 of November , 2007 at 2:38 pm

[quote comment="53"]ive chmod’d it but it still says “home/cautiond/public_html/hosting/wp-content/plugins/ttftitles/cache” is not writable” any helP?[/quote]

I’m not sure what to tell you. If you do ‘chmod 777′ on a directory, it really should be writable afterwards.

Comment by philip

Made Saturday, 3 of November , 2007 at 4:29 pm

yea im cmohd it and then like when i extracted it and put it into my ftp theres no cache folder so could you give me a partial step by tep after i install it?

Comment by BGH Quiz

Made Sunday, 4 of November , 2007 at 11:01 pm

[quote comment="43"]Just add the following to your style.css:

img.ttf { border: 0;}[/quote]
Thank you for replying. I just installed the plugin called myCSS and added .tff {border:0;} to it. That seems to do it for me, and when I switch themes I do not have to add it to every theme again.

Comment by leanne

Made Monday, 5 of November , 2007 at 4:55 pm

Where is it looking for the background image? I’m putting it in with the theme images, should it go in the cache folder or… ? Does it have to be a .png? More info on that feature would be great.

Comment by diana

Made Monday, 5 of November , 2007 at 8:04 pm

Hi, very nice plugin. However, how do I choose the specific style that I want to use? I read through everything, and I just seem can’t get it to work. do you insert something like ” ” for a specific style?

Comment by Peyo

Made Tuesday, 6 of November , 2007 at 11:20 am

Works fine on my blog!!!
Thanks!

Comment by Peyo

Made Tuesday, 6 of November , 2007 at 11:21 am

Excelent plugin!
Thanks.

Comment by Ricky Irvine

Made Tuesday, 6 of November , 2007 at 11:28 am

This looks freakin’ great! I’m excited to use it. However, I am wondering how secure or safe the fonts folder is?

Comment by Selvam

Made Tuesday, 6 of November , 2007 at 11:57 am

Great WP theme this one you have used.Congrats to John Leavitt to create nice theme…

Comment by jrrl

Made Tuesday, 6 of November , 2007 at 2:37 pm

Okay, okay. It has become clear that my “documentation” is lacking. I’ll do a new cut of it shortly, along with a new release with more contextual help. Sorry for any confusion.

Comment by jrrl

Made Tuesday, 6 of November , 2007 at 2:38 pm

[quote comment="64"]Great WP theme this one you have used.Congrats to John Leavitt to create nice theme…[/quote]

Thanks, but the theme was not designed by me. It is called kelabu-gray and can be found on the usual theme repositories.

Comment by Bloody

Made Wednesday, 7 of November , 2007 at 7:12 am

Hi there,

Is there a way I can force uppercase ?
It would be very usefull…

Thanks again.

Comment by David

Made Saturday, 10 of November , 2007 at 3:52 pm

This is what I get “Cache directory “/blog/wp-content/plugins/ttftitles/cache” is not writable.Cache directory “/blog/wp-content/plugins/ttftitles/cache” is not writable.Cache directory “/blog/wp-content/plugins/ttftitles/cache” is not writable.”
I use Yahoo Small Business and my call to them tells me for security reasons they so not allow cmod 777. Too many of the helpers do not know answers to questions like this and just say bad info. Is there any point of trying to make this work or is Yahoo a dead end when it comes to adding this plug-in. Thanks

Comment by jrrl

Made Saturday, 10 of November , 2007 at 5:52 pm

[quote comment="70"]This is what I get “Cache directory “/blog/wp-content/plugins/ttftitles/cache” is not writable.Cache directory “/blog/wp-content/plugins/ttftitles/cache” is not writable.Cache directory “/blog/wp-content/plugins/ttftitles/cache” is not writable.”
I use Yahoo Small Business and my call to them tells me for security reasons they so not allow chmod 777. Too many of the helpers do not know answers to questions like this and just say bad info. Is there any point of trying to make this work or is Yahoo a dead end when it comes to adding this plug-in. Thanks[/quote]

Sigh. Not entirely sure. I should be, but I let my Yahoo hosting account expire, so I can’t test.

I have two ideas for you. First, if there is already a writable directory, you could use that (or a subdirectory, since you don’t want the cache expiration deleting other files). I know there is a tmp directory with Yahoo hosting, but I can’t remember if that is visible by URL.

The other idea is to see if you can change the cache directory to be owned by the same user that runs the web server. For example, on my site the web server (and therefore PHP) is run by user ‘apache’ in the ‘apache’ group. If you can chown the directory to be owned by that user, then you could get away with a chmod 755.

I’ll see what else I can find out. I really should have kept that account up to date.

Comment by jrrl

Made Saturday, 10 of November , 2007 at 5:53 pm

[quote comment="67"]Hi there,

Is there a way I can force uppercase ?
It would be very usefull…
[/quote]

Good. Idea. I’ll add this to the todo list.

Pingback by Augenblicke » Blog Archive » Neues Plugin installiert

Made Sunday, 11 of November , 2007 at 12:53 pm

[...] und zwar das Ttftitles Wordpress Plugin. Damit werden die Überschriften von Beiträge mit beliebigen Truetype Schriften dargestellt. Das [...]

Comment by lcv

Made Monday, 12 of November , 2007 at 7:08 am

Hi,
this is a beautiful plugin, but my only problem concerns with the usage of ttftext function with the template tag the_date.
How can I implement this solution to my blog?
On the contrary it works fine with titles.

bye
lcv

Comment by Joshua Meadows

Made Monday, 12 of November , 2007 at 5:28 pm

Hey Jrrl,

I’m mixvio from the Wordpress support forum; I was the one that posted the quick hack to get Image Headlines to work in the latest Wordpress.

I’m trying to switch over to your version and I can’t get it to work at all. I’m not sure what to do, but in my site when I try to use this I just get blanks, no title whatsoever.

Is there a “default” piece of code anywhere or not? I can’t seem to find anything explaining what I need to paste where the titles go to get it to render properly.

Any help would be appreciated; if possible can you shoot me a message back via email, since I don’t know if I’ll get an alert when you reply here. Thanks so much!

Comment by jrrl

Made Tuesday, 13 of November , 2007 at 12:53 am

[quote comment="76"]I’m trying to switch over to your version and I can’t get it to work at all. I’m not sure what to do, but in my site when I try to use this I just get blanks, no title whatsoever.

Is there a “default” piece of code anywhere or not? I can’t seem to find anything explaining what I need to paste where the titles go to get it to render properly.
[/quote]

Version 0.2 is just out and includes a Usage tab that should help with this. I’ll drop you email as well.

Comment by jrrl

Made Tuesday, 13 of November , 2007 at 1:15 am

[quote comment="75"]Hi,
this is a beautiful plugin, but my only problem concerns with the usage of ttftext function with the template tag the_date.
How can I implement this solution to my blog?
[/quote]

Easily done, actually, although weird to explain. Basically, you just have to wrap the_date with the_ttftext. So your call that looks like the_date(…) becomes the_ttftext(the_date(…)).

The weirdness comes in that you have to tell the_date not to actually echo the date to your document, but rather just return it to the_ttftext. The fourth argument to the_date does exactly this. If it is false, the value will just be returned. However, since this is the fourth argument, you need to include dummy values for the first three. So, if you just had the_date(), you need to have the_date(”",”",”",false).

Does this help?

Comment by BGH Quiz

Made Tuesday, 13 of November , 2007 at 4:50 am

I’ve just upgraded, but now noticed bugs.

The tab “fonts” shows this error for every font:

Could not find style “font_name=A Little Pot&font_size=40&max_width=500&font_color=000&effect_type=none&bg_color=FFF&bg_transparent=true”A Little Pot”

The fonts are not displayed anymore.

Transparancy only works for .png files, but not on .gif files.

The new tab “Usage” is great. Thank you.

Comment by Olly

Made Tuesday, 13 of November , 2007 at 4:56 am

Hi,

I have installed your plugin on my blog and have uploaded/installed the fonts I was wanting to use. I was wonderin if you or someone could tell me where I have to insert text (and what text) to get just the post titles (h3) to change. I dont need the main h1 titles as I have custom headers. I am currently using the newest wordpress and K2 as a theme.

Thanks very much!

Comment by Graeme

Made Tuesday, 13 of November , 2007 at 8:13 am

You added an “echo=true/false” parameter to the_ttftext but forgot to use it yourself in the “show_fonts_page” functions. That’s why BGH is having the problem above.

I added “false” to the commands and voila, it all worked. The same for my own use of that command.

Comment by Graeme

Made Tuesday, 13 of November , 2007 at 8:21 am

Just looked at new v0.2.1 and you’ve put “true” instead of “false” in the line above that I mention…that’s not right, is it?

Surely you just want to return the text for the existing echo to display. With true, it’ll display it instead and the original echo will be pointless.

Also, there’s a line further down in the next function with the same glitch. Don’t know if its used at all though.

Comment by jrrl

Made Tuesday, 13 of November , 2007 at 8:22 am

[quote comment="79"]I’ve just upgraded, but now noticed bugs.

The fonts are not displayed anymore.

Transparancy only works for .png files, but not on .gif files.
[/quote]

Just fixed the font thing. I screwed up with the change to the_ttftext and bit myself. Sorry!

Transparency should work for GIFs, but only as much as GIFs support transparency. GIFs in general do a crappy job with transparency unless you want hard edges to the transparent region. Use PNGs if you can.

Glad you like the usage tab.

Comment by jrrl

Made Tuesday, 13 of November , 2007 at 9:05 am

[quote comment="82"]Just looked at new v0.2.1 and you’ve put “true” instead of “false” in the line above that I mention…that’s not right, is it?
[/quote]

Sigh. And there goes v2.2 out the door.

Never release code before bed or before caffeine.

Comment by Graeme

Made Tuesday, 13 of November , 2007 at 9:08 am

I know what you mean, but a great plugin all the same. Works great. Does exactly what it says on the tin ;) Thanks.

And great service there. Within 15 minutes of mentioning it, ping…sorted :D

Comment by jrrl

Made Tuesday, 13 of November , 2007 at 9:16 am

[quote comment="80"]Hi,

I have installed your plugin on my blog and have uploaded/installed the fonts I was wanting to use. I was wonderin if you or someone could tell me where I have to insert text (and what text) to get just the post titles (h3) to change. I dont need the main h1 titles as I have custom headers. I am currently using the newest wordpress and K2 as a theme.
[/quote]

Usually the post title is produced by the_title(…) somewhere in index.php or single.php (or both).

You should be able to change the_title to the_ttftitle as described in the usage tab (v0.2 and up).

Comment by Dark

Made Tuesday, 13 of November , 2007 at 10:48 am

Here not shows the title , if I take not show the title and show just “text” in image.How I show the normal title in my page?

Comment by Joshua Meadows

Made Tuesday, 13 of November , 2007 at 12:48 pm

EEE, that worked 100%. Thanks so much for the update, really appreciate the quick help!

Comment by Joshua Meadows

Made Tuesday, 13 of November , 2007 at 4:31 pm

Hey Jrrl,

Another functionality suggestion; is it possible to implement something that lets you change the text alignment in the titles? This was something that was missing from ColdForged’s original plugin and something I always wanted.

Like all titles are output left-align. Is there any way to choose right, centered or justified to the user-defined maximum width? (justification would be AWESOME)

Thanks!

Comment by BGH Quiz

Made Wednesday, 14 of November , 2007 at 12:43 am

Thank you very much for updating the plugin that fast. I know, GIF-transparency sometimes looks bad, and I also prefer PNGs, though some older versions of IE can’t handle PNGs. Instead of transparency you get a white background with some IE-versions. But I’ll use PNGs now, and my readers should check out Firefox finally. LOL

Comment by marek

Made Wednesday, 14 of November , 2007 at 7:36 pm

great plugin
Wish I could use it inside a post or page easily!

One suggestion: could you show more examples of usage of the plugin? This would help people with less programming understanding by huge amounts!

Thanks again!

Comment by Camille

Made Thursday, 15 of November , 2007 at 1:44 am

Hi,

I really want to use this plugin, I’ve uploaded it and I have the font I want to use but I have this error:

Cache directory “/home/cinder/public_html/wp-content/plugins/ttftitles/cache” is not writable.Cache directory “/home/cinder/public_html/wp-content/plugins/ttftitles/cache” is not writable.

I get that there is something I have to chmod and I to my understanding it’s a file called “cache” but I can’t seem to find it so that I could chmod 777 it.

Any help would be appreciated, thanks!

Comment by jrrl

Made Thursday, 15 of November , 2007 at 2:00 am

[quote comment="93"]Hi,

I really want to use this plugin, I’ve uploaded it and I have the font I want to use but I have this error:

Cache directory “/home/cinder/public_html/wp-content/plugins/ttftitles/cache” is not writable.Cache directory “/home/cinder/public_html/wp-content/plugins/ttftitles/cache” is not writable.

I get that there is something I have to chmod and I to my understanding it’s a file called “cache” but I can’t seem to find it so that I could chmod 777 it.

Any help would be appreciated, thanks![/quote]

Well, the cache directory seems to be at: /home/cinder/public_html/wp-content/plugins/ttftitles/cache

If there is not a directory there call cache, you could create one. In either case, you need to make it so that web server can write to it, which usually means ‘chmod 777′ as you say.

Did you upload the entire ttftitles directory or just the ttftitles.php file?

Comment by Camille

Made Thursday, 15 of November , 2007 at 9:02 pm

[quote comment="94"][quote comment="93"]Hi,

I really want to use this plugin, I’ve uploaded it and I have the font I want to use but I have this error:

Cache directory “/home/cinder/public_html/wp-content/plugins/ttftitles/cache” is not writable.Cache directory “/home/cinder/public_html/wp-content/plugins/ttftitles/cache” is not writable.

I get that there is something I have to chmod and I to my understanding it’s a file called “cache” but I can’t seem to find it so that I could chmod 777 it.

Any help would be appreciated, thanks![/quote]

Well, the cache directory seems to be at: /home/cinder/public_html/wp-content/plugins/ttftitles/cache

If there is not a directory there call cache, you could create one. In either case, you need to make it so that web server can write to it, which usually means ‘chmod 777′ as you say.

Did you upload the entire ttftitles directory or just the ttftitles.php file?[/quote]

Hi, Jrrl

I really appreciate you taking the time to help me with this. I did upload everything in the zip file. Im gonna try creating a cache directory like you suggested. Thanks a lot! :)

Comment by Joelle

Made Thursday, 15 of November , 2007 at 9:09 pm

Hi there!

I upgraded this plug-in tonight per the prompt in the plug-ins control panel in WP. However, when I did so, it is displaying all of my previously styled titles as the default. I checked the TTF Title interface and it still shows all my custom styles in the control panel. I even tried opening each one and saving, thinking that might “reset” something, but… no go.

I’m not sure why it’s reverting everything to the default. I’ve done nothing but upgrade.

Thanks!

Comment by Camille

Made Thursday, 15 of November , 2007 at 9:12 pm

Jrrl,

That worked! I so wanna give you a cyber hug right now. :)

Thanks, thanks, thanks!

Comment by jrrl

Made Thursday, 15 of November , 2007 at 9:23 pm

[quote comment="98"]Hi there!

I upgraded this plug-in tonight per the prompt in the plug-ins control panel in WP. However, when I did so, it is displaying all of my previously styled titles as the default. I checked the TTF Title interface and it still shows all my custom styles in the control panel. I even tried opening each one and saving, thinking that might “reset” something, but… no go.

I’m not sure why it’s reverting everything to the default. I’ve done nothing but upgrade.

Thanks![/quote]

I bet you’re using the_ttftext, right? I did a big no-no and changed the arguments, adding a new one in the middle. Mea cupla. I won’t do it again. I almost didn’t do it this time, but I really wanted the function to mirror the_title.

See the new ‘usage’ tab. Sorry!

Comment by Joelle

Made Thursday, 15 of November , 2007 at 9:48 pm

Thanks for responding. :) I did read that, but to be honest, I’m not sure what that means for me. What am I supposed to change? lol I’m not much of a php chick.

Comment by Joelle

Made Thursday, 15 of November , 2007 at 9:50 pm

As an example:

:) Thanks!

Comment by Joelle

Made Thursday, 15 of November , 2007 at 9:50 pm

shoot. It didn’t let me give you an example. Sorry about that.

Comment by Joelle

Made Thursday, 15 of November , 2007 at 9:51 pm

Ah HA! I just figured it out. haha! Sorry about flooding your comments. ;-)

Comment by Pod

Made Friday, 16 of November , 2007 at 2:13 am

i found it doesn’t support asian fonts.
for me when a font name is korean, the_ttftitle shows error message, “Font “BROKEN-FONT-NAME” was not found.”

Comment by Joycapri

Made Friday, 16 of November , 2007 at 12:19 pm

I’ve been using it for a month,Nice plugin!

Comment by jrrl

Made Friday, 16 of November , 2007 at 12:35 pm

[quote comment="105"]i found it doesn’t support asian fonts.
for me when a font name is korean, the_ttftitle shows error message, “Font “BROKEN-FONT-NAME” was not found.”[/quote]

Hrm. I know a few sites are successfully using it with Asian fonts. Without more information, though, I’m not sure how to help you. You might try a different font to see if it is a problem specific to that font. I’d be interested in hearing more in any case to see if I can make it work.

Comment by YMO

Made Friday, 16 of November , 2007 at 11:33 pm

Great plugin! I’ve gotten it working perfectly for titles, but am having problems applying to my sidebar. I’m using the widgets and can’t figure out where to iinclude the the__ttf tag (specifically, I’m trying to apply it to the category heading, tag title, etc). Not really a problem with the widget, but if you have suggestions they’d be appreciated

Comment by jrrl

Made Friday, 16 of November , 2007 at 11:46 pm

[quote comment="92"]great plugin
Wish I could use it inside a post or page easily!

One suggestion: could you show more examples of usage of the plugin? This would help people with less programming understanding by huge amounts!

Thanks again![/quote]

v1.0 will/should provide a way to use it in a page/post easily. Just not ready yet.

Also, planning a ‘cookbook’ page that will give usage examples.

Comment by jrrl

Made Friday, 16 of November , 2007 at 11:47 pm

[quote comment="108"]Great plugin! I’ve gotten it working perfectly for titles, but am having problems applying to my sidebar. I’m using the widgets and can’t figure out where to iinclude the the__ttf tag (specifically, I’m trying to apply it to the category heading, tag title, etc). Not really a problem with the widget, but if you have suggestions they’d be appreciated[/quote]

Widgets are a problem, I’m afraid. See comment #34 for some notes on this. I hope to come up with a solution at some point.

Comment by Joe W.

Made Sunday, 18 of November , 2007 at 10:53 am

Until we get web fonts, this is the next best thing. Awesome plugin!

Comment by Jenny

Made Wednesday, 21 of November , 2007 at 3:02 am

Hi there! Great plugin!!

Question: How do I use the plugin with the “wp_list_pages()” function? I tried the following to no avail:

Thanks!
Jenny

Comment by africanvanielje

Made Wednesday, 21 of November , 2007 at 8:01 pm

Hi, I think this is a great idea and I’ve downloaded, and uploaded, but I can’t seem to get my own fonts on. I;ve uploaded them and it says they have been added to the font directory but they don’t show anywhere. I have chmod’ed all the directories etc and it still won’t show up. I’ve checked in file manager and they are in the right folders, but nada? help please. I really wanna use this cool tool. thanks

Comment by african vanielje

Made Friday, 23 of November , 2007 at 7:12 am

Hey, great plugin. I’ve finally got myself sorted. Just one thing. How do I take off the shadow and border around all images. I would just like a plain white border. ThaNKS

Comment by Leila

Made Friday, 23 of November , 2007 at 11:48 am

Well, after poking around the code I finally figured out that the_ttftext was wonky because of that tricky little $echo…only to arrive here and see that Graeme had pointed it out earlier!

Lovely plugin, though.

Comment by jrrl

Made Friday, 23 of November , 2007 at 12:08 pm

[quote comment="117"]Question: How do I use the plugin with the “wp_list_pages()” function? [/quote]

You could probably pass the_ttftext(yourtext,false,style) in as the title_li argument. I haven’t had a chance to test it, but it looks like it would work from a quick glance at the wp code.

Comment by jrrl

Made Friday, 23 of November , 2007 at 12:10 pm

[quote comment="118"]Hi, I think this is a great idea and I’ve downloaded, and uploaded, but I can’t seem to get my own fonts on. I;ve uploaded them and it says they have been added to the font directory but they don’t show anywhere. I have chmod’ed all the directories etc and it still won’t show up. I’ve checked in file manager and they are in the right folders, but nada? help please. I really wanna use this cool tool. thanks[/quote]

Hmm. Without knowing more about your setup or fonts, I am not sure what to suggest. Perhaps there is something about your fonts that it doesn’t like. You can drop me more detailed info by email if you like.

Comment by jrrl

Made Friday, 23 of November , 2007 at 12:15 pm

[quote comment="121"]Hey, great plugin. I’ve finally got myself sorted. Just one thing. How do I take off the shadow and border around all images. I would just like a plain white border. ThaNKS[/quote]

I really should add a simple outline option. If you check the ‘no effect’ option on the edit style page, that should eliminate the shadow. The outline is probably being caused by the image being inside an anchor tag. You probably want to add something like this to your css file:

img.ttf { border: 0; }

Comment by jrrl

Made Friday, 23 of November , 2007 at 12:16 pm

[quote comment="122"]Well, after poking around the code I finally figured out that the_ttftext was wonky because of that tricky little $echo…only to arrive here and see that Graeme had pointed it out earlier!
[/quote]

Mea Culpa! I will make sure I am properly caffeinated before releasing version 0.3 (with color pickers and contextual help!).

Comment by Dave

Made Saturday, 24 of November , 2007 at 3:50 am

Long time user of the Image Headlines plugin, was sad to see it was not 2.3 compatible. Hacked it to work with 2.2. THen I started work on this new site, http://www.starfleetnews.com and installed a fresh WordPress 2.3.1 and searched and discovered your revision.

I like! Works great. But for some reason, it won’t render transparent GIF files at all. It does great PNG files, but I am having issues with IE6 compatibility. Am I doing something wrong that it won’t make transparent GIFs? Am I missing a library on my server or something?

I guess it’s not that big a deal, I can leave my site’s background a solid color, but I wanted to use some Web 2.0 looking background stripes or some other wizardry.

davedorm@gmail.com

Comment by Kippy

Made Saturday, 24 of November , 2007 at 4:56 am

I need a hack for the time on my archive page. It’s showing the month as the_time(’F, Y’) and wrapping it in the_ttftext(the_time(’F, Y’)) doesn’t seem to be having any effect.
Great bloody job, by the way!

Comment by jrrl

Made Saturday, 24 of November , 2007 at 9:06 am

[quote comment="130"]I need a hack for the time on my archive page. It’s showing the month as the_time(’F, Y’) and wrapping it in the_ttftext(the_time(’F, Y’)) doesn’t seem to be having any effect.[/quote]

You might try: the_ttftext(get_the_time(’F',’Y')).

Comment by jrrl

Made Saturday, 24 of November , 2007 at 9:33 am

[quote comment="129"]But for some reason, it won’t render transparent GIF files at all. It does great PNG files, but I am having issues with IE6 compatibility. Am I doing something wrong that it won’t make transparent GIFs? Am I missing a library on my server or something?

I guess it’s not that big a deal, I can leave my site’s background a solid color, but I wanted to use some Web 2.0 looking background stripes or some other wizardry.
[/quote]

Hmm. I am not sure what to say on this one. I just tried some transparent GIFs and they seemed to work (although I did discover a couple of problems with background images that I’ll need to tackle in v0.4). If you have shadows, they will look kind of junky in GIFs since they only support 1 bit of transparency, but otherwise, they should work.

Pingback by GOINGSTRANGEdotORG ♥ » TTFtitles

Made Saturday, 24 of November , 2007 at 11:06 pm

[...] Visit the Plugin Homepage Tags: plugins, ttftitles, wordpress (1 votes, average: 5 out of 5)  Loading … | 6 Views | Last modified: November 25, 2007 [...]

Comment by Jenny

Made Monday, 26 of November , 2007 at 12:43 am

[quote comment="123"][quote comment="117"]Question: How do I use the plugin with the “wp_list_pages()” function? [/quote]

You could probably pass the_ttftext(yourtext,false,style) in as the title_li argument. I haven’t had a chance to test it, but it looks like it would work from a quick glance at the wp code.[/quote]

jrrl,
I tried the following:
the_ttftext(wp_list_pages());

I also tried: wp_list_pages(the_ttftext());

Neither worked.

I also tried all sorts of variations on those two snippets. Can you think of any other ideas??? Thanks for your help!!!

Comment by jrrl

Made Monday, 26 of November , 2007 at 1:05 am

[quote comment="135"][quote comment="123"][quote comment="117"]Question: How do I use the plugin with the “wp_list_pages()” function? [/quote]

You could probably pass the_ttftext(yourtext,false,style) in as the title_li argument. I haven’t had a chance to test it, but it looks like it would work from a quick glance at the wp code.[/quote]

jrrl,
I tried the following:
the_ttftext(wp_list_pages());

I also tried: wp_list_pages(the_ttftext());

Neither worked.

I also tried all sorts of variations on those two snippets. Can you think of any other ideas??? Thanks for your help!!![/quote]

Ah. I think I misunderstood your original question. Do you want to just change the heading of the pages list to an image or the whole list?

If the whole list, I really am not sure what to tell you. Basically, you’d need to write a new plugin that hooks into the filters in wp_list_pages and somehow knows the widths, etc. that you need without messing up the HTML that WP creates.

OTOH, if you just meant the title, let me clarify what I wrote earlier. Try this cryptic little ditty:

wp_list_pages(’title_li=’ . urlencode(the_ttftitle(”YOUR TITLE”,false, “YOUR STYLENAME”)));

That should create the image from your title and then pass it into wp_list_pages in a usable format. Haven’t tested it, I’m afraid.

Comment by Jenny

Made Monday, 26 of November , 2007 at 1:16 am

[quote comment="136"]
Ah. I think I misunderstood your original question. Do you want to just change the heading of the pages list to an image or the whole list?

If the whole list, I really am not sure what to tell you. Basically, you’d need to write a new plugin that hooks into the filters in wp_list_pages and somehow knows the widths, etc. that you need without messing up the HTML that WP creates.

OTOH, if you just meant the title, let me clarify what I wrote earlier. Try this cryptic little ditty:

wp_list_pages(’title_li=’ . urlencode(the_ttftitle(”YOUR TITLE”,false, “YOUR STYLENAME”)));

That should create the image from your title and then pass it into wp_list_pages in a usable format. Haven’t tested it, I’m afraid.[/quote]

jrrl,
Thank you for the quick response!

I am looking to format the entire list and not just the header. My php skills are not quite up to plugin-creating snuff, so it looks like I am out of luck for the time being. ;)

Your response was very helpful, though, so thanks again!

Jenny

Comment by Ye

Made Tuesday, 27 of November , 2007 at 7:17 pm

donot know how to use it.
Why not give us a simple example.

Comment by MilleSabords

Made Wednesday, 28 of November , 2007 at 6:24 pm

Hi,
I use Headline Images for a long time on my site.Now i tried to test everything for upgrade to WP 2.3. I found your plug-in and installed it on a local WAMP. The install is OK, i’ve created a cache directory and png or gif are well created in it. But i cant get title images on my test web site. Nothing else than the Title. Looking with Firebug, i’ve found the code is:

is the \ after cache instead of / the cause. I’m not able to change.
Even on TTFtitles styles configuration page, the Sample Column does’nt show the sample image.
Thank’s for your help.

Comment by Joanne

Made Thursday, 29 of November , 2007 at 7:30 am

I love this! It works perfectly and makes my site look beautiful, thank you!!

Comment by jrrl

Made Thursday, 29 of November , 2007 at 9:32 pm

[quote comment="142"]Hi,
I use Headline Images for a long time on my site.Now i tried to test everything for upgrade to WP 2.3. I found your plug-in and installed it on a local WAMP. The install is OK, i’ve created a cache directory and png or gif are well created in it. But i cant get title images on my test web site. Nothing else than the Title. Looking with Firebug, i’ve found the code is:

is the \ after cache instead of / the cause. I’m not able to change.
Even on TTFtitles styles configuration page, the Sample Column does’nt show the sample image.
Thank’s for your help.[/quote]

Ah, I think I got too clever for my own good. I had the code set the slash to the type of system your site was one when perhaps I should have just left it a normal forward slash.

0.3 is coming out this weekend and I will fix that. Sorry!

Comment by jrrl

Made Thursday, 29 of November , 2007 at 9:33 pm

[quote comment="139"]donot know how to use it.
Why not give us a simple example.[/quote]

My apologies. I am planning a sort of cookbook of examples, but have not had time to get it together. The ‘usage’ tab was supposed to help, but I guess it was not enough. The cookbook is coming tho…

Comment by XSLord

Made Friday, 30 of November , 2007 at 4:25 pm

Please help!

I just red the usage page (and also the above postings) – i am trying to get may blogname changed with this plugin, so i went to the header.php file and changed the following (it’s after the body tag):

<a href=”">

into

<a href=”">

Bud nothing changes, what am i doing wrong, cause using the following (test):

<a href=”">

Just works – the text “TESTING” is displayed as an image!, but how do get the blogname as well?

Thanx for any help!

Comment by XSLord

Made Friday, 30 of November , 2007 at 4:29 pm

Sorry the previous post went wrong! retry!

Please help!

I just red the usage page (and also the above postings) – i am trying to get may blogname changed with this plugin, so i went to the header.php file and changed the following (it’s after the body tag):

<h1><a href=”<?php echo get_settings(’home’); ?>”><?php bloginfo(’name’); ?></a></h1>

into

<h1><a href=”<?php echo get_settings(’home’); ?>”><?php the_ttftext(bloginfo(’name’)); ?></a></h1>

Bud nothing changes, what am i doing wrong, cause using the following (test):

<h1><a href=”<?php echo get_settings(’home’); ?>”><?php bloginfo(’name’); ?><?php the_ttftext(”TESTING”);?></a></h1>

Just works – the text “TESTING” is displayed as an image!, but how do get the blogname as well?

Thanx for any help!

Comment by jrrl

Made Sunday, 2 of December , 2007 at 8:52 am

[quote comment="149"]
I just red the usage page (and also the above postings) – i am trying to get may blogname changed with this plugin, so i went to the header.php file and changed the following (it’s after the body tag):

<h1><a href=”<?php echo get_settings(’home’); ?>”><?php bloginfo(’name’); ?></a></h1>

into

<h1><a href=”<?php echo get_settings(’home’); ?>”><?php the_ttftext(bloginfo(’name’)); ?></a></h1>

[/quote]

Almost right… Try this instead:

<h1><a href=”<?php echo get_settings(’home’); ?>”><?php the_ttftext(get_bloginfo(’name’)); ?></a></h1>

bloginfo echoes the value, but get_bloginfo just returns it.

Comment by XSLord

Made Sunday, 2 of December , 2007 at 9:23 am

thanx

that just indeed resolved it!

Comment by ottzen

Made Sunday, 2 of December , 2007 at 11:31 am

Hi there!
Looking forward to getting this plugin working!
Two problems though:
1. Every time i save changes to the cache directory he duplicates the backslashes! So if i press it 3 times I end upp with “C:\\\\\\\\bla”! That can’t be good…
2. I don’t get the images to show. My (halfass qualified) guess would be the fact that the the_ttftitle function somehow adds a backslash infront of the filename. So that makes it “…/cache/\349bdje—.png”.
Kinda bad that too isn’t it?

Hope you can help and its not only my computer or something.

Comment by Paul P

Made Wednesday, 5 of December , 2007 at 3:45 pm

I may be too dumb to use this.

Any idea why I’m getting the following error:
[blockquote]Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/public_html/blog/wp-content/plugins/tfttitles/cache/5e58f4c7d67c1ca6c583a808e1049028.png) is not within the allowed path(s): (/home/userName:/usr/lib/php:/usr/local/sqmail:/usr/local/lib/php:/tmp) in /home/userName/public_html/blog/wp-content/plugins/tfttitles/ttftitles.php on line 952[/blockquote]

Trackback by Leonaut.com

Made Thursday, 6 of December , 2007 at 10:54 am

The TTFTitles WordPress Plugin…

This plugin lets you use images to replace the titles of your posts, thus circumventing the problem of guessing what fonts your end-users might have installed. This is primarily a reworking of the Image Headlines plugin by Brian “ColdForged” Dupuis, …

Comment by Jenny

Made Sunday, 9 of December , 2007 at 3:42 pm

You likely need to create a folder called “cache” at l/blog/wp-content/plugins/tfttitles/cache/

[quote comment="160"]I may be too dumb to use this.

Any idea why I’m getting the following error:
[blockquote]Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/public_html/blog/wp-content/plugins/tfttitles/cache/5e58f4c7d67c1ca6c583a808e1049028.png) is not within the allowed path(s): (/home/userName:/usr/lib/php:/usr/local/sqmail:/usr/local/lib/php:/tmp) in /home/userName/public_html/blog/wp-content/plugins/tfttitles/ttftitles.php on line 952[/blockquote][/quote]

Comment by kesha

Made Monday, 10 of December , 2007 at 1:32 am

how do u remove the border?

Comment by jrrl

Made Monday, 10 of December , 2007 at 10:07 pm

[quote comment="172"]how do u remove the border?[/quote]

Add something like this to your style sheet:

img.ttf { border: 0; }

Hope this helps!

Comment by Mike_WCFL

Made Monday, 10 of December , 2007 at 11:49 pm

I’m using WP 2.3.1 and I just downloaded the current version of this plugin. Nice concept…but (oh no)

I copied the ttftitles directory and all subdirs to my plugins directory. Then, I created a cache directory in the ttftitles directory and chmod to 777.

I activated the plugin and went to set it up. When I get to the Styles page, under “Add New Style”, I see Unknown Error creating file ‘/MYSERVERDIRECTORIES/ttftitles/cache and some LONG filename with a .png extension. This is shown twice, then I see a list with 2 styles.

When I go to the FONTS page, each font is listed then under “sample”, it says Unknown Error creating file ‘/MYSERVERDIRECTORIES/ttftitles/cac (rest is chopped off).

I have tried different installation directories, changing the paths under cache and fonts setup, and also changing the $echo = true lines mentioned WAY up here to $echo = false.

I still get errors. Hope I detailed enough. Thanks for any help!

Comment by Mike_WCFL

Made Tuesday, 11 of December , 2007 at 12:07 am

Ok, let me update real quick – In the ttftitles.php file, I set …”debug” to false. So, no errors now. Now I have to work on getting the titles to show.

Comment by jrrl

Made Tuesday, 11 of December , 2007 at 12:19 am

[quote comment="174"]
I activated the plugin and went to set it up. When I get to the Styles page, under “Add New Style”, I see Unknown Error creating file ‘/MYSERVERDIRECTORIES/ttftitles/cache
[/quote]

Okay… is /MYSERVERDIRECTORIES/ the root of your wordpress install? If so, and you have the cache directory down in your plugins (like it is by default), then you need to aim the cache directory setting to be /MYSERVERDIRECTORIES/wp-content/plugins/ttftitles/cache

Does that make sense? If not, I am somewhat at a loss.

Comment by Mike_WCFL

Made Tuesday, 11 of December , 2007 at 12:38 am

Yes, I was using MYSERVERDIRECTORIES instead of
/home/UserName/public_html/visitwesleychapelfl/wp-content/plugins/ttftitles/cache

I turned debug back to ON, but either way, the fonts are “not found”. They are listed on the configuration screen, but no samples shown. When I added the tag to my index.php file, it shows “Font “warp1.ttf” not found on the page. The fonts are in the default font directory.

I edited the ttftitles.php file to show the array values of $ttftitles_defaults and it is getting the correct directories for the cache and fonts.

Hope that describes more. Thanks!

Comment by BGH Quiz

Made Tuesday, 11 of December , 2007 at 5:03 am

I updated yesterday, have not changed any settings and now it shows

Unknown Error creating file ‘/www/htdocs/webl/wwww/wp-content/plugins/ttftitles/cache/b93252bebf97dbe5862b94163f36d1df.png’.Zoooooooom

on my page. What has changed now? And what can I do? The cache folder is still in the same place etc.

Comment by BGH Quiz

Made Tuesday, 11 of December , 2007 at 5:10 am

Do you still have the previous version and could you please offer it again? I really do not have the time to spend hours solving these problems now. I am in the middle of preparing for my state exam, and this is definitely wasting my time. I do not know why my titles always have to be screwed up after every update. :-(

Comment by BGH Quiz

Made Tuesday, 11 of December , 2007 at 7:40 am

Thank you very much for sending 0.2.2 again. Now everything works fine again. I hope you’ll find a way to solve the current problem. I’ll check back again.

Comment by Mike_WCFL

Made Tuesday, 11 of December , 2007 at 8:23 am

If possible, please send me this version (0.2.2) since I am having the same issues described in comment #126 by BGH Quiz.

Thank you!

Comment by jrrl

Made Tuesday, 11 of December , 2007 at 8:27 am

[quote comment="181"]If possible, please send me this version (0.2.2) since I am having the same issues described in comment #126 by BGH Quiz.

Thank you![/quote]

I can certainly do that, Mike, although I believe the 0.4.2 release (hot off the presses) fixes the issue. The problem seems to have been me adding extra arguments to imagepng that aren’t available in all PHPs. All that just to try to shrink the files a few bytes. My bad.

Comment by Mike_WCFL

Made Tuesday, 11 of December , 2007 at 8:32 am

jrrl!

Success…just downloaded the new version and all problems are fixed. Great (and fast) work!

Thanks!

Comment by BGH Quiz

Made Tuesday, 11 of December , 2007 at 3:41 pm

Thank you very much. I just installed the new version, and things are working so far. :-D

Comment by MilleSabords

Made Tuesday, 11 of December , 2007 at 6:56 pm

I’ve upgrade to 0.4.1 my local WAMP install, but i always have a problem, the text image is not showing thought the png is generated in cache directory.
The code of the page is not good because of an extra \ at the begening of the image file name.


28 novembre 2007

Comment by Paul

Made Tuesday, 11 of December , 2007 at 10:16 pm

I’ve spent a fun couple of days trying to work out why your plugin suddenly stopped working. The reason was the host recompiled PHP, with GD but withOUT the freetype sub-library. As all the image functions had an @ blocking the usual “Fatal Error” warnings it took a while to work out it was crashing at the imagettfbbox and imagettftext steps. (I had to take the @ marks out of the code). The issue manifested itself by the admin pages simply stopping as soon as they tried to display examples on the font and style pages.

Although it’s rare, it might be worth adding a function check to the initial admin page. As I’m not one to request too much for free, here’s a starter:

$ttf_functions = array(’getimagesize’,'imagealphablending’,'imagecolorallocate’,
‘imagecolorat’,'imagecolortransparent’,'imagecopymerge’,'imagecreatefromgif’,
‘imagecreatefromjpeg’,'imagecreatefrompng’,'imagecreatetruecolor’,
‘imagedestroy’,'imagefill’,'imagegif’,'imagesetpixel’,'imagesettile’,
‘imagettfbbox’,'imagettftext’);

foreach($ttf_functions as $ttf_function)
if(!function_exists($ttf_function)) $ttf_missing[] = $ttf_function;

if(count($ttf_missing)) {
$ttf_missingcount = count($ttf_missing);
$ttf_missing = implode(’, ‘,$ttf_missing);
printf (”Your PHP installation is missing the %s function%s. Please contact your host’s support desk, as %s function%s %s supposed to be there, and this plugin will NOT work without %s.”,
$ttf_missing, ($ttfmissingcount > 1 ? ’s’ : ”),
($ttfmissingcount > 1 ? ‘these’ : ‘this’),
($ttfmissingcount > 1 ? ’s’ : ”),
($ttfmissingcount > 1 ? ‘are’ : ‘is’),
($ttfmissingcount > 1 ? ‘them’ : ‘it’)
);
}

Pingback by Skydancer’s Playground » Blog Archive » 보완작업1 - Headline Image 수정

Made Wednesday, 12 of December , 2007 at 3:42 am

Comment by Celia

Made Wednesday, 12 of December , 2007 at 4:37 pm

I’m loving this theme, but having a bit of trouble lining up the the_ttftext images.

See: http://celiakyle.com/lsdesignstest1/

Most of the images are lined up except Blog. I tried giving the other links an h1 tag that had a bottom padding to hopefully shift those up a bit, but that didn’t exactly work. LOL

Any help you can provide is appreciated!

Thanks!

Comment by Chris

Made Thursday, 13 of December , 2007 at 6:54 am

Great plugin – You’re updating it far too frequently for me to keep up though!

I found a typo you might like to fix next time round on the groovy help text.

“Cache Lifetime is how many days an imae is allowed to persist before being purged.”

FWIW I’d put the unit marker “days” next to the entry box, it’s illogical for it to be missing.

Thanks!

Comment by Dustin Barbour

Made Friday, 14 of December , 2007 at 3:30 pm

Hrmmm… I install the plugin and the admin interface is all there. I upload a font via SSH, go back to the admin interface and the “edit” and “delete” links have disappeared. Further, once putting the_ttftitle() call into my theme breaks the page terribly. Any ideas?

Comment by Dustin Barbour

Made Friday, 14 of December , 2007 at 3:43 pm

A screenshot: broken admin interface

Comment by jrrl

Made Friday, 14 of December , 2007 at 4:17 pm

[quote comment="194"]Hrmmm… I install the plugin and the admin interface is all there. I upload a font via SSH, go back to the admin interface and the “edit” and “delete” links have disappeared. Further, once putting the_ttftitle() call into my theme breaks the page terribly. Any ideas?[/quote]

My guess would be that TTFTitles doesn’t like your font. Can you try a different font to see if it works??

Comment by Dustin Barbour

Made Friday, 14 of December , 2007 at 4:51 pm

Further info… Seems the problem lies with the permissions on the cache directory. The other problems are exhibited when “/cache” is set to 777, but everything is fine at 775. However, 775 keeps the cache from being writable and thus throws out a boatload of error messages. In a quick test, I moved the cache directory to a different location and had the exact same issues.

Comment by Dustin Barbour

Made Friday, 14 of December , 2007 at 5:41 pm

Thought. Your plugin requires GD, no? At present I don’t have the GD library installed and am having a hell of a time getting that part of it working for me. But yeah… maybe something you want to emphasize… the need for the GD libraries. Maybe you did. :)

Comment by jrrl

Made Friday, 14 of December , 2007 at 5:48 pm

[quote comment="198"]Thought. Your plugin requires GD, no? At present I don’t have the GD library installed and am having a hell of a time getting that part of it working for me. But yeah… maybe something you want to emphasize… the need for the GD libraries. Maybe you did. :) [/quote]

Nope. I didn’t. Actually, I’m gonna steal Paul’s code (comment 134 above) and add a little activation check to the code. (Thanks, Paul!)

Just have to decide whether I really want to do a 0.4.3 just now or wait until I have enough groovy stuff to add to call it 0.6 (using even numbers for “stable” releases).

Comment by Dustin Barbour

Made Friday, 14 of December , 2007 at 5:58 pm

Update: chmodded the entire directory to 777, made sure GD was installed and forced a reload of the web server. Problem solved. The only thing I notice is that lowercase letters with descenders (the part hanging below the baseline of the letter… “g” for example) cause the text in the image to appear higher. See http://www.dbarbour.com for examples of that.

But congrats on a sweet plugin. Certainly saves the hassle of going the full sifr route.

Comment by Junipingla

Made Saturday, 15 of December , 2007 at 11:50 am

Thank you for updating this!
I have a problem though. Could you please direct me on how to make the 1 comments etc into a ttf title?

This is the code:

I can’t get it to work..

TIA! :)

Comment by Junipingla

Made Saturday, 15 of December , 2007 at 11:52 am

The code again:

Comment by Kenny

Made Monday, 17 of December , 2007 at 2:03 am

I love this plugin, and have used in on a recent site. Works great.

Now on another WP2.3.1 site, and TTFTitles has gone wonky. I think it may have happened after uploading a font with a weird name. Anyway, the symptom now is this:

The font Directory pathway setting, along with the Cache and URL pathway settings all show just the letter “h” and there are no default styles or fonts showing at all.

And if I try to enter the pathways, it just resets to the letter “h” and doesn’t accept the pathway setting just entered.

And the weird thing is that I deactivated the plugin, deleted it from the plugin folder, and then put a fresh version BACK in, and it still shows just the letter “h” in all of those settings, and still doesn’t work.

Now, the files are all there in the plugin folder; the fonts, the php, the CSS, the cache folder — it just is stuck with no fonts or styles listed in the admin anymore.

How do I reset everything and start from scratch?

Comment by Kenny

Made Monday, 17 of December , 2007 at 3:05 am

Trying to delete a font. Won’t delete. How do I delete a font?

Comment by jrrl

Made Thursday, 20 of December , 2007 at 12:46 am

[quote comment="207"]I love this plugin, and have used in on a recent site. Works great.

Now on another WP2.3.1 site, and TTFTitles has gone wonky. I think it may have happened after uploading a font with a weird name. Anyway, the symptom now is this:

The font Directory pathway setting, along with the Cache and URL pathway settings all show just the letter “h” and there are no default styles or fonts showing at all.

And if I try to enter the pathways, it just resets to the letter “h” and doesn’t accept the pathway setting just entered.

And the weird thing is that I deactivated the plugin, deleted it from the plugin folder, and then put a fresh version BACK in, and it still shows just the letter “h” in all of those settings, and still doesn’t work.

Now, the files are all there in the plugin folder; the fonts, the php, the CSS, the cache folder — it just is stuck with no fonts or styles listed in the admin anymore.

How do I reset everything and start from scratch?[/quote]

Okay, this is tricky. You need to remove a line from the options table of your wordpress database. I will add a reset option to the next version, but for now you’d have to do it by hand. Basically, you need to execute an sql statement that looks something like this:

delete from wp_options where option_name=”ttftitles_settings”;

If you have a different table prefix than “wp_”, then that will change the table name, of course.

Sorry for no easier way right now.

All this said, I would LOVE to know the name of the weird font so I can keep this from happening again.

Comment by jrrl

Made Thursday, 20 of December , 2007 at 12:48 am

[quote comment="208"]Trying to delete a font. Won’t delete. How do I delete a font?[/quote]

Just remove the font file from the fonts directory (via cpanel or ssh or however you do your basic file management). Again, I would love to know the name of the font that is hosing this so badly.

Comment by Serhat Cinar

Made Friday, 21 of December , 2007 at 6:19 am

Hi, great plugin.
Would you mind to add the following code into the plugin:
switch ($style['image_type']) {
case ‘png’:
@imagepng($image,$cache_filename);
break;
case ‘gif’:
@imagegif($image,$cache_filename);
break;
default:
}
chmod($cache_filename, 0755); // octal;
imagedestroy($image);

line 935 should include a chmod on the created imagefile, otherwise on multi-user restricted environments the file will be created with rights 700 and this means noone from web will be able to see the imagefile. (had the same problem with imageheadlines)

Comment by Peter Lurie

Made Saturday, 22 of December , 2007 at 9:32 am

I love this plugin… works faultlessly for me, EXCEPT, it doesn’t do UMLAUTS or special characters (eg. em dash)

Any suggestions
Peter

Comment by Erik Pöhler

Made Saturday, 22 of December , 2007 at 6:29 pm

It doesn’t do umlauts? hrmmpf! I thought this a rewrite of Coldforged’s Plugin for WP 2.3x? Well, at least Coldforgeds’ Version did support these. For what reason did you quit Umlauts-support?

Comment by jrrl

Made Saturday, 22 of December , 2007 at 7:05 pm

[quote comment="219"]It doesn’t do umlauts? hrmmpf! I thought this a rewrite of Coldforged’s Plugin for WP 2.3x? Well, at least Coldforgeds’ Version did support these. For what reason did you quit Umlauts-support?[/quote]

Whoa! Wait! This worked before. Heck, the rendering engine is just Coldforged’s with some minor tweaks.

Let me see what I screwed up. Sigh.

Comment by jrrl

Made Saturday, 22 of December , 2007 at 10:00 pm

Okay. I just tried umlauts with a font that I knew included them (Bitstream Vera Sans) and it works. Actually, to be completely sure, I named a style “Ä / ä / Ö / ö / Ü / ü / ß” and it looked fine on the styles page.

So, any info you can give me about your setup that may differ from mine I would appreciate, so we can put this issue to bed.

Please help. Thanks!

[...] Templature » The TTFTitles WordPress Plugin – [...]

Comment by Kenny

Made Monday, 24 of December , 2007 at 1:41 pm

Okay, the FONT problem occurred twice with this font: Mom’s Typewriter http://simplythebest.net/fonts/typewriter_fonts.html

Since this was a freshly set up blog, I just deleted the whole install and DB, and reinstalled everything clean. (That wiped the problem for sure!)

But when I tried that font again (now I know it’s the font) it seems to get installed–shows up in the TTFTitles FONTS list–but won’t work right; then when I try to DELETE from the FONTS list I get the YOUR FONT HAS BEEN REMOVED message at the top, but the font DOES NOT get removed from the list.

Now, I’m pretty sure that I did try removing the font off the server the first time, but that may be what messed everything up when I went back to the WP TTFTitles admin. (Not sure that I remember the exact sequence.)

NOTE, the site that I’m referring to here is not yet public, but here’s a link to one that I have very successfully used TTFTitles on, and the clients and I all LOVE the typographic freedom!

Comment by Kenny

Made Monday, 24 of December , 2007 at 1:43 pm

Oooops! Here’s that link: http://moderngroovesyndicate.com/bandbios/

Comment by Matt

Made Wednesday, 26 of December , 2007 at 4:08 pm

Thank you so much for this plugin. It works like a charm!

For the bloggers who are still struggling a fast 1,2,3-set up guide as how I did it:

- Download, unpack and upload the folder “ttftitles” to your plugin directory. Activate it.

- Create a new folder – “cache” – within the “ttftitles” folder and Chmod it to 777 (if this expression doesn’t ring a bell, Google “chmod 777″).

- If you want to use your own fonts, upload them with your FTP-browser. If you want to upload through the Wordpress-panel, you will have to Chmod the fonts directory of the plugin to 777.

- Finetune your settings in the ttftitles menu under the Presentation-tab in Wordpress. Save.

- Now that you are ready to go, you will have to let the browsers know that they should render yur titles to images. So you will have to change the PHP-command tht calls the title. Usually you can find these in the single.php or index.php file of your Wordpress theme (sometimes both).

- Exact instructions can be found under the “usage” tab of the plugin settings.

- Open your blog in your favourite browser, hit CTRL-R and thank the creator of this excellent plugin ;) ))

Comment by jrrl

Made Wednesday, 26 of December , 2007 at 6:16 pm

[quote comment="224"]Okay, the FONT problem occurred twice with this font: Mom’s Typewriter
[/quote]

Okay. I have the font now and can confirm that it TTFTitles does not like it and that it has to do with the name (not necessarily the file name, but the font name as stored inside the file).

A solution is in the offing, but will probably not be out until after the new year. Lots of little fixes… how fun.

Comment by jrrl

Made Wednesday, 26 of December , 2007 at 6:18 pm

[quote comment="228"]For the bloggers who are still struggling a fast 1,2,3-set up guide as how I did it:
[/quote]

Thanks for the guide. I am still planning a cookbook for this, but I am disorganized at times (especially around the end of the year).

Comment by Peter Lurie

Made Thursday, 27 of December , 2007 at 11:46 am

Umlauts issue:

It MAY be because the font I am using is an Opentype Font… which seems perfectly usable except for the umlauts issue…

I have now chosen another TT font and the problem seems to be fixed.

Sorry to alarm you!

Festive Greetings
Peter Lurie

Comment by Peter Lurie

Made Thursday, 27 of December , 2007 at 11:53 am

Now getting this error message:

Fatal error: Maximum execution time of 30 seconds exceeded in /mnt/web5/12/93/51306893/htdocs/mrp/wp-content/plugins/ttftitles/ttftitles.php on line 600

Any ideas? The site doesn’t loadat all now, unless I deactivate ttftitlesP
eter

Comment by Peter Lurie

Made Thursday, 27 of December , 2007 at 1:12 pm

This problem seems to be font connected. Short titles cause no problems, but longer ones are a problem.

Peter

Comment by Erik Pöhler

Made Sunday, 30 of December , 2007 at 6:00 am

@ jrrl

regarding comment #153 & 154
I found out that special-chars like ß,äÄöÖüÜ,éè, etc. work just fine when using a TTF-Font. So the missing letters only occur with OTF-Files in my test-scenario. Plus: I’ve been wrong about coldforged’s plugin, too. It had exactly the same problems, so i think this must have something to do with PHPs imagecreate-class.

In case anyone else has problems with special chars you could simply convert .OTF files into .TTF files using eg: HighLogic’s “Font Creator” (30-day-trial) to do the job.

Regards. (BTW: i still use coldforged’s original plugin together with wp2.3x as its doing the same job for me). :)

Comment by kanni

Made Sunday, 30 of December , 2007 at 1:51 pm

hi. great plugin. thank you for that.

i would like to change the letter spacing. is this possible somehow?

Comment by Leanne

Made Monday, 31 of December , 2007 at 4:44 pm

Hey there, I’ve been using your plugin for a while and I’m wondering if it would be possible on Category templates (and/or other archives templates) to pass the ttftitles command over – how would this be executed in this scenario?


Archive for the ‘’ Category

Posts Tagged ‘’

Archive for

Archive for

Archive for

Author Archive

Blog Archives

Thank you!

Comment by Leanne

Made Monday, 31 of December , 2007 at 4:45 pm

the code is not coming through, if you want to drop me an e-mail, when you have the time of course!

Happy New Year!

Comment by Leanne

Made Monday, 31 of December , 2007 at 4:49 pm

I figured it out – it’s the same as the_date functionality – thank you!

Comment by Erik Pöhler

Made Wednesday, 2 of January , 2008 at 6:41 am

@kanni: regarding letter-spacing, you might want to take a look at: http://de.php.net/manual/de/function.imagettftext.php#74949

Comment by Jenny

Made Thursday, 3 of January , 2008 at 12:49 pm

[quote comment="56"]yea im cmohd it and then like when i extracted it and put it into my ftp theres no cache folder so could you give me a partial step by tep after i install it?[/quote]

I do have exactly the same problem.
Anyone who knows what to do?

Thanks,
Jenny

Comment by claire

Made Friday, 4 of January , 2008 at 12:37 pm

I get these errors:

Warning: ksort() expects parameter 1 to be array, string given in ttftitles.php on line 1273

Warning: Invalid argument supplied for foreach() in ttftitles.php on line 1274

—-

i think it’s because of the korean font i installed. I already deleted it but it wont work still. :(

Comment by venz

Made Tuesday, 8 of January , 2008 at 12:20 pm

does this work with fonts other than ttf? i’ve tried uploading .dfont format, it doesn’t seem to recognize it.

Comment by venz

Made Tuesday, 8 of January , 2008 at 1:33 pm

i applied it to my blog title and the rest of the page was pushed down. i had a a:hover effect and i noticed that it pushed down the effect, pushing down the rest of the page. is this really supposed to happen or did i do something wrong?

Comment by thomas

Made Thursday, 10 of January , 2008 at 2:46 pm

This looks like a great plugin, John.

One question before i install it, though: are the titles still searchable for google or does the image crush the text altogether?

Thanks!
Thomas

Pingback by Sidebar | aloha WEBLOG

Made Monday, 14 of January , 2008 at 8:01 pm

[...] Es war zwar ein “big pain in the ass” (<li> und <ul> Tags kann ich nicht mehr sehen), aber die Überschriften in der Sidebar generiert jetzt das TTFTitles Plugin. [...]

Comment by Stefanie

Made Wednesday, 16 of January , 2008 at 9:11 pm

[quote comment="285"]This looks like a great plugin, John.

One question before i install it, though: are the titles still searchable for google or does the image crush the text altogether?

Thanks!
Thomas[/quote]

Essentially my question. Will applying this plugin affect SEO?

Pingback by Awesome Site -- More comments

Made Thursday, 17 of January , 2008 at 3:20 pm

Comment by jrrl

Made Thursday, 17 of January , 2008 at 3:40 pm

[quote comment="281"]does this work with fonts other than ttf? i’ve tried uploading .dfont format, it doesn’t seem to recognize it.[/quote]

Nope. Just TTF. Although some OTF fonts work for some characters. At least, that is what people have reported.

Comment by jrrl

Made Thursday, 17 of January , 2008 at 3:44 pm

[quote comment="285"]
One question before i install it, though: are the titles still searchable for google or does the image crush the text altogether?
[/quote]

[quote comment="288"]Essentially my question. Will applying this plugin affect SEO?
[/quote]

They still exist in the alt attribute on the image. I think this should still be okay for SEO purposes and is certainly less likely to draw ire from Google than putting them inside a hidden div or a div positioned at -1000 or some of the other tricks I’ve seen people do.

Comment by jrrl

Made Thursday, 17 of January , 2008 at 3:45 pm

[quote comment="282"]i applied it to my blog title and the rest of the page was pushed down. i had a a:hover effect and i noticed that it pushed down the effect, pushing down the rest of the page. is this really supposed to happen or did i do something wrong?[/quote]

I wish I had a good answer here, but without seeing the exact html and css, I am at a loss. Has anyone else seen a problem with this?

Comment by Joelle

Made Friday, 18 of January , 2008 at 8:54 pm

I’m having quite a challenge with this plugin today. The client is running Wordpress 2.3.2 and I’ve installed this plugin fresh. I’ve used this plugin several times and haven’t really had any major challenges with it.

However, when I install it on this client’s server, it told me that I hadn’t made the cache file readable… when I did, all my styles disappeared from the list except for one and it only displays have the page. It also doesn’t list the “tabs” as tabs anymore… it shows them as an unordered list. I noticed this on another install, but assumed that was your new look, but I’m wondering if there isn’t a bug in this?

Help? Thanks! :)

Comment by Stefanie

Made Friday, 18 of January , 2008 at 10:14 pm

Another question. Everything is working beautifully in every browser I’ve tested in except IE 7. There aren’t any error messages or anything, the title simply won’t show up. This is apparently because I am not using the default style, because the default style works fine in IE. I wanted to have 2 styles on one page, and it is the second that is not working.

Comment by timmie

Made Monday, 21 of January , 2008 at 3:21 pm

thank you for this! :D it works great! :D

Comment by Joelle

Made Monday, 21 of January , 2008 at 6:01 pm

Hi, I left a comment earlier, but I’m hoping you can help me with this…

When I install the latest version of the plugin, it works, but throws off an error at first, saying I need to set the cache folder to 777. As soon as I create the cache folder, the plugin breaks.

When I’m in the control panel under TTF Titles, it only displays half the page, like something is broken. It’s not conflicting with any other plugins that I can see.

Has anyone else had this issue?

Thanks! :)

Comment by KxR

Made Wednesday, 23 of January , 2008 at 5:54 am

In WP 2.3.2, this is really broken. Installs OK, then complains of a non-writable cache (cache is 777), then shows only the first row of any list (such as in the list of available fonts) up to the last column of that first row.

Then, the HTML for the table just stops being thrown to the browser and the page ends. Upshot is that you can’t actually do anything with the plugin….

Comment by Sumeru

Made Thursday, 24 of January , 2008 at 11:08 pm

So I’l try it on my Sanskrit blog, will see how it works with devanagari fonts…

Comment by jrrl

Made Friday, 25 of January , 2008 at 12:11 am

[quote comment="297"]In WP 2.3.2, this is really broken. Installs OK, then complains of a non-writable cache (cache is 777), then shows only the first row of any list (such as in the list of available fonts) up to the last column of that first row.

Then, the HTML for the table just stops being thrown to the browser and the page ends. Upshot is that you can’t actually do anything with the plugin….[/quote]

Hmmm… I just (like 10 minutes ago) installed this on a 2.3.2 site (http://www.jrrl.com/) and it worked fine. I had to make the cache 777, after install, but that was it. Otherwise, it worked fine. I am really confused by the troubles people are having. Anyone have any idea what I am missing?

Comment by Comme une image

Made Friday, 25 of January , 2008 at 4:40 am

Sorry, I did’nt find a e-mail to post that :

Minor bug detected in v0.4.2 on line #798.
$generated_url = $options['cache_url'] . “/” . $filename . $extension ;
(since DIRECTORY_SEPARATOR should only be used for local file pathname) (detected using Windows+Wamp).
___
I’m also really interested for a future enhancement for addressing the “plugin title issue” (cf. comment #34)!

Comment by s3

Made Friday, 25 of January , 2008 at 6:05 am

very cool plugin but how can I change title aspect (color for exemple) on rollover or onclick? thanks!

Comment by Marcis

Made Sunday, 27 of January , 2008 at 4:50 pm

(cf. comment #34) – indeed very important!!

Comment by Rob

Made Sunday, 27 of January , 2008 at 10:33 pm

Can this be used to replace menu items somehow too? By still keeping it dynamic?

Comment by Rob

Made Monday, 28 of January , 2008 at 2:54 pm

Have you figured out how to add 3rd party widget support for changing widget titles?

Comment by Bradley

Made Monday, 28 of January , 2008 at 3:12 pm

Just loving this plugin. Thanks for improving on Headline Images (which was great, too). But this makes it quite a bit easier to do more in the WP admin than in code.

When I’m using it to render “regular text,” it doesn’t seem to like blank spaces e.g. between words. So this is fine:

the_ttftext (Search, $echo = true, $style=”sidebarheaders”, $overrides=”");

But this doesn’t work:

the_ttftext (Upcoming Events, $echo = true, $style=”sidebarheaders”, $overrides=”");

So I put in an underscore and it’s OK:

the_ttftext (Upcoming_Events, $echo = true, $style=”sidebarheaders”, $overrides=”");

Site in question is Left Coast Writers, in the sidebar.

Thanks!

Comment by Leanne

Made Tuesday, 29 of January , 2008 at 11:56 am

Can you drop me an e-mail and let me know where you accept paypal donations? TX!

Comment by Peter Lurie

Made Tuesday, 29 of January , 2008 at 6:19 pm

Still hoping for a reply to #163:

I am still getting time out errors!

Help, Please!

Peter

Comment by emily

Made Wednesday, 30 of January , 2008 at 8:40 am

Can you tell me how to change this code for the ttf font to show up? All I want is the font to change.

|
<meta http-equiv=”Content-Type” content=”; charset=” />

Comment by Joelle

Made Wednesday, 30 of January , 2008 at 11:01 pm

KxR: I’m experiencing the same problem… did you get it resolved??

Comment by jrrl

Made Thursday, 31 of January , 2008 at 12:28 am

[quote comment="300"]Sorry, I did’nt find a e-mail to post that :

Minor bug detected in v0.4.2 on line #798.
$generated_url = $options['cache_url'] . “/” . $filename . $extension ;
(since DIRECTORY_SEPARATOR should only be used for local file pathname) (detected using Windows+Wamp).
___
I’m also really interested for a future enhancement for addressing the “plugin title issue” (cf. comment #34)![/quote]

Thanks for the fix. It’ll be in the next version.

Comment by jrrl

Made Thursday, 31 of January , 2008 at 12:30 am

[quote comment="235"]Now getting this error message:

Fatal error: Maximum execution time of 30 seconds exceeded in /mnt/web5/12/93/51306893/htdocs/mrp/wp-content/plugins/ttftitles/ttftitles.php on line 600

Any ideas? The site doesn’t loadat all now, unless I deactivate ttftitlesP
eter[/quote]

Wow. Works dandy here. Even if you are using a ton of place, most of them should be cached after the first time… Without seeing the site, I am not sure what is going on. Sorry.

Comment by jrrl

Made Thursday, 31 of January , 2008 at 1:23 am

[quote comment="301"]very cool plugin but how can I change title aspect (color for exemple) on rollover or onclick? thanks![/quote]

I’ll think about this and see if I can come up with something clever.

Comment by jrrl

Made Thursday, 31 of January , 2008 at 10:21 am

[quote comment="305"]Just loving this plugin. Thanks for improving on Headline Images (which was great, too). But this makes it quite a bit easier to do more in the WP admin than in code.

When I’m using it to render “regular text,” it doesn’t seem to like blank spaces e.g. between words. So this is fine:

the_ttftext (Search, $echo = true, $style=”sidebarheaders”, $overrides=”");

But this doesn’t work:

the_ttftext (Upcoming Events, $echo = true, $style=”sidebarheaders”, $overrides=”");

So I put in an underscore and it’s OK:

the_ttftext (Upcoming_Events, $echo = true, $style=”sidebarheaders”, $overrides=”");

Site in question is Left Coast Writers, in the sidebar.

Thanks![/quote]

Put quotes around the text you want to replace:

the_ttftext (”Upcoming Events”, $echo = true, $style=”sidebarheaders”, $overrides=”");

That should help.

Comment by Bradley

Made Thursday, 31 of January , 2008 at 10:46 am

Quotes around the text did the trick. Perfect! Thank you very much.

Comment by jrrl

Made Thursday, 31 of January , 2008 at 11:48 am

Well, folks, for all the people asking about widgets… I think I have a solution… I have to finish something else up tonight (plus the season premier of Lost is on!), but then I’ll try to get it working this weekend.

Sorry for the delay on this. They is just not an easy solution. But there will be! I think… Hrm… I hope…

Comment by Jenn

Made Tuesday, 5 of February , 2008 at 6:27 pm

I can’t seem to get this plugin to work. I installed as directed, and chmodded both /cache and /fonts to 777. Rather than try to explain what’s happening, I’ll show screenshots:

http://farm3.static.flickr.com/2342/2245350054_ac1dfc9e01_o.gif
http://farm3.static.flickr.com/2333/2245350082_09bb440c4e_o.gif

As you can see, I can’t do anything with the plugin. Despite uploading over a dozen fonts to the font folder, only the default one is showing as being installed. Also, when I went through the process of adding a new style, I was told it added successfully. However, the refreshed styles page did not show my added style.

Comment by Ronnie

Made Monday, 11 of February , 2008 at 8:53 pm

Here is some code to generate images for the function wp_list_pages();

its not beautiful but it works.

<?php
$pages = wp_list_pages(’depth=1&title_li=&echo=0′);
if ($pages)
{
preg_match_all(’/]*>(.*)/’, $pages, $array);
$asize = count($array[0]);
for($i = 0; $i < $asize; $i++)
{
echo “
“;
the_ttftext($array[2][$i]);
echo “
“;
}
}
?>

Comment by Ronnie

Made Monday, 11 of February , 2008 at 8:57 pm

Sorry about the previous post, this one should show everythign so that you can copy n paste:

<?php
$pages = wp_list_pages(’depth=1&title_li=&echo=0′);
if ($pages)
{
preg_match_all(’/<a href="(.*)"[^>]*>(.*)<\/a>/’, $pages, $array);
$asize = count($array[0]);
for($i = 0; $i < $asize; $i++)
{
echo "<a href=\"".$array[1][$i]."\">";
the_ttftext($array[2][$i]);
echo "</a><br>";
}
}
wp_register(”, ‘<br>’);
wp_loginout();
?>

Comment by Fabian

Made Tuesday, 12 of February , 2008 at 1:13 pm

Hello,
how can I forma these line?

Change the font / style only for the blog-titel. the h1 title has an other font / style.

Comment by Fabian

Made Tuesday, 12 of February , 2008 at 2:46 pm

<a href="/" > doesn´t work. :-(
Please help.

Comment by kd

Made Wednesday, 13 of February , 2008 at 1:18 am

thanks man, worked perfect.

Pingback by GothchiC-comic.com - None More Black » Archive » Yay fonts!

Made Wednesday, 13 of February , 2008 at 11:28 pm

[...] have installed on their machines. So I was extra happy to find this nifty Wordpress plug-in called TTFtitles that automatically creates images of my titles using the fonts that I want. So [...]

Comment by Kris K

Made Thursday, 14 of February , 2008 at 7:45 pm

Great Plugin!! Just what the wife wanted for her site. Thanks.

Comment by Jake

Made Thursday, 14 of February , 2008 at 9:32 pm

[quote comment="318"]I can’t seem to get this plugin to work. I installed as directed, and chmodded both /cache and /fonts to 777. Rather than try to explain what’s happening, I’ll show screenshots:

http://farm3.static.flickr.com/2342/2245350054_ac1dfc9e01_o.gif
http://farm3.static.flickr.com/2333/2245350082_09bb440c4e_o.gif

As you can see, I can’t do anything with the plugin. Despite uploading over a dozen fonts to the font folder, only the default one is showing as being installed. Also, when I went through the process of adding a new style, I was told it added successfully. However, the refreshed styles page did not show my added style.[/quote]

I’m having the exact same problem.

Comment by Jake

Made Thursday, 14 of February , 2008 at 10:07 pm

I found out where the problem is. I took out the line

echo ” . ttftitles_render ($name, $name) . ”;

from the styles admin page and the line

echo the_ttftext ($font_name,false,null,”font_name=$font_name&font_size=40&max_width=500&font_color=000&effect_type=none&bg_color=FFF&bg_transparent=true”);

from the font admin page. So, apparantly there seems to be a problem rendering that stops the script altogether, and also stops the rest of the page from rendering.

I hope I’m wording that right, anyway. I haven’t even tried using this on my website yet, I’m still fiddling with getting the admin to work right.

I really hope you can get this fixed. I can’t figure out what the problem is if it’s working alright for others. Possibly something with my server?

If possible, shoot me an e-mail. I can get you any details you need.

Comment by gracie

Made Thursday, 14 of February , 2008 at 10:45 pm

Thanks so much for this plugin. I love it!

Comment by Paul

Made Friday, 15 of February , 2008 at 7:46 am

(same Paul as #134)
I’ve just about finished a standalone version, incorporating some style improvements (works just like CSS now) and performance upgrades, including a feature to fork image generation into the background so multiple titles get created in parallel. Email me for a copy of the code if you want.

Comment by Paul

Made Saturday, 16 of February , 2008 at 5:46 am

For Jake and Jenn:

Does your admin page abruptly stop right after the Sample Text section? Looks like it on Jenn’s screen shots. You may be missing some important functions, you can run my test routine (comment #134) to see. There’s usually no solution for missing image functions other than complaining to your provider.

Comment by Luizz

Made Saturday, 16 of February , 2008 at 1:11 pm

Excellent plugin ! Thank you !
Just a suggested fix: at line 739 you must replace “$bg” variable with “$bgimage”
[code]imagecolortransparent($bgimage,$background_color);[/code]

Comment by Jake

Made Sunday, 17 of February , 2008 at 12:07 am

@Paul: That’s what it seems like. That’s unfortunate, I was really looking forward to using this.

I may be switching hosts in the near future, so I’ll see how that goes.

Comment by Temi

Made Sunday, 17 of February , 2008 at 11:03 am

I have a little problem with this plugin. It prints our “” (i only put a space so your wordpress wont new line my text) and doesn’t push content to a new line. Is there any way this can be added to the functionality? Here is a link to the image: http://www.fashionafrica.com/wp-content/plugins/ttftitles/cache/7e6c5dfd1ba8aa09edb8fa3e4f42710c.gif

I’m using simple forum and it separates the page header and sub header by “”

Comment by Temi

Made Sunday, 17 of February , 2008 at 11:04 am

I have a little problem with this plugin. It prints out the br tag and doesn’t push content to a new line. Is there any way this can be added to the functionality? Here is a link to the image: http://www.fashionafrica.com/wp-content/plugins/ttftitles/cache/7e6c5dfd1ba8aa09edb8fa3e4f42710c.gif

I’m using simple forum and it separates the page header and sub header by a br tag

Comment by Jake

Made Sunday, 17 of February , 2008 at 11:58 pm

Paul: When I try using your script, I get this:

Warning: printf() [function.printf]: Too few arguments in /home/harbury/public_html/wp-content/plugins/ttftitles/ttftitles.php on line 1016

My host says they should have all the functions needed, but I’m not sure what specifically to ask about.

Comment by jrrl

Made Tuesday, 19 of February , 2008 at 10:19 am

Sorry I haven’t been responsive on here of late. Thanks everyone for the bug fixes. It sounds like the biggest problem is the lack of GD or FreeType support (thanks paul for that fix). I will try to get a big fix version out this week.

Comment by jrrl

Made Tuesday, 19 of February , 2008 at 10:21 am

[quote comment="335"]I have a little problem with this plugin. It prints out the br tag and doesn’t push content to a new line. Is there any way this can be added to the functionality? Here is a link to the image: http://www.fashionafrica.com/wp-content/plugins/ttftitles/cache/7e6c5dfd1ba8aa09edb8fa3e4f42710c.gif

I’m using simple forum and it separates the page header and sub header by a br tag[/quote]

I’ll see what I can do about this one. It WOULD be a cool feature, I agree.

Comment by Jake

Made Tuesday, 19 of February , 2008 at 5:23 pm

I found out for sure that it is the lack of FreeType support on my server. Luckly my host was able to move me to a server that had FreeType support.

Comment by Ally N

Made Wednesday, 20 of February , 2008 at 9:09 am

Hi, this error comes up when I try to download the plugin:

404 Not Found
The resource requested could not be found on this server!

Comment by jrrl

Made Wednesday, 20 of February , 2008 at 9:58 am

[quote comment="340"]Hi, this error comes up when I try to download the plugin:

404 Not Found
The resource requested could not be found on this server![/quote]

Hmm… I’ll check into it. In the meantime, you can get it from http://wordpress.org/extend/plugins/ttftitles/

Comment by Jake

Made Thursday, 21 of February , 2008 at 4:37 pm

While I’m thinking about it, I do have a request. I’d love to see the ability to add a border around the text. Such as this example.

If it’s possible, it’d be greatly appreciated. If not, no big deal.

Comment by Joelle

Made Thursday, 21 of February , 2008 at 4:45 pm

How would I format the PHP to display the category name. i.e., when you click a category and are taken to the archive.php template. I would like the category at the top to display dynamically, but using the TTFTitle.

Is this possible? Thanks!

Comment by jay

Made Friday, 22 of February , 2008 at 4:56 am

is it compatible for pre 2.3 wp

Comment by Jake

Made Friday, 22 of February , 2008 at 4:42 pm

Ugh.. more trouble.

I just want to do one simple thing, show the date in a font. I can’t get this to work:

Let alone getting it to work in a certain style.

Any help?

Comment by Jake

Made Friday, 22 of February , 2008 at 4:43 pm

Heh, the comment form took out my code.

*php the_ttftext(the_time(’n/j/y’)); *

That’s what I have, except with the problem coding in place of the asterisks.

Comment by jrrl

Made Friday, 22 of February , 2008 at 5:12 pm

[quote comment="346"]Heh, the comment form took out my code.

*php the_ttftext(the_time(’n/j/y’)); *

That’s what I have, except with the problem coding in place of the asterisks.[/quote]

Try using get_the_time instead of the_time. the_time outputs the time to your page, but get_the_time returns it for use by other functions (such as the_ttftext).

Comment by jrrl

Made Friday, 22 of February , 2008 at 5:14 pm

[quote comment="344"]is it compatible for pre 2.3 wp[/quote]

It should be compatible back to 1.5.2.

Comment by jrrl

Made Friday, 22 of February , 2008 at 5:20 pm

[quote comment="343"]How would I format the PHP to display the category name. i.e., when you click a category and are taken to the archive.php template. I would like the category at the top to display dynamically, but using the TTFTitle.

Is this possible? Thanks![/quote]

It should be possible. Looking at a few archive.php files, these seem to have a nasty tangle of ifs so that the file will work for daily, monthly, and category archives. I’m not up to getting into that briar patch here, but the relevant bit should look something like this:

echo single_cat_title();

you can replace this with either:

echo get_the_ttftitle(single_cat_title());

or:

the_ttftitle(single_cat_title());

Hope this helps.

Comment by Ricardormz

Made Monday, 25 of February , 2008 at 7:13 am

Im trying to use imagerotate to twist the title a little bit. Is there anyway i can do this?

Thanks! Great plugin!

Comment by drtopo

Made Monday, 25 of February , 2008 at 10:13 am

After a lot of trial and errors, finally I can uppercase all the spanish chacracters (accents, ñ, etc.) via a new function. But a new problem appears: the uppercased accented titles are slighty higher than the non-accented ones. So each title kind alignment is different. Any ideas to solve the issue?

Comment by drtopo

Made Monday, 25 of February , 2008 at 5:43 pm

[quote comment="351"]After a lot of trial and errors, finally I can uppercase all the spanish chacracters (accents, ñ, etc.) via a new function. But a new problem appears: the uppercased accented titles are slighty higher than the non-accented ones. So each title kind alignment is different. Any ideas to solve the issue?[/quote]

I mean, VERTICAL alignment. Just in case…

Comment by Yoyo

Made Friday, 29 of February , 2008 at 9:37 pm

If i write a new post and the title is:
Praesent faucibus. Donec amet.
I get this error

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 16 bytes) in /opt/lampp/htdocs/test/wp_test1/wp-content/plugins/ttftitles/ttftitles.php on line 576

If i rename the title to “Praesent faucibus. Donec”
The plugin works again.

If i rename it to “Praesent faucibus. Donec amet.” i get the error again.

Comment by Yoyo

Made Friday, 29 of February , 2008 at 9:42 pm

I just edited the maximum width to 700 in the default style and now it works with “Praesent faucibus. Donec amet.”

If I rename the post to “Praesent faucibus. Donec amet. Praesent faucibus. Donec amet.” I get the error again.

Pingback by links for 2008-01-15 through 2008-01-29 | aloha WEBLOG

Made Tuesday, 4 of March , 2008 at 12:55 am

[...] Templature » The TTFTitles WordPress PluginThis plugin lets you use images to replace the titles of your posts. [...]

Pingback by Delphine Hauen » Sabotage

Made Thursday, 6 of March , 2008 at 11:32 am

[...] Foreneintrag hat mit dabei sehr geholfen. Langfristig werde ich dennoch sehen, dass ich auf das TTF Titles Plugin umrüste. Das ist eine Weiterentwicklung meines alten Plugins, welche aber jetzt gerade eben auf [...]

Pingback by Dentaku » links for 2008-03-06

Made Thursday, 6 of March , 2008 at 7:47 pm

[...] Templature » The TTFTitles WordPress Plugin This plugin lets you use images to replace the titles of your posts, thus circumventing the problem of guessing what fonts your end-users might have installed. (tags: wordpress plugin bild titel truetype openfont schrift)  Linkdump       [...]

Pingback by Empfehlenswerte Plugins - [ Her-Life.com Weblog ]

Made Sunday, 9 of March , 2008 at 3:38 am

[...] TTFTiles Wordpress Plugin: Macht aus der öden Überschrift aus hochgeladenen Schriften schönere Überschriften als Bild. [...]

Pingback by Tutorial- Titel optisch verschönern » Blogwiese

Made Friday, 14 of March , 2008 at 12:08 pm

[...] erstes braucht man das Plugin “TTFTitles” von Templature. Dieses, wie jedes Plugin, entpacken und in den Pluginordner hochladen. Wenn [...]

Comment by Angi

Made Monday, 17 of March , 2008 at 9:29 am

Thanks for this great plugin :) works fine.

Trackback by Angi's Blog

Made Monday, 17 of March , 2008 at 1:09 pm

TrueType Fonts bearbeiten…

Ein cooles Plugin, das ich dank Antje entdeckt habe: TTFTitles. Damit kann man die Titel von Beiträgen und Seiten sowie jeden beliebigen anderen Text umwandeln in eine Grafik, die aus einer TrueType Schriftart (.ttf) erstellt wird. Der Sinn des ga…

Pingback by Caweb.Se » Annat typsnitt med ttftitles

Made Friday, 21 of March , 2008 at 9:55 am

[...] Vi använder oss av ttftitles, ett plugin som gör det möjligt att använda olika typsnitt till ex. titlarna. Pluginet kan du ladda hem hos Templature [...]

Pingback by C A W E B design » Ändra teckensnitt

Made Friday, 21 of March , 2008 at 5:24 pm

[...] Om du vill ändra teckensnitt i överskrifter/namn på post som vi har gjort kan du ladda hem detta plugin hos Templature [...]

Pingback by Зборови » Blog Archive » Корисни Wordpress додатоци

Made Saturday, 22 of March , 2008 at 3:05 pm

[...] TTFTitles е одличен додаток кој ќе го промени изгледот на насловите на Вашиот блог. Ако сакате да имате уникатни, кул наслови тогаш ова е плагин за Вас. (Демо ТУКА.) Одличен додаток особено за латинични блогови затоа што ретки се оние фонтови кои имаат универзален енкодинг. Би ги замолил сите оние кои имаат фонтови кои подржуваат системска кирилица да ми ги испратат на blog[at]zborovi.info. Благодарам. [...]

Pingback by D-503 » Blog Archive » Best Wordpress Plugins

Made Saturday, 22 of March , 2008 at 3:19 pm

[...] TTFTitles – This plugin lets you use images to replace the titles of your posts, thus circumventing the problem of guessing what fonts your end-users might have installed. (Demo: Look at this post title.) [...]

Comment by Ness

Made Sunday, 23 of March , 2008 at 11:29 am

Hi ! I was getting totally crazy with this plugin, I finally found a solution, so I want to share it.
First, I installed wordpress on my localhost, no problems with the plugin after chmoding the cache to 777.
Now, I transferred the whole blog to my server, and no way, it doesn’t work. I get the “cache is not writable” error message.
Of course, I changed the URL for the cache location, and I chmoded the cache to 777, I also tried clearing the cache, I tried deleting the cache and creating a new one, also chmoded to 777.
I also chmoded the entire ttf_titles directory to 777, just to see what happens.
Font directory is also chmoded to 777.

Finally, I discovered that the address needed was the address relative to the host, something like : homepage/45435wtzwz7sfh/dfadsfads/e5etre/wordpress/…
and not the user-friendly http://www.mydomain.com/wordpress...

I thought I would post it here, in case it can be of any use by some other desperate users !!!

Comment by Martin

Made Monday, 24 of March , 2008 at 8:32 pm

Hello, when I install it, my Presentation/TTFTitles/Styles shows the literal words “basic” and “demo” along with “cache not writable” for each one.

When I create the cache folder, everything stop. Every output from PHP is broken and flushed.

Note that this happens with and without applying permissions.

Could you please advice me? Thank you!

Comment by Martin

Made Monday, 24 of March , 2008 at 9:39 pm

I edited the script and used this function instead of is_writable():
http://ar.php.net/manual/en/function.is-writable.php#68630

Now, I can create the “cache” directory and give the default internet user write permission.

But two opposite things occur:
1. The new is__writable() function says that it is not writable.

2. If I set the fonts directory to ttftitles/cache I CAN upload fonts!

Thank you!

Comment by Martin

Made Monday, 24 of March , 2008 at 11:04 pm

Solved.
I did not know that I had to also load the php_gd2.dll extension.

Regards

Pingback by Silke’s Scrap- und Sabbelblog » Und wieder ist er was schöner…

Made Wednesday, 26 of March , 2008 at 2:44 am

[...] Hilfe ist sowohl das Problem der verschobenen Darstellung im IE wieder behoben als auch das tolle TTFTitles-Plugin eingebaut und funktionstüchtig. Ich dumme Nuss hab nämlich den Titel immer doppelt drin [...]

Comment by diegogue

Made Thursday, 27 of March , 2008 at 3:18 am

I want to thank you for this plugin!!!

Comment by k9leader

Made Saturday, 29 of March , 2008 at 11:44 am

Thank you for this great plugin, i realy like it!
first i had some problemes, but… now everything is perfect!

Thank you so much!

Comment by Scott at Realepicurean

Made Saturday, 29 of March , 2008 at 10:35 pm

Hi! Great plugin, really enhances my site.

I can’t manage to get it to style sidebar headings though – any ideas? Also is there a way to make it (for example) replace all H3 tags – without having to add the code each time?

Finally – any plans for updates to this great plugin?

Pingback by Delphine Hauen » Slow & Low

Made Monday, 31 of March , 2008 at 1:43 pm

[...] habe. Gute Gelegenheit auch, um endlich mal am neuen Plugin für die Bildtiteltexte zu schrauben. TTF Titles. Das wollte neulich nicht so wie [...]

Pingback by Comment mania | Tea River

Made Monday, 31 of March , 2008 at 4:15 pm

[...] have just downloaded a WordPress plugin for use in a certain Tea River client project being worked on, and experienced the sort of [...]

Comment by Karma

Made Tuesday, 1 of April , 2008 at 3:57 am

thank you very much, your plugin is great, make my blog look very good and pro.

Mil Gracias

Comment by Junipingla

Made Wednesday, 2 of April , 2008 at 4:51 am

I just installed the plugin on WP 2.5 and everything is working, however the png and gifs created all have black background!! Even though the background in the styles are white or transparent. Even the demo style that I haven’t touched.

Any idea??

Comment by Jess

Made Friday, 4 of April , 2008 at 6:40 am

Thanks for this plugin, it works really well, and the interface is very user friendly.

I’m struggling to get the code you suggested for category titles to work:

“echo get_the_ttftitle(single_cat_title());” ouputs “Fatal error: Call to undefined function get_the_ttftitle()”

and

“the_ttftitle(single_cat_title());” just outputs the title of the first post in each category, rather than the category title itself.

I’ve also tried :

the_ttftext(single_cat_title());, but this only outputs the words ’single_cat_title()’ rather than the title itself.

Any help with this would be much appreciated.

Comment by modoweb

Made Wednesday, 9 of April , 2008 at 4:42 pm

This works great! I’ve installed it on several sites with no problems. Easy user interface, good design.

Comment by Angi

Made Friday, 11 of April , 2008 at 9:30 am

I’ve got a question and hope you can help me. I use your plugins in my sidebar for h2 tags. I’ve got a line “Kitty & Anime”. The “&” inside the alt tag is displayed as “&”, which makes my page invalid XHTML.

The problem: if I try “the_ttftext(__(’Kitty & Anime’,'angisblog’),$echo=true,$style=’sidebar’,$overrides=”);”my pages is valid, but the picture that is created also looks like “Kitty & Anime”. Seems that the plugin can’t handle the amp correctly. Is there any way to fix that for having a valid page AND display the amp correctly?

Comment by redbear

Made Tuesday, 15 of April , 2008 at 10:01 am

installed and working great under WP2.5 ! thanks for this plugin. i ahd one little problem that a highlight border would show up over rollOver, so i went into my .css and changed .post img, .post a img, and.post a:hover img and commented out the border. thanks again.

Comment by Filipe Abreu

Made Friday, 18 of April , 2008 at 3:17 pm

Hi,

I get a hardcore bug here. Whenever I make a style using gif as the image type everything just goes wacko. My whole content area goes blank, just the header and footer are rendered (i am not using a sidebar). My TTF Title design page also is screwed up, mostly in the Styles page, where it just show only one style (the one with the gif, and it’s not even the default) and it also doesn’t show any sample image of the style and either no actions link (delete, edit and Make Default). Even if I delete the whole plugin and install it again this bug still remains, even before I try do create any new style.

It’s a very good plugin, by the way. Been to many hours studying .eof and .pfr codes and softwares, just to realize that there is no way to use this kind of technology. Blessed will be the day when browsers can render fonts files from the server.

Thanks!

Comment by Filipe Abreu

Made Friday, 18 of April , 2008 at 3:22 pm

Just a PS… when i use .png everything works just fine. Thx!

Comment by Filipe Abreu

Made Friday, 18 of April , 2008 at 3:55 pm

Hey I got an idea. It came from my font usage… I want to use a bitmap font for my titles, but it is a little blurry in the images TTF Titles renders. Can it has a anti-alias customization? Please? Pretty please?? Is it doable?

Thx!

Pingback by WordPress.Ill-literati » Blog Archive » Plugins: The Ill-Literati List

Made Friday, 18 of April , 2008 at 10:25 pm

[...] TTFTitles: This is one of my favorites.  This plugin lets you turn text into fancy image graphics.  It’s what I use for the blog title and blog description on this site, as well as for the post titles.  You can upload just about any font you want, create new style, plug some code into your theme and there you have it.  I’ve done some minor hacking to this plugin (another one I couldn’t get working in MU yet) and added my styles to the default list and set my default style as the default style, so that I don’t have to set them up on each and every blog in the MU install.  And it seems to work pretty good. [...]

Comment by Brett

Made Saturday, 19 of April , 2008 at 6:49 pm

[quote comment="383"]I’ve got a question and hope you can help me. I use your plugins in my sidebar for h2 tags. I’ve got a line “Kitty & Anime”. The “&” inside the alt tag is displayed as “&”, which makes my page invalid XHTML.

The problem: if I try “the_ttftext(__(’Kitty & Anime’,'angisblog’),$echo=true,$style=’sidebar’,$overrides=”);”my pages is valid, but the picture that is created also looks like “Kitty & Anime”. Seems that the plugin can’t handle the amp correctly. Is there any way to fix that for having a valid page AND display the amp correctly?[/quote]

It depends on what font you use.

Comment by Nilas

Made Sunday, 20 of April , 2008 at 5:38 pm

Hi,

I’ve installed ttftitle on a wordpress 2.5 blog. Im running k2 theme.

Does somebody know in which files I should replace the_title with the_ttftitle?

thanks!
Nilas

Comment by Kyrislian

Made Monday, 21 of April , 2008 at 2:21 am

I’ve followed the instructions to make a cache directory and chmoding to 777. But everytime I try to edit/make a new style, I get this error message;

“You don’t have permission to access /wp-admin/themes.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. ”

Help would be GREATLY appreciated :)

Comment by Nilas

Made Monday, 21 of April , 2008 at 7:13 am

i’ve replaced the_title with the_ttftitle in page.php. That changes the pages titles, nice. But what about the post-titles?

Comment by Nilas

Made Monday, 21 of April , 2008 at 8:36 am

problem solved

Comment by Angi

Made Tuesday, 22 of April , 2008 at 8:45 am

@Brett: Oh. Is there any way to modify my font so that the amp is displayed as & like it should? I’ve got a programm called FontCreator, I used it to add ä, ö and ü. Can I also add an amp that is displayed as & with that? I don’t know how :(

Comment by Filipe Abreu

Made Wednesday, 23 of April , 2008 at 7:36 pm

Hey, I managed to hack your plugin so it has a anti-alias text option. I didn’t managed to use the antialias() function, at least in my server (my ISP server, ain’t got one running local yet), wich told me the antialias() fucntion was not present. But I managed to do it in a alternative way, wich worked beautifully. If you want to know how e-mail me and I will send the code to you, so you can take a look and perhaps upload it on the WP plugins repository as a updated version.

Regards,
Fil.

Pingback by BlogSchaefchen » Neues in meinem Blog

Made Sunday, 27 of April , 2008 at 12:24 pm

[...] habe ich noch das TTFTitles-Plugin eingebaut. Naja, ich hab es schon seit einiger Zeit drauf, allerdings hatte ich immer [...]

Pingback by Fred Jaillet » Archive du blog » Plugin pour la gestion des fonts sous WP

Made Monday, 28 of April , 2008 at 4:03 pm

[...] un plugin de fou pour wordpress. The TTF Titles pemet de faire des miracles, vous avez déjà essayer d’écrire du texte en 48 px et bien [...]

Comment by RicardoRmz

Made Tuesday, 29 of April , 2008 at 4:51 am

Hello there! Amazing Plugin!

Everything works great for me, but i have an observation. The maxwidth is ignored when a there is a long word in the title. Is there anyway to force the maxwidth?

Comment by mike

Made Tuesday, 29 of April , 2008 at 1:26 pm

AMAZING PLUGIN! Thanks for putting in your time and effort to produce this and follow up with our questions!! I actually have two questions myself. 1) Is there any way to use two or more styles for this plugin? I have two page templates, one with a sidebar and one without, so the one without the sidebar has a wider content width for which I would like to set a wider width in the maximum width category for this plugin. 2) This isn’t a huge issue, but I was wondering how I’d be able to copy the headline like at http://www.mikeindustries.com/blog/archive/2008/03/mike-industries-now-powered-by-wordpress. Whenever I try to copy and paste the title + meta data + content, it’ll only copy anything that isn’t using the ttf function — if you try to copy it on mike’s blog, it does work, however — again, not a biggie, just curious how to set that up. Thanks so much!!

Comment by Tommie Hansen

Made Thursday, 1 of May , 2008 at 11:29 pm

[quote comment="305"]Just loving this plugin. Thanks for improving on Headline Images (which was great, too). But this makes it quite a bit easier to do more in the WP admin than in code.

When I’m using it to render “regular text,” it doesn’t seem to like blank spaces e.g. between words. So this is fine:

the_ttftext (Search, $echo = true, $style=”sidebarheaders”, $overrides=”");

But this doesn’t work:

the_ttftext (Upcoming Events, $echo = true, $style=”sidebarheaders”, $overrides=”");

So I put in an underscore and it’s OK:

the_ttftext (Upcoming_Events, $echo = true, $style=”sidebarheaders”, $overrides=”");

Site in question is Left Coast Writers, in the sidebar.

Thanks![/quote]

Instead of your_text_here just do ‘your text here’ and that’ll fix the space-problem. :)

Comment by SiYu

Made Saturday, 3 of May , 2008 at 4:07 am

Hi.. I also experienced an error message:

“You don’t have permission to access /wp-admin/themes.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.”

when I’m trying to edit/add new style.

There’s no problem in setting other features in admin area. Why this happened? It seems the plugin cannot identify me as the administrator?

Any helps would be appreciated :)

Thanks,
SiYu

Comment by Tai

Made Saturday, 3 of May , 2008 at 8:51 am

I am having difficulties with this plugin, actually putting it on my site, can anyone help me?

Comment by stefan

Made Saturday, 3 of May , 2008 at 12:32 pm

anyone have an idea where ist the problem with “You don’t have permission to access /wp-admin/themes.php on this server.”
or an idea to fix this?
pls help

Comment by Frank Altpeter

Made Wednesday, 7 of May , 2008 at 9:08 am

Hi!
I really like your plugin, it’s a great thing. But, i would like to be able to put TTFrendered text within a post, and for that, it would be great if your plugin would make use of the new shortCode system of WordPress 2.5. I think of something like

[ttfText style="basic"]This is ttftext enhanced content[/ttfText]

What do you think about that? Wouldn’t it be great? :)

Pingback by Tea River » Comment mania

Made Wednesday, 7 of May , 2008 at 1:50 pm

[...] have just downloaded a WordPress plugin for use in a certain Tea River client project being worked on, and experienced the sort of [...]

Pingback by I Dream of Kika » Blog Archive » Over, eu?

Made Friday, 9 of May , 2008 at 3:08 pm

[...] títulos por imagens. Existem outras maneiras de se fazer isso, mas a mais óbvia foi instalar um pluginzinho simpático. Achou exagero? Me denuncia pro Pérolas do Dizáine, beijosmeliga. [...]

Comment by Joni Mueller

Made Saturday, 10 of May , 2008 at 9:42 pm

I was SO ready to hit your PayPal link when I found this replacement for Image Headlines after I upgraded a client to WP 2.5.1. But I cannot get the plugin to honor ANY other style except the one I’ve marked default. Not even when I use overrides or clear out the cache (manually via the plugin panel AND via my browser’s menu.

I’d love to be able to use this plugin!!

Comment by Jacob Burke

Made Wednesday, 14 of May , 2008 at 3:40 am

I am currently attempting to use your plugin on my blog: http://blog.jacobburke.com

After I modify the code to display the title and save and reload, I get my blog header and the first post with the image title. My sidebar and other posts and footer are no longer displaying. Can you possibly help me out with this issue?

Thanks!

Comment by upenzi

Made Sunday, 18 of May , 2008 at 9:07 pm

it doesnt appear to be compatible with wp 2.5.1.
i’m so sad..i loved this plugin before i upgraded :(

Comment by jrrl

Made Monday, 19 of May , 2008 at 8:20 am

Okay, time to dive in to this thing and figure it out. I’ve got people saying it kills their admin interface and others saying it doesn’t work in 2.5.1. I am using it in 2.5.1 right here on this site and the admin interface works (although it looks like crap in 2.5.1).

First, I apologize for all the problems. Second, I’m going to see if I can get a new version out this week to address all of these issues. Any requests, bugs, suggestions, code fixes, please post em now. Thanks!

-John.

Comment by Scott at Real Epicurean

Made Monday, 19 of May , 2008 at 6:24 pm

I’m using WP 2.5.1. This plugin works a treat on all my pages and the admin seems OK too.

I would only comment that, as my comment above, I’m struggling to use styles other than the default. Perhaps my coding is wrong; I’m a bit daft at the best of times, any help appreciated!

Comment by Michael Visser

Made Tuesday, 20 of May , 2008 at 11:12 pm

Hi jrrl,

Great plugin, it’s fantastic! Exactly what I needed to get rid of manually generating title header images…

Only concern is the lack of control for text padding when a background image has been applied.

eg. I have a fixed image header that is 100px high and need a vertical padding of 25px (top,right,bottom,left for the text to fit right.

What can you do about implimenting this, I’m looking at the source and I think it’s better that the plugin is updated than me hack it to bits! :D

Thanks!

Comment by Michael Visser

Made Tuesday, 20 of May , 2008 at 11:57 pm

Hi jrrl,

Also, how would I go about adding a bold font style to the generated titles.

Can I pass in a defined slurp (or sub-title) as a post-meta to the generated image, in essence the generated image title would have a) the main title as well as b) sub-title with placement control

Comment by Trisha

Made Wednesday, 21 of May , 2008 at 11:05 pm

Ok I downloaded the plugin. uploaded the ttftitles folder into my /wp-content/plugins folder. When I go to my plugins tab through my admin area, I can activate it, but when I go to the settings to change things around, It doesn’t show the plugin at all. Why would this be? What am I doing wrong?!

Comment by nicki

Made Thursday, 22 of May , 2008 at 5:32 am

I can only see the default font in the fonts folder although I have uploaded more than 1. Thanks in advance if you can help me. Great work!

Comment by nicki

Made Thursday, 22 of May , 2008 at 10:24 am

actually it has no sample or actions either and no matter what I do I cant see any images at all. what am I doing wrong =(

Comment by Chris

Made Saturday, 24 of May , 2008 at 9:39 pm

the plugin keeps telling me this when I try to use a bg image:

“Could not read image “path.to.the.filename”

Where path to filename = the absolute path to the image… any ideas?

Also, I can’t get the png setting to work at all – hence the need for a background image (transparent.gif).

Comment by Jacob Burke

Made Monday, 26 of May , 2008 at 1:55 pm

I have been able to get this running on WP 2.5.1, decided to try it again last night and no problems. The only question I do have is why I am getting an X in a box with the Myriad Pro font. Is this an issue with the plugin or the fact that I am using an apostrophe within my title and the font is unable to read it. Any help or suggestions would be greatly appreciated. Cheers!

Comment by Searchen

Made Tuesday, 27 of May , 2008 at 11:47 am

Hi!

Could someone help me with how to ‘process’ the following command with the ttf function: (It will be applied to the Archives- Category section)

?php echo single_cat_title(); ?

Many thanks
Searchen

Comment by rufus

Made Wednesday, 28 of May , 2008 at 1:01 am

i had ttftitles set up once and it worked just fine, i since then have deactivated it and upgraded to 2.5.1 and when plugin is activated, i doesnt display the pictures anymore. i noticed that it is inserting a \ leading slash isntead of a / trailing slash before the ######.png file. what a strange thing to happen, how do i fix this? the cache folder and url are configured correctly, although i notice it is adding a slash to the windows folder every-time i click update. is this a known problem? please help. taking the plugin folder and erasing it and updating it doesnt seem to fix a cache issue that seems to exist. it doesnt remember the slash configuration

Comment by Upekshapriya

Made Monday, 2 of June , 2008 at 6:25 pm

@rufus I discovered the same problem and found it was to do with DIRECTORY_SEPARATOR in the php. I found on Google that DIRECTORY_SEPARATOR isn’t actually needed and you can just put a forward slash in and php will know whether the server is Linux or Windows. So I searched and replaced all the DIRECTORY_SEPARATOR with ‘/’ (that’s forward slash in single quotes) and it all worked fine after that – it may have something to do with me using an XAMPP server on Windows (which likes \ but that got translated into %5C or something like that which isn’t a / after all!

Comment by ali

Made Monday, 2 of June , 2008 at 8:44 pm

why does making my font size anything over 24 break my theme? thanks!

[...] There’s this coolio plugin here: http://templature.com/2007/10/18/ttftitles-wordpress-plugin/ [...]

Comment by Rachel

Made Thursday, 19 of June , 2008 at 2:37 pm

Does anyone know how to make this work with previous_post_link or next_post_link tags? Such as I want this tag:

To display as an image link using the plugin.

Comment by Greg

Made Wednesday, 25 of June , 2008 at 11:59 am

Regarding KxR and Joelle’s problems:

You need to make sure the GD image library extension is installed. It might also be titled “GD2″ in the PHP install.

Problem symptoms:

Rendering halts abruptly under the “All Installed Fonts” section under “Font Management” for TTF Titles in the WordPress back-end. Doesn’t list the fonts properly.

Comment by humiki

Made Saturday, 28 of June , 2008 at 5:56 am

On windows, this statement (1) generates the wrong url, because DIRECTORY_SEPARATOR is “\”. And as it turns out, it’s not necessary (2).

(1) $generated_url = $options['cache_url'] . DIRECTORY_SEPARATOR . $filename . $extension; //ttftitles.php:797
(2) http://old.alanhogan.com/tips/php/directory-separator-not-necessary

Comment by evaNz

Made Saturday, 28 of June , 2008 at 12:07 pm

its not showing any image in my 2.5.1 wp.. why’s that? will it be fixed?

Comment by Pablo

Made Monday, 30 of June , 2008 at 6:36 am

Hey, hola, there’s something kinda… well, wrong with the plugin. First, the cached images are not shown in Firefox 3.
There’s always been a \ before the names of the images. But in Forefox, it’s shown as %5C. Always!! Then in IE 7, all of them are shown properly. The properties of the images showed the full addresses of the images… also properly. But when I looked up into the source file, found the \ was shown before the names of the images.. Seems like IE fixed the \ but in Firefox it’s not. It was converted into %5C. And there’s another problem, some fonts’ names are not shown in Admin page. For example, the names in Chinese. And, some fonts’ named with a ” in the end of the font name. There’s a font named Thought”, manually I added a \ before “, in the PHP function , but when I used the font as a default font, with , it said it couldn’t find the font. Could the problems be fixed?

Comment by Jen

Made Monday, 30 of June , 2008 at 3:51 pm

I LOVE the plugin, but am having problems when my posts title includes apostrophes. They show up as boxes :( Any idea for a fix? Thanks!

Comment by kelly

Made Saturday, 5 of July , 2008 at 2:44 am

Does this work with WP 2.5.1?

Comment by mingya

Made Saturday, 5 of July , 2008 at 2:55 am

The preview shows the creation of style on the admin interface correctly, but when I plugged in the title as follow:

<a href=”" rel=”bookmark” title=”Permanent Link to “>

It returns error message “Could not create image” on the post page. Please help.

Comment by Shana

Made Saturday, 5 of July , 2008 at 10:13 pm

Add another vote for updating this for 2.5 as soon as you can! I want to access the admin page and I can’t. Even if you just did that and saved all other new updates for another release, would be worth it!

Thanks.

Comment by Shana

Made Saturday, 5 of July , 2008 at 11:07 pm

Nevermind – found it – under Design menu. I wasn’t expecting that, though i guess it does make sense. Sorry to bother!

Comment by Joelle

Made Tuesday, 8 of July , 2008 at 5:06 pm

I, too, am having challenges with fonts that are missing characters, mostly apostrophes and ampersands. They are TTF, so I’m not sure what the issue is.

Any adjustments or tips would be appreciated. This is a fantastic plug-in, but this is starting to pose a problem as it’s showing up on more and more fonts.

Thanks! :)

Comment by Glenn

Made Thursday, 10 of July , 2008 at 11:41 am

I’m trying to figure out if this can be used on individual page titles, not just posts. I’ve tried searching the comments but haven’t had any luck. Searching for the word “page” is taking forever. Thanks for the great plugin!

Pingback by Easy Peasy: True Type Font Titles | Blog Designer News

Made Friday, 11 of July , 2008 at 2:32 pm

[...] For more information on managing this plugin go to the support website. [...]

Comment by Klaus

Made Sunday, 13 of July , 2008 at 7:55 am

This is a wonderful plugin – I used it on my Post titles and am loving it.
But trying to use it in the comment section for the authors name gives me some heartache.
Here’s the culprit:
and here the attempt not working at all:
.
With this I got it working, but then it shows the entire link along with it, which isn’t very useful.
Any suggestion?
Cheers, Klaus

Comment by Klaus

Made Sunday, 13 of July , 2008 at 7:57 am

Sorry – forgot the code tag…
Here’s the culprit:
and here the attempt not working at all:
.
With this
I got it working, but then it shows the entire link along with it, which isn’t very useful.
Any suggestion?
Cheers, Klaus

Comment by Klaus

Made Sunday, 13 of July , 2008 at 7:59 am

Sorry – forgot the code tag…
Here’s the culprit:
and here the attempt not working at all:
.
With this
I got it working, but then it shows the entire link along with it, which isn’t very useful.
Any suggestion?
Cheers, Klaus

Comment by Klaus

Made Sunday, 13 of July , 2008 at 8:04 am

Don’t get it to work to show the code. Anyway – The closest to success I came was when I added the get to the function.
So why does it work then. And to point out where it is – this comment will say – when published: Comment by Klaus, along with the link. The name is what I want to embellish with ttf_text.
Feel free to delete my previous feeble attempts.;)
Klaus

Comment by An Cailin

Made Sunday, 13 of July , 2008 at 1:20 pm

Absolutely love this plugin.

I was wondering if it would be possible for me to use this plugin to change a comment author’s name to a image?

Comment by Thomas

Made Thursday, 17 of July , 2008 at 9:05 am

Hi there!

Great plugin, but I’m having some trouble with non-standard foreign characters; æ ø å and Æ Ø Å (still western latin though..). The fonts I’ve uploaded contain these characters, and I’ve tried others as well, but on publishing these characters only come up as rectangles.

I’ve delved into the code, and I’ve tried both the remove_filter() function, as well as str_replace upon retrieving the $title variable, but it seems these characters are not modified in any way.

Anyone done this successfully?

Thanks!
Tom

Comment by Dgold

Made Thursday, 24 of July , 2008 at 6:54 am

Hi! This plugin is a nice replacement for the old one from ColdForged that I used for years. Thanks for this.

I have about 3 suggestions so far.

#1 Please include the “conditional” statement in the call for the template tag, in your documentation. I have learned this is essential so that my blog doesn’t break if I temporarily deactivate the plugin. In my example code below I will include this IF FUNCTION EXISTS statement, that I culled from the WP Codex.

#2 You could improve the documentation. The “how to” seems to assume that I know PHP and what things like “argument” and “string” means. I don’t know that without researching. Many people just need a copy-paste of the proper template tag. Give us the code and save us dummies the headache. The way you wrote it in the documentation you left off the opening PHP call, and the closing PHP bracket. These kinds of things took me hours to figure out. My bad. I am going to paste in the final code that I ended up with. I would suggest you could please put something like this in the How To,

For me, the code I’m talking about looks like this:

The user need-only fill in the Style Name. Everything else is good to go, with a copy-paste.

#3 On the page where you display the FONTS installed, I would recommend changing the Sample treatment in each font. It is currently the font-name. Change it to the Blog Name! I did this myself (by hacking your plugin) and it looks really cool to see my blog name displayed in every font that’s installed. This has the added advantage that the “sample word” is the same for every font, so it is easier to compare the relative size of the fonts (is it a tall font, a wide font, a fat font, etc).

Thanks again for the TTF Titles plugin. Hope this feedback is useful for someone.

Dg

Comment by Dgold

Made Thursday, 24 of July , 2008 at 6:56 am

Sadly, the Code I wanted to give, did not show up? Let me try again. Sorry about this. Please delete my Comment if this is a duplicate.

CODE TO PUT TTFTITLES IN YOUR TEMPLATES WITH CONDITIONAL TAG:


php if (function_exists(’the_ttftitle’)) { the_ttftitle($before=”", $after=”", $echo=true, $style=”radio-headlines”);

Comment by Dgold

Made Thursday, 24 of July , 2008 at 1:00 pm

3rd comment in a row. Sorry if that’s bad manners. The plugin is super. I am very grateful.

I just went through as many of the 300+ comments, above, as I could stand to read. I see many mentions of the “cookbook” proposal, and I think that is sorely needed still, and could increase the popularity of this handy plugin.

I like the “tab” you’ve added in the plugin config, so the user can get the info right inside their wordpress admin. Trouble is, the codes you’ve got in there are not ready for copy-paste. Just tidy those sample codes up & call it a cookbook. It would really help!

Comment by Dgold

Made Thursday, 24 of July , 2008 at 1:27 pm

Jrrl, thoughts are about you and your family.

In the world of PHP (which I’m new to), I finally figured out the if…. else statement. THIS way of calling ttftitle will show the TTF graphic if the plugin is installed / activated, and has the safety feature that it will display the regular-old plain text title if the plugin is deactivated.

?php if (function_exists(’the_ttftitle’)) { the_ttftitle($before=”", $after=”", $echo=true, $style=”PUT-YOUR-TTF-STYLE-HERE”); } else { the_title(); }?

Why would anyone deactivate this great plugin, you might ask? Well, of course, I deactivate plugins when I upgrade WP versions, so it’s nice to be able to see my theme working before I reactivate every plugin.

This way of calling the ttftitle template tag does that.

Comment by Webblösningar

Made Friday, 25 of July , 2008 at 2:09 pm

A better way would be to modify the output to only output the TTF-title’s url in order to SEO it a bit.


XHTML:
<h1 class="headline" style="background:url();">

CSS:
h1.headline { text-indent:-9999px; background-position:top left; background-repeat:no-repeat; }

And yes, this would indeed make it 1 more MySQL-request per title so you should have some sort of caching-plugin (try 1 blog catcher…). But WP is kinda slow anyway so who doesn’t use a caching plugin? :)

Comment by Webblösningar

Made Friday, 25 of July , 2008 at 2:10 pm

Hm…….. It didn’t seem to render the php-code, but it should be there anyway.. the_ttftitle in the “background”-src for the H1 and the_title for the h1 as regular text.

Comment by Toff.

Made Wednesday, 6 of August , 2008 at 7:06 am

Nice revamp!

Glad to use it, thanks for the good work :}

Comment by Alejandro Urrutia Daglio

Made Friday, 8 of August , 2008 at 5:56 am

Hi, I want to know how to use it on my widget titles.
Anyone knows how?

Comment by Daniel K.

Made Friday, 8 of August , 2008 at 11:25 am

Ok, I’m getting the “no images on localhost” problem. I’ve tried scanning, is there a fix I’m overlooking?

Pingback by Mzheng雜亂無章 » 博客文章 » TTFTitles取代Headline Images

Made Saturday, 9 of August , 2008 at 11:29 pm

Comment by JC

Made Saturday, 16 of August , 2008 at 8:04 am

Hey, I have a problem. I haven’t the slightest clue as to what is going on.

In the WP.org plugins directory, it says that TTFTitles is only compatiable up to 2.3.1, which I deemed untrue since I was able to get it working fine with 2.6. Now that I’ve upgraded to 2.6.1 (and changed hosts), every time I try to create the ‘cache’ directory, CHMOD it to 777, and then try to call it using the_ttftitle, it doesn’t work. Not only does the title not show up with the font (even the presets don’t work), everything below it disappears visually.

I know that’s probably a bit confusing to understand, but if you would like to e-mail me about it to further explain my issue, I’d have no problem with it.

It would be much appreciated if this could be figured out. Thank you in advance.

Comment by Raffael

Made Tuesday, 19 of August , 2008 at 5:35 am

Hello there.
Thank you very much for this great plug-in.

However I still have a question/suggestion. I’m missing out on a possibility to align text. It always is aligned to the left side. I tried it by centering the image via CSS. But as soon as the text is more than one line, centered text doesn’t work.

So is there a possibility to have access to the alignment (maybe by getting one single image per line to be styled via CSS)?

Thank you very much …

Comment by Alejandro Urrutia Daglio

Made Tuesday, 19 of August , 2008 at 6:11 am

Hi, I’m using ttftiles to show some font in my main menu, I put:


but nothings showing any suggestion? Thanks in advance

Comment by Alejandro Urrutia Daglio

Made Tuesday, 19 of August , 2008 at 6:12 am

The code:

Comment by Alejandro Urrutia Daglio

Made Tuesday, 19 of August , 2008 at 6:12 am

php the_ttftext(wp_list_pages(’title_li=&depth=-1&sort_column=ID’));

Comment by Puh

Made Wednesday, 20 of August , 2008 at 8:49 am

Thanks lot for this great Plugin – I love it, but have a little Problem – is it in any way possible to bring the style back from code and to the css-file? I have two css-files that switch the theme from day to night and I want switching the style from ttftext switching too, but how can I do this, because the style isnt in the css, its only in the code of the website. Hope you can help me!

Comment by Heather

Made Friday, 22 of August , 2008 at 6:28 pm

I really love your plugin, thank you for taking the time to work on it. I do have a quick question, how can I change the default style, or export a style? I would really like for the plugin to activate automtically with a specific style.

Thanks in advance for any help you can give. :)

Pingback by Neues Plugin: TTFTitles | Knutshome.de - Not the polar bear [The Blog]

Made Saturday, 23 of August , 2008 at 11:59 am

[...] heute hat mein Blog auch besser aussehende Post-Überschriften. Das erledigt für mich das Plugin “TTFTitles” zusammen mit der kostenlosen Schriftart “Journal”. Zum Installieren des Plugins einfach hochladen, [...]

Pingback by Headline Writing for Google, Social Media and Profit : Condomunity

Made Sunday, 24 of August , 2008 at 4:07 am

[...] The TTFTitles WordPress Plugin This plugin lets you use images to replace the titles of your posts, thus circumventing the problem of guessing what fonts your end-users might have installed. [...]

Pingback by How to Get Half a Million People to Visit Your Blog

Made Thursday, 28 of August , 2008 at 8:26 am

[...] The TTFTitles WordPress Plugin This plugin lets you use images to replace the titles of your posts, thus circumventing the problem of guessing what fonts your end-users might have installed. [...]

Comment by Raffael

Made Monday, 1 of September , 2008 at 1:46 am

Doesn’t anybody have an idea on how to solve the “align-center”-issues?
Thank you in advance …

Comment by sam

Made Monday, 1 of September , 2008 at 5:52 am

hi there, i am on the “Wordpress as a CMS” train, and i am making a multi language site using qTranslate plugin and TTFTitles (they work together nativley, awesome!)

what i need to do though, is make the page navigation throughout the site use TTFTitles, is there a way to do this easily?

thanks so much for the great plugin!!
sam

Comment by nmac

Made Tuesday, 2 of September , 2008 at 8:04 pm

@JC – I am having a similar problem with ttftitles not working… hard to tell if it was due to changing hosts, a php upgrade, or some other problem. I dont think it is the 2.6.1 that broke yours, i do think it was cos you changed hosts – I had it working on 2.5, then changed hosts… and discovered some time later it was not working.. but cannot discern if it was EVER working after changing hosts.. long story, anyway… Are you running PHP5? were you running PHP4 on the old host? Are you getting a ksort error? I am. Still investigating, if I figure it out I will post here too.

Comment by Steve Bruner

Made Tuesday, 2 of September , 2008 at 8:31 pm

This is an amazing plugin! Thank you so much!

I am able to get ttftitle to work, but not ttftext. Below is the code I used to show the demo profile. Any help you can provide would be appreciated. Thanks! Steve

<a href=”" rel=”bookmark” title=”Permanent Link to “>

Comment by Steve Bruner

Made Tuesday, 2 of September , 2008 at 8:32 pm

I’m submitting this again because the code didn’t show.

This is an amazing plugin! Thank you so much!

I am able to get ttftitle to work, but not ttftext. Below is the code I used to show the demo profile. Any help you can provide would be appreciated. Thanks! Steve


<a href="" rel="bookmark" title="Permanent Link to ">

Pingback by Getting The Blogging Review Ball Rolling — Blogging Review

Made Tuesday, 16 of September , 2008 at 12:31 pm

[...] Askimet Contact Form 7 Easy Gravatars Google XML Sitemaps Redirection ShareThis TTF Titles Welcome Visitor WP Popular Posts WP Stats WP Automatic Upgrade WP Related [...]

Comment by Paul Pehrson

Made Thursday, 18 of September , 2008 at 4:09 pm

Thank you! Works like a charm!

I was using Brian’s original plugin, and refused to upgrade WordPress because I didn’t want to try to figure out a fix. Then I was forced to upgrade because of a security breach, and I dealt with ugly titles for a while. Now we are both secure and beautiful.

It is a good day. Thanks!

Comment by Jenn

Made Saturday, 20 of September , 2008 at 4:57 pm

nmac: Thank you for the reply. My previous host supported both PHP4 and PHP5, and my current host supports 4.3. I suppose that’s the problem, then?

Comment by private Krankenversicherung

Made Sunday, 21 of September , 2008 at 12:36 pm

I have two WP blogs for myself, and have installed some for our clients. Simple to use, easy enough to modify, definitely a great product. Good Plugins!

Comment by Crystal

Made Monday, 22 of September , 2008 at 12:29 am

Where the heck is the cache directory? When I unpack the plugin I have fonts, images, and js directory…but not cache. Am I missing something??

Comment by WiJzZ

Made Wednesday, 24 of September , 2008 at 5:41 pm

@Crystal: you need to create it manually (ideally in the root folder – public_html-) and CHMOD it to 777.
To all saviours out there: I’ve seen people reporting the issue I’m facing but without satisfactory responses. it’s so weird. I’ve been using it for at least a year without a fail and after reactivating GD due to some server upgrades, it did create some png titles in the cache 1 week ago. Now the plugin is broken for no apparent reason. Once says cache is not writable when path is wrong, then whole plugin breaks when path is correct! It only shows 1st font installed and the styles directory is messed up. No preview, no caching, no error message. Weird. I’ve uninstalled and reinstalled, deleted sql line, made sure a million times about paths, CHMOD, safe mode off with no luck… I’m using PHP 5.2.5 and WP 2.6.1. I still don’t have a clue to date and it’s starting to drive me crazy (yeah I’m addicted). I take any info! Tnx :)

Comment by Hisky

Made Friday, 26 of September , 2008 at 6:28 pm

Hmmm. I got Wordpress 2.5.1 running.
Cache and Fonts CHMOD is 777, the single.php uses already the Cache. (if i use right click i see the path to the png file)

But no font i used. In my admin panel i everything is grey and i cant see any font as it should look like.

Guess is a WP 2.5.1 or higher problem?

Comment by WiJzZ

Made Saturday, 27 of September , 2008 at 12:23 pm

Any ideas why Ttftitles can’t create images without any error messages? :/

Comment by WiJzZ

Made Saturday, 27 of September , 2008 at 12:38 pm

@Nmac & Jenn: I just realized you were facing the same problem. If you find anything, please keep posting here. I’m desperate…

Pingback by TTFTitles - Blog Title in anderen Schriftarten darstellen

Made Sunday, 28 of September , 2008 at 12:23 pm

[...] mit bei Cindy die Schriftart der Titel schon länger gefällt, hab ich nun auch das TTFTitles Plugin [...]

Comment by WO

Made Tuesday, 30 of September , 2008 at 5:24 pm

WiJzZ – I am having the same problem as well. I was designing a website on a Windows 2003 box and when I switched it over to Linux box poof the same problem occurred. I can’t understand why no error comes up, especially since it doesn’t load the rest of the wordpress webpage, the footer that is.

I will keep you up to date on my findings, you do the same. I’m thinking this might be a linux issue as I’ve never seen this happen in windows. I’m guessing you are on a linux server as well??

Comment by Hisky

Made Wednesday, 1 of October , 2008 at 9:21 am

I have used this plugin extensively and it works with version 2.6.1 and 2.6.2 on windows 2003. I have had a few problems and still have the issue above with a linux server. I’m still trouble shooting the issue. Any help by anyone would be appreiciated. Anyone have this plugin running on a linux box?

Hisky I have had a similar problem occur when my cache directory is incorrect.

Comment by WO

Made Wednesday, 1 of October , 2008 at 9:21 am

Whoops that last message was suppose to be TO Hisky by me WO.

Comment by WO

Made Wednesday, 1 of October , 2008 at 3:31 pm

WiJzZ and company

Ok, I figured out the problem that some have been having where you goto the fonts list or the styles list and the first one only loads up until it goes to show the font in it’s style, thereafter break the page without error.

Basically, this all deals with GD which is image manipulation support for PHP, and is used by TTFTitles. Some will say well I have that installed, well if you click on the link below you will see two lines:

FreeType Support Yes
FreeType Linkage Yes

Freetype is required for TTFTtitles to operate. Therefore, even if you have GD Support installed with PHP, but do not have FreeType Support installed TTFTitles will not function.

Just reinstall PHP on your server, or contact your administrator and ask them to reinstall PHP and make sure to add GD Support with FreeType Support included.

http://www.killingspree.com/gd-test.php

You can read up on GD Support here:

http://us3.php.net/gd

Also here notice how they actually reference the TTF Libraries when it comes to FreeType Support.

http://us3.php.net/manual/en/function.gd-info.php

Hope this helps. :)

Comment by WO

Made Wednesday, 1 of October , 2008 at 3:36 pm

Btw, also here you can download the gd-test.php file if you want to upload it to your server and test to see if you have FreeType Support and FreeType Linkage equaling YES. If not you have to install it for TTFTitles to operate.

http://www.dagondesign.com/demo/gd-test.php

Comment by WO

Made Wednesday, 1 of October , 2008 at 3:38 pm

Sorry the above link was WRONG, my bad!! Here is the correct link to download gd-test.php to test your server.

http://www.dagondesign.com/articles/checking-for-gd-support-on-your-server/all-comments/

Comment by Finnjumping

Made Wednesday, 1 of October , 2008 at 5:57 pm

I love this plugin! Thanx for sharing it :o ) Keep it up!

Comment by WiJzZ

Made Wednesday, 1 of October , 2008 at 6:01 pm

Yeah WO, you beat me to it! I just realized when checking my phpinfo last night that Freetype support in GD had been disabled! I brought it to my host’s attention and he’ll look into it but I’m pretty sure that’s the damn thing that’s been giving me headaches for a week. And there you come with the same suggestion. Thanks for that. I’ll confirm if that was the issue as soon as it’s re-enabled. ;)
Cheers

Comment by WiJzZ

Made Monday, 6 of October , 2008 at 4:08 pm

I’m still waiting for my host to make the changes… No, I’m not going nuts… :/

Comment by WiJzZ

Made Tuesday, 7 of October , 2008 at 5:30 am

Guys, it seems that my host is really dragging his feet to re-enable Freetype. He claims it’s on when it’s not and apart from keeping bringing the evidence that it isn’t, I just feel we’re going nowhere and this upsets me. So my question is : is there a way to circumvent Freetype to use TTFtitles? Thanks in advance.

Comment by WiJzZ

Made Tuesday, 14 of October , 2008 at 2:16 pm

All right, it’s all sorted now. I’m a happy bunny :)

Comment by Jim

Made Friday, 17 of October , 2008 at 12:28 am

in my page.php file I have

<a href=”" rel=”bookmark”>

It was the only way to get the graphic text to show up, but following the graphic I get this text “Could not find style “overrides”text”. What am I missing? Seems so close, just need to get that error out of there.

Comment by Halm

Made Sunday, 19 of October , 2008 at 7:27 pm

I currently use this plug-in on two sites and will keep them multiplying while we wait for web fonts.

Two things that I look forward to in TTFtitles:
1. Some possibility of using the_ttftitle on sidebar/widget titles
2. Being able to apply the_ttftitle to an entire headline class (e.g. H3)

Is anything like those on the horizon?

Pingback by The TTFTitles WordPress Plugin by John Leavitt et al.

Made Wednesday, 22 of October , 2008 at 3:03 am

[...] been looking at The TTFTitles WordPress Plugin, which allows (I’m assuming that I understand all of the features – but I’m not sure of [...]

Comment by Lance Brown

Made Saturday, 25 of October , 2008 at 3:21 pm

Great plugin – thanks!

I have one question – when using ttftext, is there a way to use a wordpress/php variable inside the $text definition? Some titles, like search results and tag archives, have a dynamic element in the title (i.e., “Pages tagged ‘####’”). So how can I invoke single_tag_title() inside this:

If anyone knows how to do this, it would be a big help. I keep getting php errors with my attempts.

Comment by Lance Brown

Made Saturday, 25 of October , 2008 at 3:23 pm

the code in my post got dropped, let me try again:

…So how can I invoke single_tag_title() inside this:

Comment by Lance Brown

Made Saturday, 25 of October , 2008 at 3:25 pm

OK, one more try… I made a change so it doesn’t get recognized as code:

(*opening php bracket*) the_ttftext($text = “Pages tagged:”, $style = “hpa”, $overrides = “”); (*closing php bracket*)

Comment by Lance Brown

Made Saturday, 25 of October , 2008 at 3:28 pm

I left out the marker, but I want to put the single_tag_title() inside the “Pages tagged:” bit, here: “Pages tagged: ##here##”

but I keep getting php errors, I guess because it’s a php variable inside another php variable. Anyone know how to get around that?

Sorry for the multiple posts

Pingback by Terragina`s Blog » Ich war fleissig & brauche Hilfe

Made Tuesday, 28 of October , 2008 at 1:10 pm

[...] TTF Titles von John Leavitt [...]

Comment by Angi

Made Tuesday, 28 of October , 2008 at 5:10 pm

Since I updated a few plugins, ttftitles doesn’t work anymore. On the admin page I get this error message:

Warning: ksort() expects parameter 1 to be array, string given in /www/htdocs/angisw/blog/wp-content/plugins/ttftitles/ttftitles.php on line 1273

Warning: Invalid argument supplied for foreach() in /www/htdocs/angisw/blog/wp-content/plugins/ttftitles/ttftitles.php on line 1274

The problem is that I don’t know which plugins I changed – ttftitles was deactivated for a few months because I didn’t find a font I liked. During this time I updated a lot of plugins. Now I wanted to reactivate it and I get this error messages. No fonts show up in the dropdown list when creating a new style, so I can’t create styles, and the standard styles are also missing.

plz help me if you can! :)

Comment by Angi

Made Tuesday, 28 of October , 2008 at 5:12 pm

ps: On the “fonts” admin page there is another error message:

Warning: closedir(): supplied argument is not a valid Directory resource in /www/htdocs/angisw/blog/wp-content/plugins/ttftitles/ttftitles.php on line 365

Warning: ksort() expects parameter 1 to be array, null given in /www/htdocs/angisw/blog/wp-content/plugins/ttftitles/ttftitles.php on line 1574

Warning: Invalid argument supplied for foreach() in /www/htdocs/angisw/blog/wp-content/plugins/ttftitles/ttftitles.php on line 1576

Comment by Delbert Peach

Made Thursday, 30 of October , 2008 at 12:09 am

Hi, I’ve noticed that when my title has descenders (g, p, y, etc.) the design looks different – that’s because there is more space between the “baseline” of the title and the top of the following text block. Is there any way to standardize this so that the program automatically adds image space below normal non-descending characters?

Comment by Delbert Peach

Made Thursday, 30 of October , 2008 at 12:47 am

of course, the space would have to only be at the bottom of the entire image, not each line.

Comment by Karly

Made Sunday, 2 of November , 2008 at 10:49 pm

Hi, I LOVE this plugin, but I’m having some problems with the_ttftext portion. I’ve gotten the_ttftitle to work great, but am lost when it comes to the text. I am trying to replace all the h2 titles in my sidebar. When I go in to the sidebar to replace h2 with the_ttftext I can’t figure out what code to use there. I’ve tried the opening bracket the_ttftext(TITLE) closing bracket and all sorts of things, but none seem to work. Can anyone help me out with the correct code for changing the text? Thank you so much!

Trackback by Angi's Blog

Made Tuesday, 4 of November , 2008 at 6:09 pm

Endlich: TTFTitles funktioniert wieder…

Vor einigen Wochen habe ich ein paar Plugins auf den neuesten Stand gebracht – man wird ja seit einigen Versionen immer so schön daran erinnert. Schludrig wie ich bin, habe ich dabei vergessen nach jedem Update zu überprüfen ob noch alle…

Pingback by WordPress Headlines anders gestalten » Beitrag » Gruening.me

Made Wednesday, 5 of November , 2008 at 10:21 am

[...] folgenden Link kann sich das Plugin gedownloadet werden und auch eine kleine Anleitung steht Euch dort bereit. Bei [...]

Comment by Rahid

Made Sunday, 9 of November , 2008 at 11:46 am

I would like to change the navigation titles using ttftitle plugin. Please help

Comment by kim

Made Wednesday, 12 of November , 2008 at 2:49 am

I have inserted the code for getting rid of borders into my style.css file, but it doesn’t get rid of the border. Any help you can provide?!?

Comment by nan mc

Made Friday, 14 of November , 2008 at 6:34 pm

I’ve used ttftitles regularly, and have had no problem. But all of a sudden, when I add a page or post, I get message “FONT NOT LOADED” and the name of the font. The titles and the font work perfectly on all existing post, page, and blog titles.

What have I done?

Thanks for any assistance.

Comment by Chris Hale

Made Saturday, 15 of November , 2008 at 6:53 pm

Is it possible to add this to the wysiwyg editor so that you can select text and click a button and it automatically adds the php to it.

I have tried doing it in the html view but it strips all php tags. is there a way round this?

Thanks

Comment by w00d

Made Wednesday, 19 of November , 2008 at 6:41 pm

I could not get this plug-in to Firefox 3.0.4 and not being a programmer was puzzled as it simply would not render the images but working fine with other browsers. Following is what I did to fix but I don’t know what I did was correct or not. Nevertheless going by what others had said that the “DIRECTORY_SEPARATOR was not necessary” and guessing this was my problem I replaced ever occurrence of the “DIRECTORY_SEPARATOR” with '/' things are now working wonderfully. Despite my problem with this plug-in and really wanting this to work as I think this is a great asset that adds quite allot to my site, thanks

Comment by jazzs3quence

Made Thursday, 27 of November , 2008 at 10:12 am

anyone looking to try to ttftitle-ize page/post content, here’s the code. tested and works, the only caveat is if you have (for some bizarre reason) any html tags in the content you’re trying to ttftitle (because it’s rendered as text).

Comment by jazzs3quence

Made Thursday, 27 of November , 2008 at 10:15 am

hrm, that sucked, let me try that again

<blockquote cite=”">

Comment by jazzs3quence

Made Thursday, 27 of November , 2008 at 10:16 am

/sigh
obviously I’m having problems posting code here. not sure why the tag isn't working, so this won't be copy/pasteable:

Comment by Cathy | Healing Graphics

Made Friday, 28 of November , 2008 at 1:02 am

This is NOT working, in WP 2.6.2, Firefox 3.0.4.

RESULT: Title Font in an image box/border. (no errors)
Any ideas?

thanks!
Cathy

Comment by Cathy | Healing Graphics

Made Friday, 28 of November , 2008 at 1:02 am

<?php the_ttftitle($before="", $after="", $echo=true, $style="demo", $overrides=""); ?>

Comment by mmeetoilenoir

Made Sunday, 30 of November , 2008 at 1:29 am

Bad plugin. He’s talking about a “Presentation” tab and such when it doesn’t even exist! Plus, there’s no cache folder in the .zip file at all. I don’t even think the developer cares about this plugin anymore (no replies on this thread since early this year). I’m going to look for something else.

Comment by jrrl

Made Sunday, 30 of November , 2008 at 2:46 am

I wouldn’t say I don’t care about it. I have had some other stuff going on.

As far as the presentation tab goes, I suppose I should have updated this page to reflect the change in terminology to “Design” in 2.5 and 2.6. On the other hand, it will be called appearance as soon as 2.7 is finalized. I wish we could settle on one name, but the WP powers that be have not yet.

The cache folder is an annoyance. It DOES exist in the svn directory I checked in, but apparently empty directories are not included in the generated zip files. I plan on putting an empty dummy file in there in the next release…

which will be out a couple of weeks after 2.7 is finalized. I have been reworking the image generation code to allow for better transparency in PNGs, better shadows, and some other effects. I have also been reworking the interface to allow for previewing the styles as you change them, but I have a few kinks to work out with the jQuery code.

I apologize to folks if I have been silent on here. If you really want to see how I spent my summer and why I would much rather have been hacking on this, feel free to surf over to the relevant tag on my personal blog.

So… any requests for the next version?

Oh, and (a) does anyone actually use GIFs? (b) does anyone actually use the hard shadow effect? (c) does anyone actually use a non-transparent background or use the (somewhat broken) background image feature?

Thanks.

Comment by Mario

Made Sunday, 30 of November , 2008 at 3:21 pm

In a future update, you should make it so people can change the letter spacing. :D

Comment by Adam

Made Monday, 1 of December , 2008 at 1:11 am

Hi Jrrl! Being able to right align is a big feature request, and one I’ve seen asked for a lot in the comments. Also, is there some reason that TTFTitles would render differently on different servers? On my development version of my blog, running under MAMP on my Mac, TTF titles rendered quite prettily, but on the live version of my site, it’s un-antialiased, and in some cases renders the same string of text into different-height images, which breaks my layout in certain ways. I’ve doublechecked that my settings and font-files are the same. Is there some feature of the different server environments that might be creating these different renders? I can provide test cases and example images if you want my help isolating the bug. Thanks!

Comment by Adam

Made Monday, 1 of December , 2008 at 1:25 am

Oh, and I would use plainer settings for the default — it’s annoying to have to turn off Shadow and change the color back to black every time I create a new style!

Comment by Val

Made Monday, 8 of December , 2008 at 1:55 pm

Can anyone help me with adjusting letter spacing. I looked at http://de.php.net/manual/de/function.imagettftext.php#74949, but I am not sure where to make the edits in the plugin.

Comment by Jessica

Made Tuesday, 9 of December , 2008 at 8:33 pm

Thank you for the great plugin, John–it really helped me get just the right look on my new site.

I wanted to post because I was also having the error:
Warning: ksort() expects parameter 1 to be array, string given
Warning: Invalid argument supplied for foreach()

I was able to fix it, so I wanted to share the solution that worked for me.

I tried uninstalling and reinstalling the plugin, but that didn’t fix things. So, what I did was export the entire WP database using phpMyAdmin and then searched for all instances of “ttftitles”, deleted all references, uploaded the revised database, reinstalled the plugin… And that fixed it. Probably more complicated than necessary, but I was moving my site from a testing directory to the official spot, and I was already logged into phpMyAdmin to make the move.

Thought this might help someone else (though, seriously, if you aren’t familiar with phpMyAdmin, I don’t recommend this approach). I used this tutorial to make sure I was using the right settings: http://www.webdesignerwall.com/tutorials/exporting-and-importing-wordpress/

And, John, seriously, thank you for this plugin–it’s fantastic!

Pingback by Text-To-Font Wordpress Plugin | Playout Intelligence

Made Wednesday, 10 of December , 2008 at 11:52 pm

[...] Leavitt over at Hostscope has an excellent Wordpress plugin to convert text to images, “TTFTitles”. Originally it [...]

Comment by Thorsten Claus

Made Wednesday, 10 of December , 2008 at 11:58 pm

Hello John, what a great plugin!!!

I added a CSS class text field to your plugin and made a quick and dirty hack to use the ‘the_ttftext(…)’ function within the textarea in HTML input mode (without starting to interpret php code….). The additional plugin is really a quick an dirty fix, and I doubt that it works with large amounts of text or double quotes within the text, but it’s a start…

Comment by Thorsten Claus

Made Wednesday, 10 of December , 2008 at 11:59 pm

Ups, I forgot the link ;)
TTF Titles changes for CSS classes. Entries in the text-area are done with
||my text goes here|mystyle|myoverrides||

Comment by Thorsten Claus

Made Thursday, 11 of December , 2008 at 12:00 am

… and your clock in this comment part is fast by one hour :)

Comment by Allure

Made Friday, 12 of December , 2008 at 5:34 am

Hi,

I update k2 to relese k2-RC7-revision-736, and i don’t see the image of tfftitle.
how can I fix it???

Thank you

Pingback by WordPress 2.7 And You | OMG!!! Ponies!!!

Made Sunday, 14 of December , 2008 at 11:30 am

[...] fonts for the post titles and the blog title are done with a wonderful plugin called TTF-Titles.  I added about 2 lines of code to the theme.  TTF-Titles generates a PNG image for every [...]

Pingback by Choco-Light » Blog Archive » Abaixe o theme

Made Sunday, 14 of December , 2008 at 6:59 pm

[...] na imagem para ampliar.Para esse thema, voce precisa de plugins: ttftitles, wp-pagenavi. Baixar o theme [...]

Pingback by Headline Writing for Google, Social Media and Profit : Condomunity.com

Made Monday, 15 of December , 2008 at 8:07 am

[...] The TTFTitles WordPress Plugin This plugin lets you use images to replace the titles of your posts, thus circumventing the problem of guessing what fonts your end-users might have installed. [...]

Comment by Heather

Made Sunday, 21 of December , 2008 at 9:31 pm

I am trying to rename the page links. When you click on a link to my blog, the link states: “??P=##” and I would like to change it to it’s corresponding page name, the title of the page or blog entry. Is this possible?

Comment by pepijn

Made Sunday, 28 of December , 2008 at 6:37 am

hi, i made a seo improved version if someone is interested…
801: return “” ;
938: return “” ;
964: $title = $before . ” . get_the_title() . $title . ” . $after;

Comment by pepijn

Made Sunday, 28 of December , 2008 at 6:40 am

sorry for the previous post, the html tags got rendered or removed i think.

801: return "" ;
938: return "" ;
964: $title = $before . '' . get_the_title() . $title . '' . $after;

Comment by Chanty

Made Tuesday, 30 of December , 2008 at 12:44 pm

Letter spacing feature, yes please! :)

Pingback by The Portfolio of Iwan Ruslani · Style text with TrueType fonts

Made Monday, 19 of January , 2009 at 2:48 pm

Comment by Paul Kaiser

Made Tuesday, 20 of January , 2009 at 8:55 am

Howdy — What happened to the TTFTitles download? I’ve loved this plugin in the past where needed. Thanks for the work you’ve done on it thus far.
Take care,
Paul

Comment by Leo

Made Tuesday, 20 of January , 2009 at 8:57 am

Hi there, happy new year ;)

i use your plugin for a while now, everything works fine ;)

however i would like to test a stuff in my blog and for this i need to deactivate/unistall your plugin. there i had a problem. actually i went on the wordpress’ plugin interface and i simply deactivate ttftitle plugin but when i reload the blog’s page i get the following error:

Fatal error: Call to undefined function the_ttftitle() in /home/lu…ce/public_html/b…g/wp-content/themes/3k2redux-klee/theloop.php on line 137

where the line 137 is the following:

<h3 cat_name == ‘Noteworthy’) { ?> class=”noteworthy”><a href=”" rel=”bookmark” title=”>

so, it’s clear that fatal error is coz the function is no longer recognized since the plugin was deactivated. ok, so i erase the part of my theloop.php file. now the fatal error was gone but the titles do not show up anymore! So, my question is: how do i deactivate/unistall ttftitle plugin in order to get the simple text title i had before install ttfplugin?

cheers,

Leo

ps: for the record, i’m using the 3k2redux klee theme

Comment by bari

Made Tuesday, 20 of January , 2009 at 12:41 pm

where has the plugin gone? can’t download it anywhere!

Pingback by 50 Useful Design Tools For Beautiful Web Typography | How2Pc

Made Wednesday, 28 of January , 2009 at 3:01 am

[...] TTFTitles WordPress PluginThis plugin lets you use images to replace the titles of your posts, thus circumventing the problem of guessing what fonts your end-users might have installed (via hyperdjango). [...]

Pingback by ArticleSave :: Uncategorized :: 50 Useful Design Tools For Beautiful Web Typography

Made Wednesday, 28 of January , 2009 at 3:02 am

[...] TTFTitles WordPress PluginThis plugin lets you use images to replace the titles of your posts, thus circumventing the problem of guessing what fonts your end-users might have installed (via hyperdjango). [...]

Pingback by 50 Useful Design Tools For Beautiful Web Typography | Free Wordpress Templates (Themes)

Made Wednesday, 28 of January , 2009 at 3:31 am

[...] TTFTitles WordPress PluginThis plugin lets you use images to replace the titles of your posts, thus circumventing the problem of guessing what fonts your end-users might have installed (via hyperdjango). [...]

Pingback by 50 Useful Design Tools For Beautiful Web Typography | BigBook.eu

Made Wednesday, 28 of January , 2009 at 3:56 am

[...] TTFTitles WordPress PluginThis plugin lets you ingest images to change the titles of your posts, thusly circumventing the difficulty of guessing what fonts your end-users strength hit installed (via hyperdjango). [...]

Pingback by Wordpress Blog Services - 50 Useful Design Tools For Beautiful Web Typography

Made Wednesday, 28 of January , 2009 at 7:56 am

[...] TTFTitles WordPress PluginThis plugin lets you use images to replace the titles of your posts, thus circumventing the problem of guessing what fonts your end-users might have installed (via hyperdjango). [...]

Comment by Andreas Svalås

Made Wednesday, 28 of January , 2009 at 9:37 am

Hi there.
I love this plugin and am looking forward to your updated version.

(a) does anyone actually use GIFs?
Yes. I do atleast. To keep my pages readable even in older browsers.

(b) does anyone actually use the hard shadow effect?
I use it all the time. I prefer hard shadows, especially on large text.

A feature I’d like added in future updates would be to be able to set a border to the text. An outline so to speak, with selectable color and width.

Pingback by sIFR, et al | Haiku Monkey

Made Wednesday, 28 of January , 2009 at 10:09 am

[...] TTFTitles WordPress Plug-In: Works beautifully. The plug-in allows you to set up styles to be applied in your WordPress templates, and then generates PNG files on the fly based on your style and whatever TTF fonts you have uploaded in a special folder. The unfortunate bit is that you have to have fonts sitting on your web server, which opens up the Pandora’s box of piracy. And, of course, unlike sIFR, you now have images instead of text on your web pages. [...]

Comment by rufus

Made Wednesday, 28 of January , 2009 at 3:05 pm

Hi, im on windows and i use APPSERV

im still getting a problem with DIRECTORY_SEPARATOR its always \ instead of / you mentioned you were going to fix this in your plugin in 2008 and im still getting the same issue. I managed to fix it a while ago on my other blog but had since disabled it on there and now i cant get it to work again. it displays “%5c” instead of a “/” I tried replacing directory_separator in the php file but doing that brings up errors.

please help.

maybe an arguement on top of the plugin “if windows directory_separator = /” :p thanks

Comment by rufus

Made Wednesday, 28 of January , 2009 at 3:10 pm

edit….

i found this (might be helpful)

$base = dirname($_SERVER['SCRIPT_NAME']);
if(defined('DIRECTORY_SEPARATOR')) $base = str_replace(DIRECTORY_SEPARATOR, '/', else $base = str_replace("\\", '/', $base);

but it still doesnt work…

I think a simple fix for this would be to just have the forward slash on the config file and do away with directory_separator

Comment by rufus

Made Wednesday, 28 of January , 2009 at 6:38 pm

edit.. once again

ok, i got it to work
did the following:

replaced

$generated_url = $options['cache_url'] . DIRECTORY_SEPARATOR . $filename . $extension ;

with


$generated_url = $options['cache_url'] . $filename . $extension ;

and put a “/” at the end of CACHE URL in Wordpress TTF Titles settings. so in the final output
http://mysite.com/wp-content/plugins/ttftitles/cache/

hope this helps someone.

Pingback by 50 Useful Design Tools For Beautiful Web Typography - All web resource stuff

Made Thursday, 29 of January , 2009 at 3:01 am

[...] TTFTitles WordPress PluginThis plugin lets you use images to replace the titles of your posts, thus circumventing the problem of guessing what fonts your end-users might have installed (via hyperdjango). [...]

Comment by Alan

Made Thursday, 29 of January , 2009 at 12:35 pm

many thanks for this plugin :-)

Pingback by Add Custom Fonts to your WordPress Site | Mesmer Lab

Made Thursday, 29 of January , 2009 at 7:56 pm

[...] to the good stuff concerning WordPress users. The guys over at HostScope.com have developed a plugin that achieves FLIR goodness in an easy admin interface. I use this plugin to carry over my logo font to the sidebar headings on [...]

[...] TTFTitles WordPress Plugin [...]

Comment by eve

Made Monday, 9 of February , 2009 at 11:50 pm

Hi! I have the plugin working now- I wanted to know if you knew how to get the list of pages across my header to show up in the style I set- the code below is what I used to try to get it to work…. can you take a look and let me know what to change- PS- when I used the code below nothing changed- it looked the same as is does now. Thanks!!

<a href=”">Home

Comment by eve

Made Monday, 9 of February , 2009 at 11:51 pm

code did not paste– here you go- edited without

ul class=”nav”
li class=”first” a href=” ?php bloginfo(’url’); ? ” Home /a /li
?php the_ttftext(wp_list_pages(’title_li=’),$echo=true,$style=header,$overrides=”"); ?
/ul

Comment by Suzanne

Made Thursday, 19 of February , 2009 at 1:42 pm

I’m a WP n00b and I can’t figure out how to edit the code to get the pluging to work..
I want it to replace the titles of my entry’s.. I want it too be the font ‘Miss Brooks’ and I already uploaded it into the right folder.

What code do I need to add to my CSS?
I hope you can help me!

Pingback by 50 Useful Design Tools For Beautiful Web Typography | Ramblings

Made Saturday, 21 of February , 2009 at 1:10 am

[...] TTFTitles WordPress PluginThis plugin lets you use images to replace the titles of your posts, thus circumventing the problem of guessing what fonts your end-users might have installed (via hyperdjango). [...]

Comment by Sarah

Made Monday, 23 of February , 2009 at 10:51 am

For those of you still using this and wanting to have the widget titles be able to use it download execphp if you don’t already have it. The latest version supports php within the textarea of the widgets.

Then leave a space in your widget title and put your code into the textarea with the h2 tags wrapped around it, like this:

Works like a charm!

Comment by Sarah

Made Monday, 23 of February , 2009 at 10:52 am

hmm, the code didn’t work, let me try this again:

Comment by Sarah

Made Monday, 23 of February , 2009 at 10:54 am

…or not. lol here it is with spaces(remove spaces):

Comment by Sarah

Made Monday, 23 of February , 2009 at 10:54 am

nevermind! haha

Comment by ColdForged

Made Monday, 23 of February , 2009 at 12:46 pm

I find it moderately funny that I’m now using your plugin instead of mine since I finally upgraded to a WP version released this decade :D . Great work on the plugin, works flawlessly.

Comment by Jason

Made Wednesday, 25 of February , 2009 at 4:34 pm

Thanks for this plugin. I use it on my sidebar headings and my comments section.

I’m trying to use this on the date button for each post on the home page @ http://www.mesmerlab.com. The only way I ever get a graphical representation is if I delete the $month declaration, which results in ‘ARRAY’ being rendered, lol. How can I get the actual month and day to come across as an image?

Comment by Jason

Made Wednesday, 25 of February , 2009 at 4:36 pm

(code was stripped, lol)
[p class="date"]
[?php $month = the_time('M') ?]
[?php the_ttftext("$month", true, "date01", ""); ?]
[span][?php the_time('d') ?][/span]
[/p]

Comment by Warren

Made Thursday, 26 of February , 2009 at 1:26 pm

@rufus

I couldn’t get the images to show up until I made the change that rufus suggested. Thanks!

Comment by Michelle

Made Monday, 2 of March , 2009 at 7:56 pm

Thank you for the great plugin! the TTF_Titles bit works great.

the_ttftext, however, won’t render anything but plain text no matter what I do. I’m trying to display single_cat_title() on an archive page, so I wrapped it in the_ttftext() as specified. The title renders, but not as a ttf image – just as plain text. (Thanks for the graceful error! :) )

If I put plain text in, it works – the_ttftext('words here') – but not when I put single_cat_title() in the place of the quoted words. Yes, I take out the quotes. :)

Any ideas would be much appreciated! THANK YOU!

Comment by Jeff

Made Thursday, 5 of March , 2009 at 3:19 pm

Just a note for people running PHP/GD library on 64-bit architecture servers:

There’s a bug that causes the background to always render black, no matter what colour it’s set to:
http://bugs.php.net/bug.php?id=36683
http://bugs.php.net/bug.php?id=30483

The workaround for this bug is to replace the imagecreatetruecolor function with imagecreate in the ttftitles.php file.

Hope this helps anyone out who had the same problem as me.

Pingback by Décorez un peu plus ses textes en CSS | Entraks

Made Tuesday, 10 of March , 2009 at 6:00 am

[...] un plugin WordPress permettant d’écrire du texte avec la font Rockwell. Ce plugin se nomme TTFTitle et il suffit de placer sur votre hébergement, la police que vous souhaitez utiliser. Il faut [...]

Comment by Joni Mueller

Made Saturday, 14 of March , 2009 at 11:32 am

I finally figured out a somewhat crude way to get the sidebars working. You have to hard-code the titles; won’t work with widgets.

Hope this comment box parses the “code” code correctly! Here goes:


If the above doesn’t work, I’ll post my entire set of TTF Text codes on my web design blog this afternoon. I have it working on a client’s testbed here:

http://seethesouthwest.mytestbed.com

Comment by Joni Mueller

Made Saturday, 14 of March , 2009 at 12:28 pm

I’ve posted the code at my blog, here:
http://blog.pixelita.com/69/working-with-the-ttftext-plugin/

Pingback by Working With the TTFTitles Plugin | Pixelita Design Blog

Made Saturday, 14 of March , 2009 at 12:30 pm

[...] you wanted them to see. That plugin hasn’t kept pace with WordPress’s new releases. But TTFTitles has. It’s a great plugin, quite similar in operation to Image Headlines. The author is quite [...]

Comment by mario

Made Monday, 16 of March , 2009 at 4:28 am

@ rufus
a little bit in details…
4 this to work locally (xampp installed) in WP 2.7.1.
find a ttftitles.php file in
path_to_your_wordpress/wordpress/wp-content/plugins/ttftitles
and change TWO lines:
@ line 797:
FORM
$cache_filename = $options['cache_directory'] . DIRECTORY_SEPARATOR . $filename . $extension ;
TO:
$cache_filename = $options['cache_directory'] . $filename . $extension ;

AND CHANGE ALSO THIS
FROM
@ line 798:
$generated_url = $options['cache_url'] . DIRECTORY_SEPARATOR . $filename . $extension ;

TO
$generated_url = $options['cache_url'] . $filename . $extension ;

thx to rufus again and of course to authors! :-)

Comment by Daniel

Made Monday, 16 of March , 2009 at 9:39 pm

Hello. Is there a way to track out the type? I see settings for leading, but not tracking. In CSS it’s called “letter-space.”

Thanks!

Comment by Wolf Paul

Made Monday, 23 of March , 2009 at 9:55 am

Thanks for a great plugin which I am using to display e-mail addresses as graphics thus hiding them from spam harvesters.

The bulk of my use is from a special template page which reads records from a database and then displays them, reformatting e-mails into PNGs in the process.

However, I have the occasional need to use the_ttftext in a post or page within the content, and was wondering whether there is a way to do that without enabling PHP execution in posts and pages. Is there any possiblity of adding a shortcode to the plugin which could be used in posts?

Alternatively, is there some WP-expert here who can tell me how to modify the post content in my template before outputting it — then I could do a preg_replace on it, replacing all e-mail adresses with appropriate graphics just before outputting it. I tried using $post->post_content, but unfortunately this sidesteps any processing required to be done by other plugins.

Any help would be gratefully welcomed.

Comment by Martin

Made Wednesday, 1 of April , 2009 at 7:25 pm

Hello, I am using TTFtitles now since 4 weeks and I am very happy with this great plugin :-)

But in german versions of WP is an issue: normally, umlauts are displayed correctly when using a TTF-font. But when I write a “protected” article, the german WP sets a “Geschützt: …” in front of the headline. This word can’t be edited, so it always appears when I create a new protected article. The issue is: TTFtitles can’t convert the ü-character, so it always appears as “Geschützt: …”

Thank you for helping!!! :-)

Comment by Volkan

Made Sunday, 5 of April , 2009 at 8:23 pm

Hey folks!
First, its a great Plugin, thank you!

I have 2 questions:

1. Which options i have for editing or adding my own css classes / id´s.

2. I need hover and active link its, its very important for me. So is there any way to get this or something like that?

Regards

Comment by GOKI

Made Sunday, 5 of April , 2009 at 8:28 pm

Question:

I had use this:

<?php
$pages = wp_list_pages('sort_column=menu_order&depth=1&title_li=&hierarchical=1&echo=0');
if ($pages)
{
preg_match_all('/]*>(.*)/', $pages, $array);
$asize = count($array[0]);
for($i = 0; $i < $asize; $i++)
{
echo "
";
the_ttftext($array[2][$i]);
echo "
";
}
}
?>

Now, i want to do ths same with this:

post_parent)
$children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); else
$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
if ($children) {
?>

Please help me, thank you!

Comment by GOKI

Made Sunday, 5 of April , 2009 at 8:30 pm

Sorry!

I mean with this one, thank you!

post_parent)
$children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); else
$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
if ($children) {
?>

Comment by jen

Made Monday, 6 of April , 2009 at 1:58 pm

I moved to a new server. Now the fonts directory cannot be found. I get the errors:

Warning: closedir(): supplied argument is not a valid Directory resource in /home7/avidwrit/public_html/wp-content/plugins/ttftitles/ttftitles.php on line 365

Warning: ksort() expects parameter 1 to be array, null given in /home7/avidwrit/public_html/wp-content/plugins/ttftitles/ttftitles.php on line 1574

Warning: Invalid argument supplied for foreach() in /home7/avidwrit/public_html/wp-content/plugins/ttftitles/ttftitles.php on line 1576

Any idea why? thanks!

Comment by Kadus

Made Wednesday, 8 of April , 2009 at 7:53 am

Hi,
Can you generate two images for creat an image :hover ?

Pingback by 60+ Typography & Font Mega Toolbox | tripwire magazine

Made Friday, 10 of April , 2009 at 6:09 pm

[...] TTFTitles WordPress Plugin [...]

Comment by Dhini

Made Saturday, 11 of April , 2009 at 4:36 pm

I can not add more font! How? Can you explain about this more specifiek. thank you

Pingback by tripol - trobol — pink is fab!

Made Monday, 13 of April , 2009 at 11:58 pm

[...] can’t publish new post in my site – too late to know, it’s all because of this effin` TTF plugin. Good thing I was able to configure the bug by myself. I was like buzzing every netizen of mine [...]

Comment by Scott

Made Thursday, 16 of April , 2009 at 3:36 pm

I have a fix for the ascender/descender inconsistency. As written, the height of the image will vary depending on the height of the letters, which some might consider undesirable. In other words, images containing the words “acorn”, “Box”, or “Any” would be of different heights.

So, just add the following code to line 673 of ttftitles.php, after the first “/* to handle weird font issues */”.


$bbox = imagettfbbox($style['font_size'], 0, $style['font_file'], "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890");

This has the effect of forcing all lines to be the max possible height for the usual letters.

This is a bit of a hack. I think some people might like the current behavior. The right way to do it would be to add this as a config option per style.

I cribbed this technique from the drupal forums, here:

http://drupal.org/node/221539

Comment by Larry

Made Tuesday, 28 of April , 2009 at 8:29 pm

Responding to Comment by jen Made Monday, 6 of April , 2009 at 1:58 pm who is getting errors like:

Warning: closedir(): supplied argument is not a valid Directory resource in /home7/avidwrit/public_html/wp-content/plugins/ttftitles/ttftitles.php on line 365

Warning: ksort() expects parameter 1 to be array, null given in /home7/avidwrit/public_html/wp-content/plugins/ttftitles/ttftitles.php on line 1574

Warning: Invalid argument supplied for foreach() in /home7/avidwrit/public_html/wp-content/plugins/ttftitles/ttftitles.php on line 1576

I think the problems you are having are because the WordPress options table has the old file paths from your original server. I found that when I moved to a new server I had to open my database with phpMyAdmin and delete the ttftitles_settings record in the wp_options table. I then recreated my styles.

Pingback by 50 Useful Design Tools For Beautiful Web Typography | Design-Tut+

Made Friday, 1 of May , 2009 at 7:26 am

[...] TTFTitles WordPress Plugin This plugin lets you use images to replace the titles of your posts, thus circumventing the problem of guessing what fonts your end-users might have installed (via hyperdjango). [...]

Comment by Larry

Made Monday, 4 of May , 2009 at 4:45 pm

Like many others, I’ve been looking for a way to use ttftitles for menus (using wp_list_pages) as well as titles. The code by GOKI made Sunday, 5 of April , 2009 didn’t work for me. My intern Herb came up with the following script:


<?php
$pages = wp_list_pages('sort_column=menu_order&title_li=&depth=1&echo=0');
if ($pages) {
preg_match_all('/(.*)/', $pages, $array);
$asize = count($array[0]);
for($i = 0; $i " . $title, ">" . $ttf, $link);
$pages = str_replace($originalLink, $link, $pages);
}
echo $pages;
}
?>

Comment by Larry

Made Monday, 4 of May , 2009 at 5:37 pm

Okay the comment editor totally mangled the code in my previous post for using ttftitles to style a WordPress menu. Don’t use that code. I’ve posted the same code at:
http://wordpress.org/support/topic/200525?replies=2#post-1064681

Pingback by Fluency Admin 2.0 « By Marina

Made Tuesday, 5 of May , 2009 at 4:56 pm

[...] fez a migração do meu domínio ontem para o php5 e ocorreram alguns problemas com o plugin TTFTitle (transforma o título do post em imagem, podendo assim utilizar diferentes tipos de fontes) e até [...]

Pingback by Lyra » Blog Archiv » Titel schöner gestalten

Made Thursday, 7 of May , 2009 at 2:38 am

[...] Oft habe ich auf anderen Blogs so schöne Überschriften gesehen und wollte das natürlich auch haben Das ist das Plugin TTFTitles. [...]

Pingback by Menambah (install) Font Sendiri di Blog Wordpress | dzofar si tukang vector™

Made Friday, 8 of May , 2009 at 5:15 am

[...] Untuk yang ini, saya belum mencoba, tapi kalau sampeyan mencobanya, saya yakin akan berhasil. Soalnya banyak yang berhasil. [...]

Comment by Eugene Joe

Made Saturday, 9 of May , 2009 at 2:01 am

any update on getting ttf title to work with sidebar titles?

Comment by Niilo

Made Sunday, 10 of May , 2009 at 10:16 am

I’ve been using TTFtitles to spice up my band website with no major problems.

I only ran into a validation error that was caused by an a-umlaut character in the ALT tag of the image not being coded correctly.

My hack was to replace the two occurrences of addslashes($text) with htmlentities($text,ENT_QUOTES) and everything works (and validates) fine.

Pingback by Ultimate List of 32 Font And Typography Tools | 1stwebdesigner - Love In Design

Made Saturday, 30 of May , 2009 at 5:20 pm

[...] 14. The TTFTitles WordPress Plugin [...]

Pingback by Ultimate List of 32 Font And Typography Tools | guidesigner.net

Made Monday, 1 of June , 2009 at 1:54 am

[...] 14. The TTFTitles WordPress Plugin [...]

Comment by Kelly

Made Tuesday, 9 of June , 2009 at 10:44 pm

Anyone know how to make this work with the thesis template. I cannot seem to make it work because the code seems to be so different.

Pingback by Las mejores 32 herramientas tipográficas de la web - elWebmaster.com

Made Saturday, 13 of June , 2009 at 6:53 am

[...] 14. The TTFTitles WordPress Plugin [...]

Pingback by 25 Excellent Typography Tools for the Serious Designer

Made Thursday, 18 of June , 2009 at 6:41 pm

[...] 12. TTFTitles WordPress Plugin [...]

Pingback by 25 Excellent Typography Tools | Blog YODspica Ltd

Made Thursday, 18 of June , 2009 at 8:29 pm

[...] 12. TTFTitles WordPress Plugin [...]

Comment by jen

Made Friday, 19 of June , 2009 at 2:50 pm

Upgraded to 2.8 and now the hack to make TTFTiles for my widgets won’t work :( Any ideas how to get this back? Thanks!!!

Pingback by 25 Excellent Typography Tools for the Serious Designer « widaca

Made Friday, 19 of June , 2009 at 11:59 pm

[...] 12. TTFTitles WordPress Plugin [...]

Pingback by DodaPedia » 25 Excellent Typography Tools for the Serious Designer

Made Saturday, 20 of June , 2009 at 12:40 pm

[...] 12. TTFTitles WordPress Plugin [...]

[...] 12. TTFTitles WordPress Plugin [...]

Pingback by WordPress Headlines anders gestalten » Beitrag » myWordPress.de

Made Saturday, 27 of June , 2009 at 2:35 pm

[...] folgenden Link kann sich das Plugin gedownloadet werden und auch eine kleine Anleitung steht Euch dort bereit. Bei [...]

Pingback by true-luv.com » Blog Archive » TTFTitles

Made Sunday, 28 of June , 2009 at 6:37 pm

[...] demais elementos você pode encontrar na página oficial do plugin: http://www.hostscope.com « NextGEN GalleryMédico e livros » Os comentários desse blog são MODERADOS, [...]

Comment by Forrest

Made Tuesday, 30 of June , 2009 at 1:41 pm

For some reason, my ttftitles have lost their descenders on the bottom line of the title. So if the title was “Happy To Be Here”, the parts of the p’s and the y that descend below the line will be cut off. Titles longer than one line will be fine for all but the bottom line. I lose descenders in both the blog and in the TTFTitles settings pages, and using all various fonts I have tried. The problem appears in the image source. Although I may have never noticed it, I don’t think that it was always there.

Setting the shadow of course helps, but not everything is shown even then.

It seems different from what Scott fixes (although I did try that). The gd-test.php says everything but T1Lib Support and JIS-mapped Japanese Font Support.

Anyone else seen this?

Comment by Forrest

Made Tuesday, 30 of June , 2009 at 8:40 pm

I created a work-around that set a hard shadow with white/white, and some offset that worked. It seems to add leading, but I can live with it. I also turned off wp-supercache so that I could make sure I got updated images. I’m not sure where to start for a fix, though. Otherwise, I’ve been loving ttftitles since it replaced image headlines. What I consider to be a “must have” plugin for any WP installation.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

About HostScope

HostScope is a new site that combines several of my web sites, both existing and planned, into a single place. Its focus is web design, development, technology, and general webmastery. As a result, it needs to cover everything from picking a web host to configuring a blog to monetizing your site. Whether I can live up to the challenge of this broad a mission remains to be seen, but it should be an interesting ride regardless. More info...