Post by CrAzY_J on Sept 17, 2005 13:58:09 GMT -8
Description: this code will add a text field on the profile page under the instant messengers category.
in this text field the user must add his/her valid google talk account.
Code creator: CrAzY_J
Code placement: Global footers
Forum software: Proboards version 4
<script type="text/javascript">
/*Google talk in profile
Created by CrAzY_J (http://hatakeforum.proboards30.com)
do no redistribute this code without the creator's permission
this header must not be remove*/
var re=/gtalk%(.+?)%/;
function runzurs()
{
var gTab = document.body.getElementsByTagName("table");
for(t = 0 ; t<gTab.length ; t++)
{
if(gTab[t].cellSpacing=="2" && gTab[t].rows[0].cells[0].innerHTML.match(/AIM:/))
{
var iRow = gTab[t].insertRow(0);
var iCell1 = iRow.insertCell(0);
var iCell2 = iRow.insertCell(1);
var iCell3 = iRow.insertCell(2);
iCell1.innerHTML = "<font size='2'>Google talk:</font>";
iCell2.innerHTML = "<input id='gtalk' size='35'>";
iCell3.innerHTML = "Your Google talk account.";
if(document.modifyForm.personaltext.value.match(re))
document.getElementById('gtalk').value = RegExp.$1;
document.modifyForm.onsubmit=function()
{
if(document.modifyForm.personaltext.value.match(re))
{
document.modifyForm.personaltext.value = document.modifyForm.personaltext.value.replace(re,"gtalk%"+ document.getElementById('gtalk').value +"%");
}
else
{
document.modifyForm.personaltext.value+= "gtalk%" +document.getElementById('gtalk').value+ "%";
}
}
}
}
}
function walkzurs()
{
var TD=document.body.getElementsByTagName("td");
for( t = 0 ; t<TD.length ; t++)
{
if(TD[t].width=="20%" && TD[t].innerHTML.match(re))
{
TD[t].innerHTML = TD[t].innerHTML.replace(re,"<br />Google Talk: "+ RegExp.$1);
}
}
}
if(location.href.match(/modifyprofile/))
runzurs();
if(location.href.match(/(view(profile)?|display)/))
walkzurs();
</script>
in this text field the user must add his/her valid google talk account.
Code creator: CrAzY_J
Code placement: Global footers
Forum software: Proboards version 4
<script type="text/javascript">
/*Google talk in profile
Created by CrAzY_J (http://hatakeforum.proboards30.com)
do no redistribute this code without the creator's permission
this header must not be remove*/
var re=/gtalk%(.+?)%/;
function runzurs()
{
var gTab = document.body.getElementsByTagName("table");
for(t = 0 ; t<gTab.length ; t++)
{
if(gTab[t].cellSpacing=="2" && gTab[t].rows[0].cells[0].innerHTML.match(/AIM:/))
{
var iRow = gTab[t].insertRow(0);
var iCell1 = iRow.insertCell(0);
var iCell2 = iRow.insertCell(1);
var iCell3 = iRow.insertCell(2);
iCell1.innerHTML = "<font size='2'>Google talk:</font>";
iCell2.innerHTML = "<input id='gtalk' size='35'>";
iCell3.innerHTML = "Your Google talk account.";
if(document.modifyForm.personaltext.value.match(re))
document.getElementById('gtalk').value = RegExp.$1;
document.modifyForm.onsubmit=function()
{
if(document.modifyForm.personaltext.value.match(re))
{
document.modifyForm.personaltext.value = document.modifyForm.personaltext.value.replace(re,"gtalk%"+ document.getElementById('gtalk').value +"%");
}
else
{
document.modifyForm.personaltext.value+= "gtalk%" +document.getElementById('gtalk').value+ "%";
}
}
}
}
}
function walkzurs()
{
var TD=document.body.getElementsByTagName("td");
for( t = 0 ; t<TD.length ; t++)
{
if(TD[t].width=="20%" && TD[t].innerHTML.match(re))
{
TD[t].innerHTML = TD[t].innerHTML.replace(re,"<br />Google Talk: "+ RegExp.$1);
}
}
}
if(location.href.match(/modifyprofile/))
runzurs();
if(location.href.match(/(view(profile)?|display)/))
walkzurs();
</script>