اقتبـاس ،، كيف يتم وضع نوفلو على جميع الروابط الخارجيه باستثناء روابط الموقع؟
حرر ملف : includes/pbboardCodeparse.class.php
وابحث في دالة function censor_words($text) عن :
CODE
if ($PowerBB->_GET['page'] != 'topic'
الآن لديك خيارين :
لحصرها على روابط المنتدى اضف اعلاها :
CODE
$text = str_replace('href="'.$PowerBB->functions->GetForumAdress(),'rel="dofollow" href="'.$PowerBB->functions->GetForumAdress(),$text);
$text = str_replace('href="'.!$PowerBB->functions->GetForumAdress(),'rel="nofollow" href="',$text);
ولحصرها على روابط الموقع كاملاً بما فيها المنتدى اضف اعلاها :
CODE
$GetHOST = $PowerBB->_SERVER['HTTP_HOST'];
$text = str_replace('href="http://'.$GetHOST,'rel="dofollow" href="',$text);
$text = str_replace('href="http://www.'.$GetHOST,'rel="dofollow" href="',$text);
$text = str_replace('href="www.'.$GetHOST,'rel="dofollow" href="',$text);
$text = str_replace('href="http://'.!$GetHOST,'rel="nofollow" href="http://',$text);
$text = str_replace('href="http://www.'.!$GetHOST,'rel="nofollow" href="http://www.',$text);
$text = str_replace('href="www.'.!$GetHOST,'rel="nofollow" href="http://www.',$text);
أنتهى ..
روبط موقعك ستكون dofollow والروابط الخارجبة ستكون nofollow
بالتوفيق