Log In · Register

 
 
Closed TopicStart new topic
Chat box ID Script, Script for making chatbox entries non anonymous
Anatole
post Mar 25 2006, 02:17 AM
Post #1


Senior Member
***

Group: Member
Posts: 39
Joined: Mar 2005
Member No: 114,685



Hey gang -

I once found a code on here for making the chatbox show the xanga name of the person posting on it. I put it into my Xanga and it worked for a few weeks and then stopped working for some reason. I didn't worry about it and just let people post anonymously.

However, I have been having people misuse my chatbox this week, and would like to put an end to the anonymous postings. I am wondering what kind of code I can use to make everyone who posts in my chatbox have to use their Xanga ID.

Thanks.
 
PrincessAda
post Mar 29 2006, 08:14 PM
Post #2


the name is ada.
*******

Group: Official Member
Posts: 4,688
Joined: Dec 2005
Member No: 334,608



Is that allowed? Well if it isn`t..sorry for posting the code I found.
CODE
<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>


Hope that works..
*Website Stats*
 

Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: