Page 1 of 1

[SOLVED] - Using the twitter feed from twitter.com

Posted: Thu Jun 03, 2010 9:32 pm
by evilwavey
Hi I am trying to use the twitterfeed that is given by twitter.com and it is not displaying, plus gives an error until i refresh.

This is the website.

http://villarecc.com/

Sorry if this is already solved elsewhere, but I have had a look already.

I am assuming the javascript does not work in a PHP page, so is there some code changes I need to make or would I have tio use a module instead?


         
new TWTR.Widget({
 version: 2,
 type: 'profile',
 rpp: 3,
 interval: 6000,
 width: 200,
 height: 323,
 theme: {
   shell: {
     background: '#000000',
     color: '#ffffff'
   },
   tweets: {
     background: '#000000',
     color: '#ffffff',
     links: '#a67c52'
   }
 },
 features: {
   scrollbar: false,
   loop: false,
   live: false,
   hashtags: true,
   timestamp: true,
   avatars: false,
   behavior: 'all'
 }
}).render().setUser('thehobbitpub').start();


Thanks

Re: Using the twitter feed from twitter.com

Posted: Sat Jun 05, 2010 4:46 am
by Dr.CSS
I don't get an error when first going to that site but you may want to look at validating the site, and any time you use anything with {  } in it it has to have {literal} your code with {  } in it {/literal} altho I don't see anything like that in the page source...

Re: Using the twitter feed from twitter.com

Posted: Sat Jun 05, 2010 12:55 pm
by evilwavey
I can't get the error back now either, but the literal tags worked a treat! Thanks :)