The Trouble with Blogs…

Addictive things, these blogs.

But if, like me, you’re often out and about and between computers, you too may have suddenly thought of something you would like to share with the blogosphere. And, like me, you may have been frustrated that you couldn’t, because by the time you’ve made it to somewhere with a computer and an Internet connection you’ve forgotten what it was you were going to blog about.

Now I know I can blog by e-mail (or using Shozu) using my mobile phones, but when I’m hacking along the road in my car or on my bike, the last thing I should be doing is composing an e-mail using the tiny keyboard (even if the handset is in a cradle).

No, what would make a killer app. (or plug-in) for WordPress would be a voice to text posting facility, somewhat like the Voice Post feature on LiveJournal but with instant, automated transcription.

Now that would be cool (and remember where you saw the idea first!).

JavaScripted e-mail Links in WordPress Pages

You may want to include an e-mail link in your WordPress Blog’s “About” page or elsewhere, but no doubt you don’t want this harvested and you’ve found you can’t simply add the JavaScript to the post or page as it gets nuked.

So how about a workaround?

Firstly, you need to create an external Javascript file with this code (amended for your own needs, obviously):


function obfuscate() {
var ppclink = "Click here to e-mail us";
var ppcname = "nospamthanks";
var ppchost = "yourdomainnamegoeshere";
document.write("<a href=" + "mail" + "to:" + ppcname + "@" + ppchost + ">" + ppclink + "")
}

NB: the “@” sign is represented in the code as “& # 64 ;” with no spaces.

Save it as something like emailobfuscator.js and upload it to your server.

Then in the post or the page you want to include it in, add the following code:

<script type="text/javascript"
src="/scripts/emailobfuscator.js" mce_src="/scripts/emailobfuscator.js">
</script>
<script type="text/javascript">
<!--
obfuscate();
//-->
</script>

You will almost certainly want to uncheck the “Use visual editor when writing” checkbox in your User options before this will work.

And the finished result should look like this:

Pleven, Bulgaria

So according to Superbike News “New Supermoto Era Beginning in Pleven“. It starts off by saying:

“With the FIM SuperMoto World Championship making its debut on the brand new circuit of Pleven, Bulgaria, a new era has begun for the sport.

“The former off-road section, which is now called sky, is covered with tarmac; this solution was never adopted before, but has already proved to be extremely successful.”

I just hope that things have improved a tad since I was there in 1996, staying in central Pleven. At that time, it seemed that tarmac had indeed never been adopted before, judging by the state of the roads.

I was staying in the best hotel in Pleven too on a B&B basis, except they couldn’t be bothered to provide any staff so there was no-one to cook breakfast. Or indeed serve it.

Of course things may well have changed post-EU membership: I still recall meeting armed mobsters in an office conversion from some flats on the outskirts of Sofia…