Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.0k views
in Q2A Core by
I urgently need to post questions and answers with links that do not have the nofollow-tag. is there some soltion for this without chaning code?
Q2A version: 1.5.2

1 Answer

0 votes
by

This question should help you: http://question2answer.org/qa/8364/how-to-remove-nofollow-for-links-to-own-website

It needs only a small amount of custom code. To remove nofollow for all links, replace the contents of the _remove_nofollow function with this:

    return preg_replace( 'rel="nofollow"', '', $str );

by
Hm - not very good for performance cause this is done each time when a question is viewed. The better solution would be just not to generate the rel="nofollow" then is no need to replace it.
by
Have you actually *tested* this to see how much it slows down your site? I don't think you know what is fast and what is slow.

BTW in the example above (applying to all links) you can use str_replace instead of preg_replace which would be faster. But all of this is just milliseconds improvement.
...