DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

tips:magnet_links

Show DC++ magnet links as external

In the file inc/parser/handler.php: find

        }else{
        // internal link
            $this->_addCall(
                'internallink',
                array($link[0],$link[1]),
                $pos
                );

before add

        }elseif ( preg_match('#^magnet:\?#i',$link[0]) ) {
        // magnet link (accepts dc protocol)
            $this->_addCall(
                    'externallink',
                    array($link[0],$link[1]),
                    $pos
                    );

Comments

Seems like it's not working in Angua — fnadde42fnadde42

2012/05/10 10:30

> see this .. https://forum.dokuwiki.org/post/33698

tips/magnet_links.txt · Last modified: 2015-10-02 06:25 by 2001:4dd0:ff00:9581:c181:e10b:ee6d:5629