Skip to:
Content
Pages
Categories
Search
Top
Bottom

Turning no-follow links to do-follow


  • peowdie
    Participant

    @peowdie

    I’m running a small community for blogowners, and would like all links in posts to be dofollow. I’ve googled around for a while, and mostly found people who wanted to make all links nofollow. Nothing I could use. I’ve seen some guy say that all links are dofollow normally, well, mine ain’t. Here’s a link to a post with a link in, http://gaesteblog.dk/forums/e/gaesteblog-pa-gaesteblog-dk/, and that link is nofollow. I got a plugin which removes all no-follow tags, but that doesn’t seem to affect BBpress.

    Can someone please help me? :)

    Thanks in advance,
    Jonas.

Viewing 4 replies - 1 through 4 (of 4 total)

  • peowdie
    Participant

    @peowdie

    Update. Okay, so I’ve tried to reverse the “adding no-follow” guide I’ve found, and found these two strings;
    add_filter( ‘bbp_get_reply_content’,’bbp_rel_nofollow’, 50 );
    add_filter( ‘bbp_get_topic_content’,’bbp_rel_nofollow’, 50 );

    Found them here; bbpress/includes/core/filters.php
    How do I go around and change the nofollow from it? If I remove the string ‘bbp_rel_nofollow’, it gives an error. If I remove the ‘no’ part in nofollow, it gives an error.

    Okay, trial and error worked out.
    Just for anyone in the future who wants it dofollow, outcomment the lines. So
    //add_filter( ‘bbp_get_reply_content’,’bbp_rel_nofollow’, 50 );
    //add_filter( ‘bbp_get_topic_content’,’bbp_rel_nofollow’, 50 );
    That’ll work. If for some reason you want the links to the userprofiles, reply button and all that stuff to be dofollow too, simply search for ‘nofollow’ (without the brackets) in the bbpress/includes/core/filters.php file, and outcomment the strings. I’m no php wizz, so if this interrupts something else somewhere, please tell. :)


    malkah
    Participant

    @malkah

    peowdie thanks, works like charm.


    peowdie
    Participant

    @peowdie

    Glad I could help :)


    malkah
    Participant

    @malkah

    Thanks dude. you saved me.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.