twitter feed Smarty error

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Alpdog14

twitter feed Smarty error

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: twitter feed Smarty error

Post 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'
Locked

Return to “CMSMS Core”