miercuri, 15 august 2012

Joomla 1.5 rel nofollow

1. modify file: /modules/mod_mainmenu/helper.php on line 362
replace line
$data = '<a href="'.$tmp->url.'">'.$image.$tmp->name.'</a>';
width


if(strpos($iParams->get('pageclass_sfx'),'nofollow') !== false) {
    $data = '<a href="'.$tmp->url.'" rel="nofollow">'.$image.$tmp->name.'</a>';
      } else {
    $data = '<a href="'.$tmp->url.'">'.$image.$tmp->name.'</a>';
   }

2. modify file: /modules/mod_mainmenu/tmpl/default.php - > comment line 75
//$node->removeAttribute('rel');
3.edit menu item - Parameters System‎- page class suffix - noffolow

Niciun comentariu:

Trimiteți un comentariu