To fix this mod for vB 4.2 change the code as follows: (added %256 on 3 lines)
PHP Code:
function ipv6_to_ipv4($input) {
// Create a fake ipv4 address
// that will "represent" the given
// ipv6 address
$hash = abs(crc32($input));
if($hash < 100000000) $hash += 100000000;
$num1 = intval(substr($hash, 0, 3))%256;
$num2 = intval(substr($hash, 3, 3))%256;
$num3 = intval(substr($hash, 6, 3))%256;
return "224." .$num1. "." .$num2. "." .$num3;
}