I am on the latest ipb and i want to automatically add code tag when a user try to post a link like http://
How can i do it please?
To auto add in code tags the links i was use for version 2.3.x this:
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'];
It was so easy but i can't find a way to do this in the new IPB 3.2..3
Thank you











