wow man, you are just amazing.
you made my day....thanks sooooo much.
only one more request...
this code make links in code clickable only if they are posted after today.
but it does not make those links in code clickable which have been already posted.
can you do something so that the links in code that are already posted before applying this hack also become clickable ??
Quote:
Originally Posted by nerbert
Oops, I didn't test this any further than Preview. Change the hack to :
PHP Code:
//########### 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 ###########
|