DokuWiki

It's better when it's simple

User Tools

Site Tools


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 — fnadde42 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

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki