• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

SEO Do-follow & No-follow backlinks for certain users possible!?

surfsup

Well-known member
#1
In VbSEO its possible to make everyones links no-follow and in the backend I can whitelist certain users who reach a certain amount of posts and provide them with a do-follow backlink for their site.

Is something like this possible for Xenforo ??
 

Forsaken

Well-known member
#2
In VbSEO its possible to make everyones links no-follow and in the backend I can whitelist certain users who reach a certain amount of posts and provide them with a do-follow backlink for their site.

Is something like this possible for Xenforo ??
Non-staff links are no-follow by default iirc.
 

Jake Bunce

XenForo moderator
Staff member
#7
I dont want ALL sig links to be do-follow because I want it to be a Privilege for certain members to have a do-follow backlink....

Possible!?
Untested, but this should work:

library/XenForo/ViewPublic/Helper/Message.php

Add the red code:

Code:
		if ($options['signatureKey'] && isset($message[$options['signatureKey']]))
		{
			if ($options['showSignature'])
			{
				$userModel = XenForo_Model::create('XenForo_Model_User');
				$noFollow = !$userModel->isMemberOfUserGroup($message, 11);

				// note: signatures are always nofollow'd by default
				$message[$options['signatureHtmlKey']] = new XenForo_BbCode_TextWrapper(
					$message[$options['signatureKey']], $parser, array('lightBox' => false, 'noFollowDefault' => $noFollow)
				);
			}
			else
			{
				$message[$options['signatureHtmlKey']] = '';
			}
		}
You need to specify the privileged group id (that gets "do follow" links).