MyBB Community Forums

Full Version: How to add Twitter bird flying in your forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just copy the below code and add it to your header template

Simply change where you are writing "yourtwitter" with your twitter page name

<script src="http://oloblogger.googlecode.com/files/tripleflap.js" type="text/javascript"></script>
<script type="text/javascript">
var birdSprite='http://oloblogger.googlecode.com/files/birdsprite.png';
var targetElems=new Array('img','hr','table','td','div','input','textarea','button','select','ul','ol','li','h1','h2','h3','h4','p','code','object','a','b','strong','span');
var twitterAccount = 'http://twitter.com/yourtwitter';
var twitterThisText ='';
tripleflapInit();
</script>

If you want the bird to be visible only in idex page, add the above code after {footer} on your index template
Hope you like it

I like it improve nice tutorial Smile
Very neat, tried it out, but is is a little too much for me (little too big and distracting)... Very neat thing though.
Does anybody have a demo of this?
^ you can copy that script to a html file & view through your browser !!