Forums » Installation

Twitter?

ngw0222
UNITED STATES
2009-09-29 17:21:25
Permalink Post
 

I've read through the other threads on how to go about installing Twitter and I still don't understand. Using the code below found on http://twitter.com/goodies/widget_profile How do I got about adding this to my site?





new TWTR.Widget({
profile: true,
id: 'twtr-profile-widget',
loop: true,
width: 150,
height: 300,
theme: {
shell: {
background: '#ffffff',
color: '#000000'
},
tweets: {
background: '#ffffff',
color: '#444444',
links: '#1985b5'
}
}
}).render().setProfile('ngw0222').start();
ngw0222
UNITED STATES
2009-09-29 17:22:33
Permalink Post
 

oops it's actually this....





new TWTR.Widget({
profile: true,
id: 'twtr-profile-widget',
loop: true,
width: 150,
height: 300,
theme: {
shell: {
background: '#ffffff',
color: '#000000'
},
tweets: {
background: '#ffffff',
color: '#444444',
links: '#1985b5'
}
}
}).render().setProfile('ngw0222').start();
Vaska A
UNITED STATES
2009-09-29 17:30:25
Permalink Post
 

The best way to do this is to drop this code directly into your template where you want it to appear - probably underneat the Index side of things.

  1. <div id="twtr-profile-widget"></div>
  2. <script src="http://widgets.twimg.com/j/1/widget.js"></script>
  3. <link href="http://widgets.twimg.com/j/1/widget.css" type="text/css" rel="stylesheet">
  4. <script>
  5. new TWTR.Widget({
  6.   profile: true,
  7.   id: 'twtr-profile-widget',
  8.   loop: true,
  9.   width: 250,
  10.   height: 300,
  11.   theme: {
  12.     shell: {
  13.       background: '#3082af',
  14.       color: '#ffffff'
  15.     },
  16.     tweets: {
  17.       background: '#ffffff',
  18.       color: '#444444',
  19.       links: '#1985b5'
  20.     }
  21.   }
  22. }).render().setProfile('Yes').start();
  23. </script>
mathchris
UNITED STATES
2009-12-11 00:15:13
Permalink Post
 
  1. What if I want to put it on its own Exhibit page? I tried it with & without Vaska A's:
  2. <div id="twtr-profile-widget"></div>

Here is my page:
http://chrisramey.com/net/twitter/

Here is the widget generator:
https://twitter.com/goodies/widget_profile

  1. Here's what twitter generated for me:
  2. <script src="http://widgets.twimg.com/j/2/widget.js"></script>
  3. <script>
  4. new TWTR.Widget({
  5.   version: 2,
  6.   type: 'profile',
  7.   rpp: 14,
  8.   interval: 6000,
  9.   width: 'auto',
  10.   height: 300,
  11.   theme: {
  12.     shell: {
  13.       background: '#ffffff',
  14.       color: '#000000'
  15.     },
  16.     tweets: {
  17.       background: '#ffffff',
  18.       color: '#000000',
  19.       links: '#3ac1e6'
  20.     }
  21.   },
  22.   features: {
  23.     scrollbar: false,
  24.     loop: false,
  25.     live: false,
  26.     hashtags: true,
  27.     timestamp: true,
  28.     avatars: false,
  29.     behavior: 'all'
  30.   }
  31. }).render().setUser('cramey').start();
  32. </script>

Process HTML render is on.

arsondpi A
GREECE
2009-12-11 08:35:01
Permalink Post
 

There's no code inserted like the one above in that page.
I tried inserting both the scripts and the div in a test page and it works...
If you click the preview button it still wont work?

mathchris
UNITED STATES
2009-12-11 22:01:33
Permalink Post
 

It's working today! My connection was quite sluggish yesterday, maybe that had something to do with it. Thanks a million for trying it out for me.

ilka
UNITED KINGDOM
2009-12-30 16:52:35
Permalink Post
 

Anyone an idea why mine doens't work? I've done it like mathchris and nothing shows, for several days.

here

Jillian
UNITED STATES
2010-03-11 01:34:17
Permalink Post
 

In case anyone is still having problems. I had to turn Process HTML off in the exhibit settings for the widget to show up.

jimmythesaint
UNITED KINGDOM
2011-01-25 05:29:33
Permalink Post
 

I am trying to add the Twitter widget that displays the latest tweets to my home page. When I drop it into the post nav box it doesn't show up. However, if I add it to any other page, it works fine. I have added other widgets to the post nav successfully. Anyone understand why it's not working? This is the code:

  1. <script src="http://widgets.twimg.com/j/2/widget.js"></script>
  2. <script>
  3. new TWTR.Widget({
  4.   version: 2,
  5.   type: 'profile',
  6.   rpp: 2,
  7.   interval: 6000,
  8.   width: '200',
  9.   height: 300,
  10.   theme: {
  11.     shell: {
  12.       background: '#333333',
  13.       color: '#ffffff'
  14.     },
  15.     tweets: {
  16.       background: '#000000',
  17.       color: '#ffffff',
  18.       links: '#99ccff'
  19.     }
  20.   },
  21.   features: {
  22.     scrollbar: false,
  23.     loop: false,
  24.     live: false,
  25.     hashtags: true,
  26.     timestamp: false,
  27.     avatars: false,
  28.     behavior: 'all'
  29.   }
  30. }).render().setUser('bigdaytweets').start();
  31. </script>
jandreev
UNITED STATES
2011-10-12 21:59:03
Permalink Post
 

Jimmythesaint, I have exactly the same problem. Using the same script in the post-nav box, nothing shows up. Still looking for a solution.

Vaska A
UNITED STATES
2011-10-13 05:29:50
Permalink Post
 

You are cutting and pasting the whole thing in the box? I don't think that will work...but if you put it into the template directly or make a plugin I think you'll have more success.

Showing 1 - 11 of 11 posts in Forum > Installation > Twitter?
 

You need to be logged in to post.