M? file /library/XenForo/Helper/ String.php t?m
public static function getLinkClassTarget($url)
{
$target = '_blank';
$class = 'externalLink';
$type = 'external';
$urlInfo = @parse_url($url);
if ($urlInfo)
{
$host = $urlInfo['host'] . (!empty($urlInfo['port']) ? ":$urlInfo[port]" : '');
if ($host == XenForo_Application::$host)
{
$target = '';
$class = 'internalLink';
$type = 'internal';
}
}
return array($class, $target, $type);
}
Thay b?ng
public static function getLinkClassTarget($url)
{
$target = '_blank';
$class = 'externalLink" rel="nofollow ';
$type = 'external';
$urlInfo = @parse_url($url);
if ($urlInfo)
{
$host = $urlInfo['host'] . (!empty($urlInfo['port']) ? ":$urlInfo[port]" : '');
if ($host == XenForo_Application::$host) # ��y l� check t�n mi?n �ang s? d?ng, kh�ng c?n thay �?i.
{
$target = '';
$class = 'internalLink';
$type = 'internal';
}
# ��y l� t�y bi?n, n?u b?n mu?n cho ph�p 1 t�n mi?n n�o �� ��?c Google theo link, v� th�m target="_blank" �? m? 1 c?a s? m?i.
if ($host == "powernet.vn")
{
$target = '_blank ';
$class = 'internalLink';
$type = 'internal';
}
}
return array($class, $target, $type);
}
Th�m rel="nofollow" v�o link t?i b�i vi?t cho xenforo
4/
5
Oleh
Unknown