Post by Peter on Sept 25, 2005 10:29:36 GMT -8
This code moves the contact icons from the mini profile (email, pm, aim, msn etc) and places them opposite the IP information. I didn't want it under the signature, as I think it looks better where it is now.
Note: this code will automatically remove the edit by information.
<script type="text/javascript">
<!--
// Created by PopThosePringles
function moveIcons(){
var iCount = 0, icons = null;
var iCell = document.getElementsByTagName("td");
for(c = 0; c < iCell.length; c ++){
if(iCell.item(c).className.match(/windowbg/) && iCell.item(c).width == "20%" && iCell.item(c).innerHTML.match(/Posts:/)){
var iCenter = iCell.item(c).getElementsByTagName("center").item(0);
icons = new Object();
gotIcons = false
for(n = 1; n < iCenter.childNodes.length; n ++){
if(iCenter.childNodes.item(n).nodeName.match(/^(a|img)$/i)){
gotIcons = true;
icons[iCount ++] = {
contact: iCenter.childNodes.item(n)
};
iCenter.removeChild(iCenter.childNodes.item(n));
n --;
}
}
if(gotIcons){
while(iCenter.hasChildNodes() && iCenter.childNodes.length > 3){
iCenter.removeChild(iCenter.lastChild);
}
}
}
if(iCell.item(c).align == "right" && iCell.item(c).innerHTML.match(/Logged|\d+\.\d+\.\d+/) && iCell.item(c).previousSibling){
iCell.item(c).previousSibling.removeChild(iCell.item(c).previousSibling.firstChild);
if(icons != null){
for(i in icons){
iCell.item(c).previousSibling.appendChild(icons.contact);
iCell.item(c).previousSibling.appendChild(document.createTextNode(" "));
}
icons = null;
}
}
}
}
if(location.href.match(/=display/i)){
moveIcons();
}
//-->
</script>
Global footer
Note: this code will automatically remove the edit by information.
<script type="text/javascript">
<!--
// Created by PopThosePringles
function moveIcons(){
var iCount = 0, icons = null;
var iCell = document.getElementsByTagName("td");
for(c = 0; c < iCell.length; c ++){
if(iCell.item(c).className.match(/windowbg/) && iCell.item(c).width == "20%" && iCell.item(c).innerHTML.match(/Posts:/)){
var iCenter = iCell.item(c).getElementsByTagName("center").item(0);
icons = new Object();
gotIcons = false
for(n = 1; n < iCenter.childNodes.length; n ++){
if(iCenter.childNodes.item(n).nodeName.match(/^(a|img)$/i)){
gotIcons = true;
icons[iCount ++] = {
contact: iCenter.childNodes.item(n)
};
iCenter.removeChild(iCenter.childNodes.item(n));
n --;
}
}
if(gotIcons){
while(iCenter.hasChildNodes() && iCenter.childNodes.length > 3){
iCenter.removeChild(iCenter.lastChild);
}
}
}
if(iCell.item(c).align == "right" && iCell.item(c).innerHTML.match(/Logged|\d+\.\d+\.\d+/) && iCell.item(c).previousSibling){
iCell.item(c).previousSibling.removeChild(iCell.item(c).previousSibling.firstChild);
if(icons != null){
for(i in icons){
iCell.item(c).previousSibling.appendChild(icons.contact);
iCell.item(c).previousSibling.appendChild(document.createTextNode(" "));
}
icons = null;
}
}
}
}
if(location.href.match(/=display/i)){
moveIcons();
}
//-->
</script>
Global footer