2 edb Feb 21, 2009 10:06

This may be a dumb question, but is there somewhere that I can refer to to see a list of all the variable available in b2e? Even a 'most commonly used' list would do
You could make your hack a plugin ;)
function BeforeBlogDisplay(){
ob_start();
}
function SkinEndHtmlBody()
{
$foo = ob_get_clean();
$foo = preg_replace( '~<link rel="(stylesheet|alternate)".+?/>~is', '', $foo );
$foo = preg_replace( '~<style(.+?)?>.+?</style>~is', '', $foo );
$foo = preg_replace( '~style=("|\').+?\1(\s|>)~is', '', $foo );
echo $foo;
}
¥
Cool! For this year I'm way too far behind on way too many bits to clean up a functional hack, but next year it would be MUCH better to make this be a [url=http://naked.dustindiaz.com/]CSS Naked Day[/url] plugin so an update could have the new date in it.
Marked as "watch" so that I don't forget when I have time to try to learn about ob_get_kenobi()
I knew it'd be easy if I waited until something else impossible came along and I let myself stumble into the obvious!
$localtimenow is (drum roll, please) the local time now. So a wee bit 'o globallyness and I can play with the local time no matter where I am. That's cool!
Next up is the difficulty in managing the head section of the delivered product. It is in a bodaciously sloppy order and too many things get to mess with too many things. Ah well. With great power comes great flexibility ... and a hell of a mess.