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 8 replies - 1 through 8 (of 8 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.


    annyrakesh
    Participant

    @annyrakesh

    It did not work for me..plz help


    akyboy
    Participant

    @akyboy

    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.

    That actually worked well.

    But i have another problem, i removed nofollow in order to try to get light box working on bbpress posts, its working fine on wp posts however.

    I need rel=”lightbox” on images in posts, how to add that filter if anyone can help?

    Thanks


    maaazkhan007
    Participant

    @maaazkhan007

    Thanks a million Dude You Saved me, Indeed !!


    For Games
    Participant

    @sockscap64

    Hi, I know this is an old topic. Those days When I faced this problem and I wrote a plugin to solve this problem. Hope it will help someone else has the same problem.

    bbpress dofollow

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.