Help - Search - Members - Calendar
Full Version: chatterbox sn tracker code
Forums > Resource Center > Support Center > Xanga Support > Xanga Resolved Topics
ladyxdiscord
go to my xanga and when you try to comment on my chatterbox, the username is always PRIVATE...am i right?

i followed all the instructions i just don't know what went wrong _dry.gif
sweetdreamsx3
Yeah, it is...did you put the code at the top?
sweetxsimplicity
Yup, it says 'Private'. Try replacing your code with the code below, I think it's slightly different.

COPY AND PASTE INTO WEBSITE STATS
CODE
<!-- begin code provided by createblog.com -->
<script language="javascript">
//chatterbox screen name tracker - xanga.com/add_ons
function getXName() {
for (var i = 0; i < document.links.length; i++) {
if (document.links[i].href.substring(0,38)=="http://www.xanga.com/private/home.aspx") {
var link = document.links[i];
var text = document.all ? link.innerText : link.text ? link.text : '';
return text;
break;
}}
return null;
}

function getPopLink() {
for (var i = 0; i < document.links.length; i++) {
if (document.links[i].id=='chatterpopup')
return document.links[i]; break;
} return null; }

xName = getXName();
if (xName != null && chatterbox == 'ok') {
nameBox = document.forms['chatterform'].elements['name'];
nameBox.value=xName;
chatter_name = xName;
urlBox = document.forms['chatterform'].elements['uurl'];
if (urlBox) {
urlBox.value='http://www.xanga.com/home.aspx?user=' + xName;
}

} else
if (xName == null && chatterbox == 'ok') {
nameBox = document.forms['chatterform'].elements['name'];
nameBox.value='Log in';
nameBox.disabled=true;


msgBox = document.forms['chatterform'].elements['msg'];
msgBox.value='to post';
msgBox.disabled=true;

postBtn =
document.forms['chatterform'].elements['post'];
postBtn.disabled = true;

urlBox = document.forms['chatterform'].elements['uurl'];
if (urlBox) {
urlBox.value='to Xanga';
urlBox.disabled=true;
}

popLink = getPopLink();
if (popLink != null) {
popLink.href = popLink.href + '&nopost=Log+in!!'; }

}
</script>

<!-- end code provided by createblog.com -->
ladyxdiscord
thanks but it still doesn't work
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.