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

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
evilwavey

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

Post 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
Last edited by evilwavey on Sat Jun 05, 2010 12:56 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Using the twitter feed from twitter.com

Post 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...
evilwavey

Re: Using the twitter feed from twitter.com

Post by evilwavey »

I can't get the error back now either, but the literal tags worked a treat! Thanks :)
Locked

Return to “Layout and Design (CSS & HTML)”