//########### CLICKABLE LINK HACK ########### require_once(DIR . '/includes/functions_newpost.php'); $code = convert_url_to_bbcode($code); $n = preg_match_all('#\[url\].*\[/url\]#U', $code, $matches); foreach($matches[0] AS $match) { $string = str_replace('[url]', '', $match); $string = str_replace('[/url]', '', $string); $html_url = '<a href="' . $string . '" target="_blank">' . $string . '</a>'; $code = str_replace($match, $html_url, $code); } //########## /CLICKABLE LINK HACK ###########