Google Wave – WordPress Integration… October 30th, 2009
I thought being as the latest thing is Google Wave, I’d try and integrate a wave into one of my posts making use of the APIs. Remember it is still very buggy (wave integration that is) so don’t be too surprised if this doesn’t work. Also, remember that in order to be able to use Google Wave or even see the wave below you need to have an active account and be logged in, if your not it’ll probably break the post and look a bit rubbish! Here goes:
Here’t the code that I used to make it work:
<head>
<script src="http://www.mikesouthby.co.uk/embed.js" type="text/javascript">
</script>
<script type="text/javascript">
function initialize() {
var wavePanel = new WavePanel('http://wave.google.com/wave/'); wavePanel.loadWave('INSERT YOUR WAVE ID HERE'); wavePanel.init(document.getElementById('waveframe'));
}
</script>
</head>
<body onload="initialize()">
<div id="waveframe" style="width: 100%; height: 350px">
</div>
</body>
In order to find your wave ID, you’ll need to open Google Wave in your browser and either create a new wave or open an existing one that you want to use, then when the wave is in focus, have a look up in the browsers address bar and make a note of the URL, in my case this is https://wave.google.com/wave/#restored:wave:googlewave.com!w%252BqjsuPV2cI. Next, take a look at the end part after wave: so, googlewave.com!w%252BqjsuPV2cI. Now we need to substritute the part %252B for a + so my wave ID would be googlewave.com!w+qjsuPV2cI
Hope that all makes sense. Enjoy and if you are a wave user, please add to my wave!
Posted in Announcements, Blah, Blogging, Google, Technology Related, Wave | 3 Comments »
How To Add Empty Lines In WordPress Posts… October 25th, 2009
Easy; well you’d have thought so wouldn’t you?
For a while now I have been trying various different ways to try and achieve something which let’s face it, should be really simple – how do you add an empty line into a WordPress blog. I thought that I must be missing something fundamentally obvious; I couldn’t believe that this was not possible in an up-to-date release of WordPress.
Surely the ability to do this was not missed out? Almost everyone wants to add empty or blank lines to format their text. Often you need to add a little bit of white space to make the post look clean or in my case, after inserting an image into your post so that the following text looked properly aligned. But in WordPress it seems like they’ve gone to great effort to make this an impossible and death defying feat. Personally, I just don’t get it.
If you enter a blank line in the WYSIWYG editor, as soon as you click on the save or publish button, all of the empty lines disappear and all of your text gets crunched up again. Type them back in and save. Poof! Like magic they disappear again, gone. What’s that all about?!
So I thought about doing it the manual way, by coding them manually in the html view (which when you think about it defeats the object, you shouldn’t need to know html to be a blogger as the WYSIWYG editor should decipher the html for you…), did that work? No.
I’d tried all the things I could think of. Nothing seemed to work, as soon as I hit the save or publish button any code that I had put in disappeared into cyberspace never to be seen again. There doesn’t seem to be any conclusive solution in the WordPress support forums either which isn’t very helpful. The best solution that I could find was to increase the paragraph spacing in css, but that wasn’t really something I wanted to do.
I did a lot of searching around various sites and kept hitting a brick wall, there do seem to be a lot of people having the same problem – with various potential workarounds – but doesn’t seem to be any consistent solutions, what seems to work for some doesn’t for others. I guess that’s the beauty of all the customised installations, themes and plug-ins etc. Most people are overcoming the problem by installing various plug-ins to stop WordPress from stripping out the code. Messy; all these extra plug-ins increase the burden to the default WordPress installation and eventually slow things down, again not something I want to happen.
So, how have I achieved it?
Well, I came across it by chance when I was writing a post and had to ‘play back’ what I had done to find the solution. It’s actually really simple.
On the WYSIWYG editor place the cursor where you want the blank line to appear, next click the html editor tab. Hit the code button and overtype the word ‘code‘ with ‘br’ on the screen within the < and >. Save. That’s it..!
Seems to work great for me; let me know if you find this useful.
WordPress Avatars – How To… October 21st, 2009
If like me you spent a whole heap of time in the admin options of WordPress trying to figure out how to add an avatar to your local user account, you’ll be pleased to know it’s actually really simple even though it doesn’t explain how to do it within the WordPress console itself.
All you need to do is set yourself up with a Gravatar profile. Yes really that’s it. Easy.
Gravatar seems to act as a central avatar database amongst WordPress users and so long as you ensure you use the same email address when you comment on others blogs, your avatar will also appear there too.