• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Is it possible to disable auto parsing of links.

EQnoble

Well-known member
#5
maybe something like:
PHP:
public function renderTagUrl(array $tag, array $renderStates)
    {
            $url = $this->_getTagOption($tag);
            return parent::renderString($url, array(), $trim);
            }
        }
    }
you can see it live in action in http://xenforo.com/community/threads/ragtek-advanced-link-permissions-and-linkchecker.17974/
I wouldn't really know what to do with that from there but the addon looks awesome....:)

I have tried using regex in my bbcode (created with bbcm) but the best effort I was able to yield was replacing the first instance of the tags...the rest remained the same. <Sigh>...why don't I have a clue as to what I am doing
 

xfrocks

Well-known member
#7
You can do that with a simple add-on. Listen to load_class_bb_code. Extend XenForo_BbCode_Formatter_BbCode_AutoLink. Do something like this

PHP:
class MyAddOn_BbCode_Formatter_BbCode_AutoLink extends XFCP_MyAddOn_BbCode_Formatter_BbCode_AutoLink {
public function filterString($string, array $rendererStates)
{
return $string;
}
}