47 responses to “Automatic images for headlines”

  1. A Proletarium Blog  | Otro sistema de remplazo de titulos por Imagenes

    [...] [...]

  2. What makes you happy ? » 2004 » June » 24

    [...] [...]

  3. scriptygoddess

    [...] [...]

  4. CoffeeBear.net » Dynamic Text Replacement Plugin

    [...] [...]

  5. |+ Broken Kode +| » png plugin

    [...] [...]

  6. » Tipps und Anregungen for Wordpress Plugins und Hacks « - gumia.de

    [...] [...]

  7. Blogging Pro - Blog News, Tools and Hacks

    WordPress Plugin: Automatic images for headlines
    Huddled Masses latest plugin generates PNG images of text, written in the font/size that you specify. These PNG images are passed back to the browser. Optionally, they can be cached for later use. If a cached image is found, a new image will not be gen…

  8. Podz

    Many thanks – cool plugin.
    I only mentioned earlier in the WP forums that the ALA article would be a good plugin, and NMoose pointed me here.

  9. Aurora

    Nice work, thank you. :) Is there any way to have this running twice, or to configure it so that I can replace the text for my dates as well, but in a smaller or different font?

  10. Joel "Jaykul" Bennett

    Aurora: I’ve been thinking about that … it’s not hard to make it run on multiple sections, the trick is running with different settings. I figured out how to do it, but i think you’ll have to edit the plugin for each place you want to call it. Anyway, gimme a couple of days, I’ll release a new one ;-)

  11. Aurora

    Woohoo! Great news, Joel. Thanks! I don’t mind editing the plugin… it only makes sense, if only to change the name a little so I know what plugin is running for which option.

    I’ll check back when I get back from vacation.

    I just noticed: do you notice that all your comments say they were posted on June 6? :)

  12. dss

    wonderful idea… thank you for the effort.
    sadly i am unable to get it working.

    attempting to seek support in the WP support site:
    http://wordpress.org/support/index.php?action=vthread&forum=10&topic=8009&page=-1#8

    any help there would be most welcome!

    dss

  13. Joel "Jaykul" Bennett

    Aurora: tada! I am now using the Header Image Generator plugin to generate the category images at the top of my site (it probably won’t stay that way for long, I’m not sure I really like the look). The sample code in there for how to do the category images should be enough to let you plug it in wherever you want. If you wanted to, you could even mix this with the acronym replacer plugin and start putting images in random places in your text ;-p

  14. Aurora

    Just got back from vacation… gave it a try… it works beautifully! I changed the category stuff to date instead. It was very easy to do. Thank you!!!

  15. Catherine

    I have more of a question than a comment…is the replacement.js file still used or does the php plugin replace the need for the javascript file…

    I apologize in adavance if it was in plain site but I was too blind to see.

  16. Aurora

    Catherine, there is no replacement.js file involved. The plugin is self-contained.

  17. Catherine

    Thanks Aurora!

  18. |+ Broken Kode +|


    Just updated the site with this very excellent little plugin, it’s a funky idea, in that I get to put any font I want as the main title bar and everyone can see it, which is nice. Information on this plugin can be found right here at Joel Bennet’s si…

  19. Cameron Walters

    I’ve got an idea for your script that brings in a few improvements. If you’re opposed to inline styles, however, this is not for you.
    If you replace the Line that creates the return value with the following code, you essentially incorporate FIR into it as well, instead of just plain-vanilla image replacement.

    $retVal = "<h2 class="replaced" style="height:{$height}px;background: url($cache_url) no-repeat top left;">$text</h2>" ;

    You’ll also want to add a class to the stylesheet of your choice like this:

    h2.replaced {<br />text-indent:-1234em; /*hide text*/<br />margin: 0;<br />padding: 0;<br />}

    It seems to work pretty well for me.

  20. Cameron Walters

    I have a correction/improvement. I now realize that my first attempt broke validation, even though Firefox rendered it correctly.

    This version is also much more useful for WordPress users who are using the provided stylesheet, or a variation of it

    Stylesheet Content:

    h3.storytitle {<br /> margin: 0;<br /> padding: 0;<br />}<br />h3.storytitle span {<br /> display: block;<br /> margin: 0;<br /> padding: 0;<br /> text-indent: -1234em;<br />}

    PHP changes on line 70 of Joel’s Plugin:

    &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $retVal = "&lt;span class="replaced" style="height:{$height}px; background: url($cache_url) no-repeat top left;"&gt;$text&lt;/span&gt;" ;

    Let me know if this works for you, if you try it.

  21. Len Hardy

    I love your plug-in, it works fine for me. I am having a hard time getting it to validate, though. The page validates fine when the plug-in is deactivated. When activated, however, I get a string of “warnings”:

    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bhsboosters.org%2Fwordpress%2Findex.php

  22. Joel "Jaykul" Bennett

    Well, that’s bizzare. My site validates fine [ ;) ]

    Actually, you’ve got it configured wrong, you’re putting the whole image tag in the title attribute of the link.

  23. Len Hardy

    I noticed that, but I’m not sure what I configured incorrectly. I must be missing something. All I changed was the font path and the font size, then I Activated the plugin. Was there other configuration that I was supposed to do?

  24. Len Hardy

    Fixed it. I wasn’t using the $before option, so the text was being replaced by the image tag in the title attribute also.

    Thanks!

  25. Dan G

    One feature that would be very cool is a max-line-length setting so it will wrap long titles on to two lines. Thanks.

  26. Samuel

    Is FreeType required for this to work?

  27. Joel "Jaykul" Bennett

    This requires both the GD library and the FreeType library.

  28. Adam Stein

    I am trying to get this plug-in to work with the post date and I am unable to get it working, i changed the cache image folder and all the other necessary variables. and when i load up the site, i get a undefined error while creating image type of msg… what do i need to change the_date() function to. to get this to work???

    Thank you for your help and making such a cool plug-in !!!

    THANKSSS

  29. Wump Blog » Title Image Plugin

    General &#8212; by danithew at 12:52 pm Thanks to Dan Hersam for pointing me to this plugin. I&#8217;ll be examining it more closely and perhaps even im [...]

  30. Vix

    I’m interested in using this plugin and have installed it. Do I set the configuration inside “image-headlines.php”?

  31. Joel "Jaykul" Bennett

    Basically, yes. If you look at the comments in there (at the bottom) I hope it will be clear what you need to edit…

  32. ColdForged

    Thanks! Plugin was very easy to just drop in. I appreciate your work on this.

  33. ColdForged

    Actually, I’ve updated your delightful plugin to support text that needs to be broken into multiple lines. My site format is not as wide as yours, so longer titles caused me some overlap. You can find an example of a multi-line title here to see what it looks like in action. The code is available zipped up here. Please feel free to work this back in to the codebase if you so desire.

  34. coldforged.org  » Blog Archive   » Image replacement for entry titles

    people who have done it&#8212;Matt is one&#8212;but never jumped on the bandwagon. Now I find a rather easy-to-use WordPress plugin and figured &#8220;why not?&#8 [...]

  35. ColdForged

    I’m unsure whether my comment got lost or is in moderation, but the trackback link above explains my modification to the plugin to support breaking long lines into multiple lines. You’re welcome to roll the changes into your code base if you desire. Thanks again for a great plugin.

  36. Photo Matt » Image Title Plugin

    oldforged has an entry title image replacement plugin that lets you have titles like mine (done previously) that also has word-wrapping. I think I saw an approach s [...]

  37. Open Artifact » Added image headings

    ; Comments: RSS2.0 Nov.15.2004 Added a nice plugin from Huddled Masses. It&#8217;s a mod from some existing PHP [...]

  38. True confessions of Josh Owens, a cheesy techno-geek...

    Image Replacement

    I found this great image replacement plugin when I was surfing around for an iTunes plugin. I installed it on Kelley’s blog and she loves it so far. I may install it at some point, we shall see… Here is the original plugin minus the word wrapping…

  39. C:\arlo

    I just started using WordPress…
    Once the php is configured, where should I put it?
    In the plugins folder, or I have to paste it into the index.php code? If so: where? I want to use the plugin for the posts headlines (h3 in the standard CSS and index.php)
    Thank you in advance!

  40. C:\arlo

    Ok, I put the php in the plugin directory and activated it from the admin panel. Now, instead of the post title I get this message: Warning: mkdir(): SAFE MODE Restriction in effect. The script whose uid is

  41. ColdForged

    Where are you having it store the cached images? Does that folder exist and have write permission for everyone?

  42. Joel "Jaykul" Bennett

    Well, lots of questions:

    • The plugin goes in the plugins folder, yes. And you have to configure the plugin by editing a couple of places (to tell it about fonts and such)
    • I don’t know much about PHP’s safemode, but my guess is it’s the fact that I’m caching the images that’s a problem (ie: PHP isn’t allowed to write out files), this could probably be modified to just out put the images (but it would be a bit slower when there were lots of them…)
    • The cached images are stored in a user-specified folder (specified as “$cache_folder”), and it needs to be writeable by the script,not by everyone (although frequently the easiest thing is to make it writable by everyone, that’s not the best way [ ;) ]).
  43. coldforged.org  » Blog Archive   » New Image Headline Plugin is finally ready

    w version of the Image Headline Plugin is available. This plugin was originally written by Joel Bennett but it&#8217;s come a long way since the beginning. New feat [...]

  44. Lorelle on WordPress » Image Replacement Techniques

    [...] Hu[b]dd[/b]led Masses – Automatic Images for Headlines [...]

  45. ReDirEct__

    Hi… sorry for my bad english but i’m italian… there is a way to show the tex on multiple columns?? I tried it in my kubrick themes butm for long post titles, the text appears out of the content box…