Topic: BBcode with Size and Color
HeLLo
I wlould know what is the code for have BBcode with Size and Color when we post a message.
ThX
n3Twork
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → BBcode with Size and Color
HeLLo
I wlould know what is the code for have BBcode with Size and Color when we post a message.
ThX
n3Twork
there is a color codes
but hey, extensive using size of codes by some kind of users will make messages annoyable.
There is a link to bbcode help beneath the text entry areas on this page and the post reply/post new topic pages
I just want the code has to integrate to be able to put the colour and cut it with list:)
// Do the more complex BBCodes (and strip excessive whitespace)
$a = array( '#\[url=(.*?)\]\s*#i',
'#\[url\]\s*#i',
'#\s*\[/url\]#i',
'#\[email=(.*?)\]\s*#i',
'#\[email\]\s*#i',
'#\s*\[/email\]#i',
'#\[size=(.*?)\]\s*#i',
'#\[size\]\s*#i',
'#\[img\]\s*(.*?)\s*\[/img\]#is',
'#\[colou?r=(.*?)\](.*?)\[/colou?r\]#is');
$b = array( '[url=$1]',
'',
'',
'[email=$1]',
'',
'',
'[size=$1]$2',
'[/size]',
'[img]$1[/img]',
'[color=$1]$2[/color]');
****
$pattern = array('#\[b\](.*?)\[/b\]#s',
'#\[i\](.*?)\[/i\]#s',
'#\[u\](.*?)\[/u\]#s',
'#\[url\](.*?)\[/url\]#e',
'#\[url=(.*?)\](.*?)\[/url\]#e',
'#\[email\](.*?)\[/email\]#',
'#\[email=(.*?)\](.*?)\[/email\]#',
'#\[size=(.*?)\](.*?)\[/size\]#s',
'#\[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>',
'<font size="$1">$2</font>',
'<span style="color: $1">$2</span>');
Code for the post.php ???
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → BBcode with Size and Color
Powered by PunBB, supported by Informer Technologies, Inc.