Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- You can check the includes\bbcode.php file, look for
- function bbcode_second_pass_code($type, $code)
- Add the following line after the three lines starting with $code:
- $code = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([-\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1">$1</a>', $code);
Advertisement
Add Comment
Please, Sign In to add comment