I want to display users ICQ/Jabber accounts under their avatar. Can you give me a modification for viewtopic.php? I don't know PHP at all
2 2005-04-12 14:33
Re: BBcode : align (16 replies, posted in PunBB 1.2 troubleshooting)
okparanoid wrote:
I found in the source of punbb the function to deal with the bbcode, here is an extract :
$pattern = array('#\[b\](.*?)\[/b\]#s', '#\[i\](.*?)\[/i\]#s', '#\[u\](.*?)\[/u\]#s', '#\[url\](.*?)\[/url\]#e', '#\[url=(.*?)\](.*?)\[/url\]#e', '#\[email\](.*?)\[/email\]#', '#\[email=(.*?)\](.*?)\[/email\]#', '#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s'); $replace = array('<strong>$1</strong>', '<em>$1</em>', '<span class="bbu">$1</span>', 'handle_url_tag(\'$1\')', 'handle_url_tag(\'$1\', \'$2\')', '<a href="mailto:$1">$1</a>', '<a href="mailto:$1">$2</a>', '<span style="color: $1">$2</span>'); // This thing takes a while! :) $text = preg_replace($pattern, $replace, $text);
Where is that function located? I can't find it