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

Make all links nofollow

Discussion in 'Styling and Customization Questions' started by Ingenious, Mar 5, 2012.

  1. Ingenious

    Ingenious Well-Known Member

    Is it possible please to make all links posted by users, whether admin, moderator or not, nofollow?

    I am sure I saw a file edit to do this but I can't for the life of me find it, search for "make all links nofollow" doesn't return much.

    Thanks :)
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. Ingenious

    Ingenious Well-Known Member

    Thanks Jake I'll give that a go and report back :)
     
  4. BenForum

    BenForum Active Member

    can you explain little more which value exactly need to be replaced..

    replace to

    ????
     
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Code:
    		$options['states'] += array(
    			'noFollowDefault' => true
    		);
    
     
    Fred., Ingenious and M@rc like this.
  6. Ingenious

    Ingenious Well-Known Member

    Jake's code change above works great. Just change the bit after => to true (in the file library/XenForo/ViewPublic/Helper/Message.php), all links are then nofollow including admin and mods.
     
  7. BenForum

    BenForum Active Member

    is it possible to set this option for mod only excluding admin..
     
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    nttruong likes this.

Share This Page