DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:magnet_links

This is an old revision of the document!


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
tips/magnet_links.1336638642.txt.gz · Last modified: 2012-05-10 10:30 by fnadde42

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