Forums / All Other Contributions/Addons / Adding Twitter code to Blank Sidebox Add On

Adding Twitter code to Blank Sidebox Add On

Started by habsolutely on 25 Sep 2011, 6:54 PM · Views: 1,344

Results 1 to 1 of 1
25 Sep 2011, 6:54 PM
#1
habsolutely avatar

habsolutely

New Zenner

Join Date:
Nov 2010
Posts:
64
Plugin Contributions:
0

Adding Twitter code to Blank Sidebox Add On

I am trying to add this code to the Blank Sidebox Add On:

<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 4,
  interval: 30000,
  width: 'auto',
  height: 300,
  theme: {
    shell: {
      background: '#ffffff',
      color: '#000000'
    },
    tweets: {
      background: '#ffffff',
      color: '#636363',
      links: '#c8b87c'
    }
  },
  features: {
    scrollbar: false,
    loop: false,
    live: false,
    hashtags: true,
    timestamp: true,
    avatars: false,
    behavior: 'all'
  }
}).render().setUser('Somebody').start();
</script>

I am trying to add this code to the "blank_sidebox_defines.php" so that it shows up in the sidebox, but whenever I try to add it where it says 'Replace this text...', I get thrown an error. How do I add it here?:

<?php

define('BOX_HEADING_BLANK_SIDEBOX', 'Twitter');
define('TEXT_BLANK_SIDEBOX', 'Replace this text with your HTML content.');

?>