xoops forums

trspice

Not too shy to talk
Posted on: 2008/8/28 8:22
trspice
trspice (Show more)
Not too shy to talk
Posts: 193
Since: 2007/3/24
#1

Need a hack for NewBB to add rel="nofollow" to all posted links

Does anyone have a hack for NewBB/CBB to make it automatically add rel="nofollow" to links inserted in posts or signatures just about any link a user can place? This is to stop Bots from following these links. It is now used in most forum scripts and wordpress but I cannot figure how to get it done. Please help. Thanks
There's nothing but science....
The Reggae Album

trspice

Not too shy to talk
Posted on: 2008/8/29 5:33
trspice
trspice (Show more)
Not too shy to talk
Posts: 193
Since: 2007/3/24
#2

Re: Need a hack for NewBB to add rel="nofollow" to all posted links

Does anyone esle require this hack? I think it's very neccessary.
There's nothing but science....
The Reggae Album

DarinAllan

Friend of XOOPS
Posted on: 2009/12/13 11:15
DarinAllan
DarinAllan (Show more)
Friend of XOOPS
Posts: 477
Since: 2005/5/18
#3

Re: Need a hack for NewBB to add rel="nofollow" to all posted links

I thought I would reply to this older post because it's what I would like to do as well, except I don't want nofollow to affect signature links on my forum, just links that are posted in CBB. Would anyone out there have any hacks or ideas on how to enable this?

Cheers

andrey3761

XOOPS Translator
Posted on: 2009/12/13 16:03
andrey3761
andrey3761 (Show more)
XOOPS Translator
Posts: 234
Since: 2008/8/21
#4

Re: Need a hack for NewBB to add rel="nofollow" to all posted links

\class\module.textsanitizer.php
\Frameworks\textsanitizer\module.textsanitizer.php

To change function makeClickable to it:
http://radio-hobby.org/uploads/xoops/makeClickable.txt

<noindex><a rel="nofollow" ***>***</a><noindex>