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, 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.
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.
In the ‘Fonts’ tab, you can install fonts, view those already installed, and delete ones you no longer need.
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
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 ![]()
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.
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. ![]()
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
[...] http://templature.com/2007/10/18/ttftitles-wordpress-plugin/ ttftitles.zip(134.1 KB) [...]
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!
Pingback by Meine del.icio.us bookmarks f������¼r 12.02.99 bis 12.22.07 | Hasencore
Made Sunday, 23 of December , 2007 at 6:25 pm
[...] 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 y




Category: WordPress Plugins