Oh, I was only trying out your suggestion in a quick manner, I'm no php programmer, so I was just trying to figure out. So I added the table codes, and 'html' as well. I don't get images of course in the Config section, but I am able to select the radio buttons and save settings (although the radio buttons are not selected when I go back to the config section later).
Anyway, here is what I was doing ...
codebase.php
==========
Under function new_bbcodes:
:
:
// tables
if (!in_array('table', $bbcode_tags_disabled)) {
$text = str_replace("
", "<table>", $text); $text = str_replace(" |
", "</table>", $text);
}
if (!in_array('tr', $bbcode_tags_disabled)) {
$text = str_replace("
", "<tr>", $text); $text = str_replace(" |
", "</tr>", $text);
}
if (!in_array('th', $bbcode_tags_disabled)) {
$text = str_replace("[th]", "<th>", $text);
$text = str_replace("[/th]", "</th>", $text);
}
if (!in_array('td', $bbcode_tags_disabled)) {
$text = str_replace("
", "<td>", $text); $text = str_replace(" |
", "</td>", $text);
}
if (!in_array('html', $bbcode_tags_disabled)) {
$text = str_replace("", "<html>", $text);
$text = str_replace("", "</html>", $text);
}
:
:
function get_bbcode_tags($which) {
// available tags
$bbcode_tags_available = array(
'b', // cpg standard
'u', // cpg standard
'i', // cpg standard
's', // cpg standard
'size',
'tt',
'color', // cpg standard
'hr',
'quote',
'url', // cpg standard
'img', // cpg standard
'table',
'tr',
'th',
'td',
'html', 'youtube',
);
english.php
========
// admin.php & codebase.php
$lang_plugin_bbcode_control['b'] = 'Bold';
$lang_plugin_bbcode_control['u'] = 'Underline';
$lang_plugin_bbcode_control['i'] = 'Italic';
$lang_plugin_bbcode_control['s'] = 'Strikethrough';
$lang_plugin_bbcode_control['img'] = 'Image';
$lang_plugin_bbcode_control['url'] = 'Link';
$lang_plugin_bbcode_control['color'] = 'Font color';
$lang_plugin_bbcode_control['size'] = 'Font size';
$lang_plugin_bbcode_control['quote'] = 'Quote';
$lang_plugin_bbcode_control['youtube'] = 'Youtube video';
$lang_plugin_bbcode_control['tt'] = 'Teletype';
$lang_plugin_bbcode_control['hr'] = 'Horizontal rule';
$lang_plugin_bbcode_control['hr'] = 'Horizontal rule';
$lang_plugin_bbcode_control['hr'] = 'Horizontal rule';
$lang_plugin_bbcode_control['hr'] = 'Horizontal rule';
$lang_plugin_bbcode_control['hr'] = 'Horizontal rule';
$lang_plugin_bbcode_control['table'] = 'table';
$lang_plugin_bbcode_control['tr'] = 'tr';
$lang_plugin_bbcode_control['td'] = 'td';
$lang_plugin_bbcode_control['th'] = 'th';
$lang_plugin_bbcode_control['html'] = 'html';* by the way, the Preview button for this section of posting reply does not seem to work (alt+p also).