1. 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!?

Discussion in 'XenForo Questions and Support' started by surfsup, May 7, 2012.

  1. surfsup

    surfsup Well-Known Member

    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 ??
  2. Forsaken

    Forsaken Well-Known Member

    Non-staff links are no-follow by default iirc.
  3. surfsup

    surfsup Well-Known Member

    So how do you make certain non-staff users do-follow ?
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  5. surfsup

    surfsup Well-Known Member

    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....

  6. ragtek

    ragtek Guest

  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Untested, but this should work:


    Add the red 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)
    				$message[$options['signatureHtmlKey']] = '';
    You need to specify the privileged group id (that gets "do follow" links).
  8. Chris D

    Chris D XenForo Developer Staff Member

    Jake Bunce likes this.

Share This Page