Advertisement:

Author Topic: Inserting this Twitter script into the sidebar  (Read 1673 times)

Offline Daeger

  • Newbie
  • *
  • Posts: 9
Inserting this Twitter script into the sidebar
« on: February 19, 2010, 07:21:32 PM »
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:

Code: [Select]
   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:

Code: [Select]
<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?

Offline Nick Whetstone

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,816
    • nickwhetstone on Facebook
    • nickwhetstone on GitHub
    • nickwhetstone on LinkedIn
Re: Inserting this Twitter script into the sidebar
« Reply #1 on: February 20, 2010, 09:22:31 PM »
You should probably ask in that theme's support thread. :)
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!