Sayfanızda Yer alan Yoneticilerin İp adreslerini Guvenlik Amacıyla Gizlemek isteriz zaman zaman bu duzenleme tamamen bu ihtiyacımızı karşılamak icin yapılmıştır.
Yapılacak işlemler xenforo sistem dosyalarından "ip.php" dosyasını duzenlemek.
Adım Adım Bu işlemi yapalım.

Editor Programı yardımıyla Acın;
Kod:
/library/Xenforo/Model/Ip.php
Bu Kısımı;
PHP:
public function logIp($userId, $contentType, $contentId, $action, $ipAddress = null, $date = null)


if ($date === null)


$this->_getDb()->insert('xf_ip', array(
'user_id' => $userId,
'content_type' => $contentType,
'content_id' => $contentId,
'action' => $action,
'ip' => $ipAddress,
'log_date' => max(0, $date)
));

return $this->_getDb()->lastInsertId();
}
Bununla Değiştirin;
PHP:
public function logIp($userId, $contentType, $contentId, $action, $ipAddress = null, $date = null)


$ipAddress = XenForo_Helper_Ip::getBinaryIp(null, $ipAddress);
if (!$ipAddress)


if ($date === null)


$this->_getDb()->insert('xf_ip', array(
'user_id' => $userId,
'content_type' => $contentType,
'content_id' => $contentId,
'action' => $action,
'ip' => $ipAddress,
'log_date' => max(0, $date)
));

return $this->_getDb()->lastInsertId();
}
Bu işlem Sadece Yoneticilerin İp adresini gizleyecektir.
Belirlemiş Olduğumuz başka Kullanıcılarında ip adresini gizlemek mumkun.
onun icin Aşağıdaki Bolumle Değişim yapıyoruz;
PHP:
public function logIp($userId, $contentType, $contentId, $action, $ipAddress = null, $date = null)


$ipAddress = XenForo_Helper_Ip::getBinaryIp(null, $ipAddress);
if (!$ipAddress)


if ($date === null)


$this->_getDb()->insert('xf_ip', array(
'user_id' => $userId,
'content_type' => $contentType,
'content_id' => $contentId,
'action' => $action,
'ip' => $ipAddress,
'log_date' => max(0, $date)
));

return $this->_getDb()->lastInsertId();
}
HTML:
($userId, array(1, 22, 192, 391))
bolumunde yer alan "1,22,192,391" İD nolarını Değişmeniz Yeterlidir.
================================================== ===

Bu işlemleri yaptığınızda var olan ip adreslerinin uzerine yazılmaz bunu guncellemeniz gerekmektedir. Bu işlem icinde PhpmyAdmin'e erişim sağlayıp

Bu Sorguyu Calıştırmanız yeterlidir.
HTML:
UPDATE xf_ip SET ip = '99.99.99.99' WHERE user_id =1
================================================== ===