MyBB Community Forums

Full Version: where is nofollow option?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I found "if(isset($this->options['nofollow_on']))" in code, but I can't find it in AP. I searched settings for "link" and "nofollow", but it is not here.
Where is it?
It's per usergroup. You need to edit the usergroup to enable it.
Is it?

ACP > Users & Groups > Groups > [Group Name] > Users and Permissions > Account Management > Signature links have nofollow enabled?
But it is not for signuture. It is for all urls. Signuture is "$usergroup['signofollow']" and I am speaking about

$nofollow = '';
if(isset($this->options['nofollow_on']))
{
	$nofollow = " rel=\"nofollow\"";
}
...
$link = "<a href=\"$fullurl\" target=\"_blank\"{$nofollow}>$name</a>";

in inc\class_parser.php function mycode_parse_url($url, $name="")
It's used for setting nofollow in user signatures. It's not used anywhere else.
So, it is just empty code, right? Than it is ok.
But it is better to remove it if it is not used.
It is used.

/home/nathan/mybb-dev-server/feature/inc/class_parser.php:
  888  
  889  		$nofollow = '';
  890: 		if(isset($this->options['nofollow_on']))
  891  		{
  892  			$nofollow = " rel=\"nofollow\"";

/home/nathan/mybb-dev-server/feature/inc/functions_post.php:
  589  		if($usergroup['signofollow'])
  590  		{
  591: 			$sig_parser['nofollow_on'] = 1;
  592  		}
  593  
I got it, thanks for explanation.
thanks , i did nofollow