3
i'm speaking for XOOPS 1.3.8
i don't like the ip.gif so i replaced with a piece of code
in /modules/newbb/class/class.forumposts.php
find
$ip_image
and take this:
Quote:
if ( $adminview ) {
?>
<script>
function whois(url) {
test=window.open(url,'nome','SCROLLBARS=1,STATUS=NO,TOOLBAR=NO,RESIZABLE=YES,LOCATION=NO,MENU=NO,WIDTH=600,HEIGHT=400,LEFT=0,TOP=0');
}
</script>
<?php
$ip_image = "IP: <b><font color='#FF0000'>".$this->posterip()."</font> - <a href=\"javascript:whois('http://stats.kuht.it/inc/whois.php?IP=".$this->posterip()."');\">WHOIS</a></b><br />";
} else {
$ip_image = "IP: <b><font color='#FF0000'>nascosto</font></b><br />";
please don't consider whois.php, is a php page that can whois a certain ip, remove it.
for the lazy:
Quote:
if ( $adminview ) {
$ip_image = "IP: <b><font color='#FF0000'>".$this->posterip()."</font> </b><br />";
} else {
$ip_image = "IP: <b><font color='#FF0000'>nascosto</font></b><br />";
}
i've made also an algorithm to crypt the ip for non admin user, but i think that is better leaving "nascosto" (hidden or protected)