Jump to content
najaru

[IPB2]Impostare il nofollow

Recommended Posts

najaru

Per eseguire questa modifica è necessario trovare questo file

sources/classes/bbcode/class_bbcode_core.php 

trovare questa stringa

 	return ( isset($url['st']) ? $url['st'] : '' ) . "<a href=\"".$url['html']."\" target=\"_blank\">".$show."</a>" . $url['end'];
}

e sostituirla con (cambiando tuodominio ovviamente)

	 	if ( strpos($url['html'],'tuodominio.com' ) ) {
return ( isset($url['st']) ? $url['st'] : '' ) . "<a href=\"".$url['html']."\" target=\"_self\">".$show."</a>" . $url['end'];
}
else {
return ( isset($url['st']) ? $url['st'] : '' ) . "<a href=\"".$url['html']."\" target=\"_blank\" rel=\"nofollow\">".$show."</a>" . $url['end'];
}
}

questo fa in modo che che ii bots non seguano i link postati sul forum.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Crea Nuovo...

Important Information

By using this site, you agree to our Terms of Use.