Hi, I'm a HTML guy. I have a site up using php-nuke. I can usually figure out the very BASIC php stuff.
I want to add a Twitter Widget to my site. The code from the Profile Widget is this;
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 4,
interval: 6000,
width: 'auto',
height: 300,
theme: {
shell: {
background: '#11a7ed',
color: '#000000'
},
tweets: {
background: '#ffffff',
color: '#000000',
links: '#11a7ed'
}
},
features: {
scrollbar: false,
loop: false,
live: false,
hashtags: true,
timestamp: true,
avatars: false,
behavior: 'all'
}
}).render().setUser('ArmedBadgerCom').start();
</script>
My attempt to turning this into something that would work in a php-nuke block is this;
<?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(FILE));
get_lang($module_name);
include("header.php");
$index = 0;
OpenTable();
echo"<script src=\"http://widgets.twimg.com/j/2/widget.js\"></script>"
. "script>"
. "ew TWTR.Widget({"
. " version: 2,"
. " type: 'profile',"
. " rpp: 4,"
. " interval: 6000,"
. " width: 'auto',"
. " height: 300,"
. " theme: {"
. " shell: {"
. " background: '#11a7ed',"
. " color: '#000000'"
. " },"
. " tweets: {"
. " background: '#ffffff',"
. " color: '#000000',"
. " links: '#11a7ed'"
. " }"
. " },"
. " features: {"
. " scrollbar: false,"
. " loop: false,"
. " live: false,"
. " hashtags: true,"
. " timestamp: true,"
. " avatars: false,"
. " behavior: 'all'"
. " }"
. ").render().setUser('ArmedBadgerCom').start();"
. "/script>";
CloseTable();
include("footer.php");
?>
I've spent the last week trying to get this working. Can someone point me in the right direction? My last resort is trying to learn all about PHP on the web.
Thanks in advance for any and all help.