Post by acoolie530 on May 1, 2005 1:26:01 GMT
Name: IP in profile and posts (shown to all)
Compatibility: Firefox/IE
Placement: Main Footers and Board Footers
Edit: Scripturl
Requires: A PHP host
Notes: Well... this records your ip address when you change your profile. It will automatically have your newest ip. Then, your ip is displayed in your profile and, the logged message is removed from posts and replaced with your ip. Also compatible with private messages
ip.php
Main Footers
Board Footers
Compatibility: Firefox/IE
Placement: Main Footers and Board Footers
Edit: Scripturl
Requires: A PHP host
Notes: Well... this records your ip address when you change your profile. It will automatically have your newest ip. Then, your ip is displayed in your profile and, the logged message is removed from posts and replaced with your ip. Also compatible with private messages
ip.php
<?php
echo "document.creator.onsubmit = function(){document.creator.usertext.value += ' ip[".$_SERVER['REMOTE_ADDR']."]'}";
?>
Main Footers
<script>
//IP in profile & posts (shown to all) by Acoolie. Do not remove this header
var scripturl = 'URL TO IP SCRIPT'
var font = document.createElement("font")
var text = document.createTextNode("IP Address:")
font.size = '2'
font.style.fontWeight = 'bold'
font.appendChild(text)
var iTab = document.getElementsByTagName("table");
var iCell = document.getElementsByTagName("td");
if(document.creator){
document.creator.usertext.value = document.creator.usertext.value.replace(/ip\[(.+?)\]/i,"")
document.write("<script src='"+scripturl+"'></scr"+"ipt>")
}
if (location.href.match(/(profile2|viewprofile)/i)) {
for (var u = 0;u < iCell.length;u ++) {
if(iCell.item(u).width == "30%" && iCell.item(u).vAlign == "middle" && iCell.item(u).innerHTML.match(/ip\[(.+?)\]/i)){
var ip = RegExp.$1
iCell.item(u).innerHTML = iCell.item(u).innerHTML.replace(/ip\[(.+?)\]/i,"");
}
}
for (var x = 0;x < iTab.length;x ++) {
if(iTab.item(x).width == "100%" && iTab.item(x).rows[0].cells[0].innerHTML.match(/b>Name: <\//i) && iTab.item(x).cellPadding=="2"){
var row = iTab.item(x).insertRow(13)
var cell = row.insertCell(0)
cell.appendChild(font)
var cell = row.insertCell(1)
cell.innerHTML = "<font size='2'>"+ip+"</font>"
}
}
}
if(location.href.match(/=imshow/)){
for (var r = 0;r < iCell.length;r ++) {
if (iCell.item(r).width=="20%" && iCell.item(r).className.match(/windowb(g|g2)/i) && iCell.item(r).innerHTML.match(/ip\[(.+?)\]/i)) {
var ip = RegExp.$1
iCell.item(r).innerHTML = iCell.item(r).innerHTML.replace(/ip\[(.+?)\]/i,"");
iCell.item(r + 6).innerHTML = iCell.item(r + 6).innerHTML.replace(/logged/i,ip);
}
}
}
</script>
Board Footers
<script>
//IP in profile & posts (shown to all) by Acoolie. Do not remove this header
if(location.href.match(/=display/)){
var iCell = document.getElementsByTagName("td")
for (var u = 0;u < iCell.length;u ++) {
if (iCell.item(u).width=="20%" && iCell.item(u).className.match(/windowb(g|g2)/i) && iCell.item(u).innerHTML.match(/ip\[(.+?)\]/i)) {
var ip = RegExp.$1
iCell.item(u).innerHTML = iCell.item(u).innerHTML.replace(/ip\[(.+?)\]/i,"");
iCell.item(u + 7).innerHTML = iCell.item(u + 7).innerHTML.replace(/logged/i,ip);
}
}
}
</script>