Page 1 of 1

twitter feed Smarty error

Posted: Mon Dec 06, 2010 3:05 pm
by Alpdog14
I am trying to use a twitter feed and I am getting an error even when I try to put {literal}{/literal} tags around it, this is the error i get:

string(123) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag 'literl' (Smarty_Compiler.class.php, line 590)" string(279) "Smarty error: [in content:content_en line 4]: syntax error: unrecognized tag: version: 2, type: 'profile', rpp: 4, interval: 6000, width: 250, height: 300, theme: { shell: { background: '#333333', color: '#ffffff' (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 4]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(186) "Smarty error: [in content:content_en line 14]: syntax error: unrecognized tag: background: '#000000', color: '#ffffff', links: '#4aed05' (Smarty_Compiler.class.php, line 446)" string(118) "Smarty error: [in content:content_en line 14]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(249) "Smarty error: [in content:content_en line 18]: syntax error: unrecognized tag: scrollbar: false, loop: false, live: false, hashtags: true, timestamp: true, avatars: false, behavior: 'all' (Smarty_Compiler.class.php, line 446)" string(118) "Smarty error: [in content:content_en line 18]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(126) "Smarty error: [in content:content_en line 27]: syntax error: unrecognized tag '/literal' (Smarty_Compiler.class.php, line 590)"

This is my code I am using:

Code: Select all

<__script__ src="http://widgets.twimg.com/j/2/widget.js"></__script>
<__script__ type="text/javascript">// <![CDATA[
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 4,
  interval: 6000,
  width: 250,
  height: 300,
  theme: {
    shell: {
      background: '#333333',
      color: '#ffffff'
    },
    tweets: {
      background: '#000000',
      color: '#ffffff',
      links: '#4aed05'
    }
  },
  features: {
    scrollbar: false,
    loop: false,
    live: false,
    hashtags: true,
    timestamp: true,
    avatars: false,
    behavior: 'all'
  }
}).render().setUser('YesIAmShowbiz').start();
// ]]></__script>
Does anyone know why this is happening? Any help would be most appreciated.

Re: twitter feed Smarty error

Posted: Tue Dec 07, 2010 12:20 am
by Dr.CSS
You misspelled literal in your first call... {literal}...

That will of course throw the whole thing off...

string(123) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag 'literl'