I recently installed SMF 2.0 RC1.2 so I could use a theme called Firefox Lovers (with sidebar). The reason I chose this is because it was coded with a fixed width sidebar that I can modify, which is exactly what I was looking for - it allows me to put a twitter feed into it.
However, try as I might, I just can't figure out how to put this code in. Here's where the sidebar code is:
echo '
<table cellpadding="3" cellspacing="0" width="100%" border="0">
<tr>
<td valign="top" width="260px" align="center">
<div style="margin-top: 6px">';
// Show the menu here, according to the menu sub template.
template_menu();
echo '</div></td>';
And here's the script I need to put in:
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 4,
interval: 6000,
width: 250,
height: 600,
theme: {
shell: {
background: '#ffffff',
color: '#000000'
},
tweets: {
background: '#ffffff',
color: '#000000',
links: '#000000'
}
},
features: {
scrollbar: false,
loop: false,
live: false,
hashtags: true,
timestamp: true,
avatars: false,
behavior: 'default'
}
}).render().setUser('twitter').start();
</script>
Any help?
You should probably ask in that theme's support thread. :)