-
Website
http://HuddledMasses.org/ -
Original page
http://HuddledMasses.org/automatic-images-for-headlines/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
Clint Ecker
1 comment · 5 points
-
avenzke
1 comment · 1 points
-
Euri
1 comment · 4 points
-
Stuart
1 comment · 1 points
-
Luciano Evaristo Guerche
1 comment · 1 points
-
-
Popular Threads
I only mentioned earlier in the WP forums that the ALA article would be a good plugin, and NMoose pointed me here.
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? :)
sadly i am unable to get it working.
attempting to seek support in the WP support site:
http://wordpress.org/support/index.php?action=v...
any help there would be most welcome!
dss
I apologize in adavance if it was in plain site but I was too blind to see.
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 {
text-indent:-1234em; /*hide text*/
margin: 0;
padding: 0;
}
It seems to work pretty well for me.
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 {
margin: 0;
padding: 0;
}
h3.storytitle span {
display: block;
margin: 0;
padding: 0;
text-indent: -1234em;
}
PHP changes on line 70 of Joel's Plugin:
$retVal = "<span class="replaced" style="height:{$height}px; background: url($cache_url) no-repeat top left;">$text</span>" ;
Let me know if this works for you, if you try it.
http://validator.w3.org/check?uri=http%3A%2F%2F...
Actually, you've got it configured wrong, you're putting the *whole* image tag in the title attribute of the link.
Thanks!
Thank you for your help and making such a cool plug-in !!!
THANKSSS
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!
* 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 [;)]).
Hopefully that will solve all the download problems people have had.