How can I add "nofollow" to PhpBB forum posts? In fact, I don't know how to add nofollow at all. Thanks guys! Any help is appreciated!
phpbb2? phpbb3?? bb3 is in viewtopic.php find $message = bbcode_nl2br($message); $message = smiley_text($message); Code (markup): after add $message = preg_replace('/(class="postlink")/','class="postlink" rel="nofollow" target="_blank"',$message); Code (markup): That will also open links in new window
Wow, epsilonstudios, your message is so clear, thanks. But can you tell me the PhpBB2 version also? Coz my question was originally for PhPBB2. Thanks in advance!
Normally i think it should be the same. If you use a phpbb its worth it if you can take a look at phpbb hacks site for Mods that will better your site
is this nofollow usefull?Will then my forum more atractive for google? and this make nofollow only links in forum or in footer and etc too?It is important if i want to change link or so.How can i see if it is work? thx
Andrew, Thank you very much for this code. It's helped me a lot. I've tweaked it slightly to allow for the decent users on my forum. I'll trigger it if users have posted less than a certain amount. if ($user_cache[$poster_id]['posts'] < 75) { $message = preg_replace('/(class="postlink")/','class="postlink" rel="nofollow" target="_blank"',$message); } Code (markup): Obviously the way to go would be to have this value accessible via the admin panels but for now it does the job. Thanks again Steve
That's exactly what I have been searching for! Only one question: Is it possible to add the nofollow-attribute just on external links? I'm afraid adding it also on internal links might give trouble with search engine spiders. Thanks!
I love the update for allowing the no-follow to only be active for users with a minimum post count, but it still allows do-follow links in signatures. Does anyone know how to do the same thing for user signatures?