Formerly Known As…

In an effort to shake things up, in my own mind as much as anywhere else, I’m considering dropping the TrumpetBoy monicker under which I’ve occasionally blogged during the past several years. I’ve changed the title to my own name, while I decide. I’ve reset this site’s theme to default while I’m at it. Sometimes you just need a change…

Will it stick? Will I ever post again? Will I release the half dozen or so WordPress plugins I’ve built lately? Will I ever get around to reposting my portfolio? Will I finally redesign the theme? I’d like to answer all these questions, and soon, but all things will probably be superseded by work….

Posted in general | Leave a comment

How to Move and Position The WordPress WYSIWYG Visual Editor

A great article that came in most useful today!

 

Posted on by Bryan | Leave a comment

Controlling and customising RSS feeds in WordPress

A great article today on Roger Johansson’s 456 Berea St about controlling the syndication feeds generated by WordPress. I have a feeling it’ll come in useful sometime soon!

 

Posted on by Bryan | Leave a comment

Doc Severinsen – “Stardust”

I was reminded, recently, of this great performance from The Tonight Show with Johnny Carson. Doc Severinsen sounds incredible, as always, and Tommy Newsom’s arrangement blows me away! This is one of my favourite examples of how a great big band should sound.

Posted in videolinks | Leave a comment

Facebook Tabs – autosizing iFrames

Last week, Facebook rolled out an available upgrade of their Pages system. Included was the ability to import outside content to Page Tabs via iframes, like Application Canvas pages, rather than the previous FBML Javascript inclusion. That worked reasonably well, but disallowed certain page features and made it complicated when trying to dynamically generate content using Flash – audio/videos players etc. It also, and more importantly for me, severely limited the extent to which Javascript could be used in the imported content. Not cool!

I’ve been testing out some possibilities for Page Tabs over the weekend and kept running into a particular problem; namely setting the size of the iframe I was importing to so it didn’t have scrollbars within the page. It seems that the default iframe size is 495×800 pixels – narrower than the FBML method which had a container width of 520px. The width I can live with, but I couldn’t figure out how to set height: auto for the container – hence the scrollbars. The Facebook Developers documentation is a hopeless mess and doesn’t seem to have been updated for the new tabs. It turns out that the method is basically the same as for previous iterations of the Facebook Javascript SDK – it’s just that the documentation didn’t give me a clue about the correct syntax required to make things happen! It took much googling to finally figure it out – hopefully this post will make that easier for others!

This is what worked for me. Just add it after the opening body tag on your imported page.

<div id="fb-root"></div>
<script type="text/javascript">
window.fbAsyncInit = function() {

FB.init({appId: '{your App ID here}',
status: true,
cookie: true,
xfbml: true});
FB.Canvas.setAutoResize();
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>

This snippet will call the include Javascript library from Facebook and then Initialise and AutoResize your container on your Facebook Page Tab. You need to add your own App ID – it’s listed among the settings when you create your application in Facebook.

Enjoy…

Posted in general | Tagged | Leave a comment