MyBB Community Forums

Full Version: Add Twitter feed in sidebar (beside index)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
http://twitter.com/about/resources/widgets

I'm trying to get my Twitter feed in my sidebar, but for some reason the custom side bar plugin won't display the feed, and I'm not quite sure how to add it manually. Can anyone help me out? The link to my website is http://envizioned.net - You can see that I have the custom side bar plugin going, but whenever I add the Twitter feed to one of the custom HTML blocks, it just displays blank.
does twitter feed include a javascript ?
if so the script needs to be placed in headerinclude AND put html part in your html block
Yeah, I believe it does:

<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 5,
  interval: 6000,
  width: 225,
  height: 300,
  theme: {
    shell: {
      background: '#333333',
      color: '#ffffff'
    },
    tweets: {
      background: '#000000',
      color: '#ffffff',
      links: '#00d0f5'
    }
  },
  features: {
    scrollbar: true,
    loop: false,
    live: false,
    hashtags: true,
    timestamp: true,
    avatars: false,
    behavior: 'all'
  }
}).render().setUser('EnvizionedNET').start();
</script>

So I put this in my headerinclude template, but then what do I put in the HTML box?
put just the first line in headerinclude AND remaining in html block..

below code to be placed in headerinclude :
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
Hm, it's still showing nothing:

http://envizioned.net

I put what you posted above on the first line in headerinclude template and pasted the rest of it in the HTML block.
hmm., the widget code appears to be complete script !! let me check..

which sidebar you have (link of plug-in) ... does it allow general html
http://mods.mybb.com/view/sidebox

And yes, it allows general HTML in the custom blocks.
hmm., its complete java script. can't run it on sidebar. simple alternate method is
to use iframe code within the sidebox. that is, make an html file with the twitter
code and upload it to the root of the forums ; then add iframe code in sidebox

<iframe src="./filename.html" width=180 height=420></iframe>
just change the code, all the " to '
The iframe worked, but is there anyway to get rid of the scroll bars?
Pages: 1 2