druid
Пользователь
Открываем includes/bbcode.php
Находим
ниже вставляем
находим
ниже вставляем
Пример использования приведен ниже на скриншоте
Находим
PHP:
"#\[email\]($email_exp)\[/email\]#isu" => '<a href="mailto:$1">$1</a>',
ниже вставляем
PHP:
"#\[table color=(\#[0-9A-F]{6}|[a-z]+)\]#isu" => '<table align="top" cellpadding="2" cellspacing="0" bgcolor="$1">',
"#\[table border=([1-2]?[0-9])\]#isu" => '<table align="top" cellpadding="2" cellspacing="0" bgcolor="#FFFFFF" border="$1">',
"#\[table color=(\#[0-9A-F]{6}|[a-z]+) border=([1-2]?[0-9])\]#isu" => '<table align="top" cellpadding="2" cellspacing="0" style="background-color:$1" border="$2">',
"#\[table border=([1-2]?[0-9]) color=(\#[0-9A-F]{6}|[a-z]+)\]#isu" => '<table align="top" cellpadding="2" cellspacing="0" style="fontbackground-color:$2" border="$1">',
"#\[mrow color=(\#[0-9A-F]{6}|[a-z]+)\]#isu" => '</td></tr><tr><td style="font-weight: bold; text-align: center; background-color:$1;">',
"#\[mrow fontsize=([1-2]?[0-9])\]#isu" => '</td></tr><tr><td style="font-weight: bold; text-align: center; font-size: $1px;">',
"#\[mrow color=(\#[0-9A-F]{6}|[a-z]+) fontsize=([1-2]?[0-9])\]#isu" => '</td></tr><tr><td style="font-weight: bold; text-align: center;font-size: $2px; background-color:$1;">',
"#\[mrow fontsize=([1-2]?[0-9]) color=(\#[0-9A-F]{6}|[a-z]+)\]#isu" => '</td></tr><tr><td style="font-weight: bold; text-align: center;font-size: $1px; background-color:$2;">',
"#\[mcol color=(\#[0-9A-F]{6}|[a-z]+)\]#isu" => '</td><td style="font-weight: bold; text-align: center; background-color:$1;">',
"#\[mcol fontsize=([1-2]?[0-9])\]#isu" => '</td><td style="font-size: $1px; font-weight: bold; text-align: center;">',
"#\[mcol color=(\#[0-9A-F]{6}|[a-z]+) fontsize=([1-2]?[0-9])\]#isu" => '</td><td style="font-size: $2px; font-weight: bold; text-align: center; background-color:$1;">',
"#\[mcol fontsize=([1-2]?[0-9]) color=(\#[0-9A-F]{6}|[a-z]+)\]#isu" => '</td><td style="font-size: $1px; font-weight: bold; text-align: center; background-color:$2;">',
"#\[row color=(\#[0-9A-F]{6}|[a-z]+)\]#isu" => '</td></tr><tr><td style="background-color:$1;">',
"#\[row fontsize=([1-2]?[0-9])\]#isu" => '</td></tr><tr><td style="font-size: $2px; background-color:$1;">',
"#\[row color=(\#[0-9A-F]{6}|[a-z]+) fontsize=([1-2]?[0-9])\]#isu" => '</td></tr><tr><td style="font-size: $2px; background-color:$1;">',
"#\[row fontsize=([1-2]?[0-9]) color=(\#[0-9A-F]{6}|[a-z]+)\]#isu" => '</td></tr><tr><td style="font-size: $1px; background-color:$2;">',
"#\[col color=(\#[0-9A-F]{6}|[a-z]+)\]#isu" => '</td><td style="background-color:$1;">',
"#\[col fontsize=([1-2]?[0-9])\]#isu" => '</td><td style="font-size: $1px">',
"#\[col color=(\#[0-9A-F]{6}|[a-z]+) fontsize=([1-2]?[0-9])\]#isu" => '</td><td style="font-size: $2px;background-color:$1;">',
"#\[col fontsize=([1-2]?[0-9]) color=(\#[0-9A-F]{6}|[a-z]+)\]#isu" => '</td><td style="font-size: $1px;background-color:$2;">',
находим
PHP:
'[clear]' => '<div class="clear"> </div>',
ниже вставляем
PHP:
'[/table]' => '</td></tr></table>',
'[table]' => '<table align="top" cellpadding="2" cellspacing="0" class="postbody" border="1" bgcolor="#FFFFFF">',
'[mrow]' => '</td></tr><tr><td style="font-weight: bold; text-align: center;">',
'[mcol]' => '</td><td style="font-weight: bold; text-align: center;">',
'[row]' => '</td></tr><tr><td>',
'[col]' => '</td><td>',
Пример использования приведен ниже на скриншоте