Rev’s Thought Dump

Today, on “Where Are They Now”: the story of a drug crazed.. who wait.. wrong post…

So, plenty of people, throngs even - okay one - have asked, “Rev! How DO you do those snazy polls for Poll-a-pallooza!?” The answer is simple,  wp-polls.

Hell, I’ll even throw in a free tip! If you create a poll and put it in your post, don’t also display it in the side bar widget. This confuses the javascript running the poll and it will fail to register the votes properly. (Learned this one the hard way.)

Okay, have fun rockin’ out to Poll-a-pallooza!  More polls coming to the second stage soon!

Was this post helpful?

View Results

Loading ... Loading ...

wp-hascash error solution

I’ve been using wp-hascash for a while not and it was a bit of a pain in the ass to setup at first.  There’s making sure you have the wp_head called before the closing </head> tag and comment_form called before the closing </form> tag in comments. But I started running into another error that was visibly manifesting itself as my other scripts on the page failing to fire and thus some visuals all out of whack.

After digging around a bit in the debugger and google I found this little bit of info that has fixed every issue I’ve had with wp-hashcash in the last few version of WordPress and wp-hashcash.

Error: document.getElementById(”wphc_value”) is null

so as to avoid this, it’d better to check beforehand if it’s null. So to say:
change line 372 from
echo “addLoadEvent(function(){document.getElementById(’wphc_value’).el.value=wphc();});\n”;

to:
echo “addLoadEvent(function(){var notNullWphc= document.getElementById(’wphc_value’); if(notNullWphc){notNullWphc.value=wphc();}});\n”;

Hopefully this will help folks out there suffering form the same “WTF?!” situation.

P.S. wp-hashcash works very well.

iPhone Wordpress App

Hey, look at this. The wordpress guys put out an iPhone app. Pretty damn handy. Now I can fire off a blog post from anywhere. Hopefully this can help my blog compete for my attention against Twitter.

Anywho, hopefully this will breath a little life into the blog though, I have to admit that the lack of cut and past is going to make it a real pain in the ass to do links to articles and other sites. Oh well, we’ll see.

Archives