Jump to content

  •  

  • Tutorial info Visit support topic

    • Added on: May 26 2008 08:32 AM
    • Date Updated: May 28 2008 08:57 PM
    • Views: 3242
     


    * * * * *
    3 Ratings

    (V88)Automatically wrap links with [CODE] tags

    Simple hack to wrap live links inside [code] tags.

    Posted by Vince on May 26 2008 08:32 AM
    Simple hack to wrap live links inside code-tags.

    Open sources/classes/bbcode/class_bbcode_core.php

    Find:

    return ( isset($url['st']) ? $url['st'] : '' ) . "<a href=\"".$url['html']."\" target=\"_blank\">".$show."</a>" . $url['end'];

    Replace with:

    				$html = $this->wrap_style( 'code' );
    
    		return "<!--c1-->{$html['START']}<!--ec1-->{$url['html']}<!--c2-->{$html['END']}<!--ec2-->";
    		
    		//return ( isset($url['st']) ? $url['st'] : '' ) . "<a href=\"".$url['html']."\" target=\"_blank\">".$show."</a>" . $url['end'];

    save and upload.

    Powered by Tutorials 1.4.1 © 2012, by Michael McCune