Il y a actuellement
331 tutoriaux sur Aidoforum. Toute reproduction, partielle ou complète, est interdite.
Ajoutez vos propres tutoriaux sur Aidoforum !
- Retour aux tutoriaux
Google a mis en place une politique de lutte contre les spammeurs de PageRank : pour plus d'informations, lisez cette news qui explique en quoi consiste le rel="nofollow" que nous allons appliquer aux forums PhpBB.
Les modifications que nous allons apporter consistent à inclure cet attribut rel="nofollow" dans :
- les liens postés par vos membres dans les messages
- les profils ( à l'emplacement Site Web )
Attention, avant toute modification de vos fichiers, faites des sauvegardes de vos fichiers actuels.
MOD créé par Pouzy pour Aidoforum.com
Dans votre FTP, à l'emplacement de votre forum :
Ouvrir : includes/usercp_viewprofile.php
Trouver ( ligne 137 ) :
$www_img = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : ' ';
$www = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww">' . $profiledata['user_website'] . '</a>' : ' ';
Remplacer par :
$www_img = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww" rel="nofollow"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : ' ';
$www = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww" rel="nofollow">' . $profiledata['user_website'] . '</a>' : ' ';
Ouvrir : includes/bbcode.php
Trouver ( ligne 643 ) :
// yyyy is anything up to the first space, newline, comma, double quote or <
$ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);
Remplacer par :
// yyyy is anything up to the first space, newline, comma, double quote or <
$ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"\\2\" target=\"_blank\" rel=\"nofollow\">\\2</a>", $ret);
Trouver ( ligne 650 ) :
// comma, double quote or <.
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret);
Remplacer par :
// comma, double quote or <.
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\" rel=\"nofollow\">\\2</a>", $ret);
Trouver ( ligne 670 ) :
$text = preg_replace("#<!-- BBCode auto-link start --><a href=\"(.*?)\" target=\"_blank\">.*?</a><!-- BBCode auto-link end -->#i", "\\1", $text);
Remplacer par :
$text = preg_replace("#<!-- BBCode auto-link start --><a href=\"(.*?)\" target=\"_blank\" rel=\"nofollow\">.*?</a><!-- BBCode auto-link end -->#i", "\\1", $text);
Fermez et sauvegardez les fichiers.
Par Pouzy, le 10 Avril 2005 à 15h03