the dropdown - no, you can not use neither HTML nor BBCode
as of subcategories, in includes/functions.php find: $sub_cat_list .= "<a href=\"".$sub_url."\" class=\"subcat\">".$cat_cache[$subcat_id]['cat_name']."</a>";
Replace with: $sub_cat_list .= "<a href=\"".$sub_url."\" class=\"subcat\">".format_text($cat_cache[$subcat_id]['cat_name'], 0, 0, 1)."</a>";
For the clickstream find: $path = "<a href=\"".$site_sess->url($cat_url)."\" class=\"clickstream\">".$cat_cache[$cat_id]['cat_name']."</a>";
}
else {
$path = $cat_cache[$cat_id]['cat_name'];
}
}
else {
$path = "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id)."\" class=\"clickstream\">".format_text($cat_cache[$cat_id]['cat_name'], 0, 0, 1)."</a>".$config['category_separator'].$path;
Replace with: $path = "<a href=\"".$site_sess->url($cat_url)."\" class=\"clickstream\">".format_text($cat_cache[$cat_id]['cat_name'], 0, 0, 1)."</a>";
}
else {
$path = $cat_cache[$cat_id]['cat_name'];
}
}
else {
$path = "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id)."\" class=\"clickstream\">".format_text($cat_cache[$cat_id]['cat_name'], 0, 0, 1)."</a>".$config['category_separator'].$path;
Now, lets try to remove any bbcode tags from text.
At the end of functions.php above closing ?> insert:function remove_bbcode($text)
{
$search_array = array(
"/(\[)(list)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/list)(((=)(\\4)([^\"']*)(\\4]))|(\]))/siU",
"/(\[)(list)(])(.*)(\[\/list\])/siU",
"/(\[\*\])/siU",
"/(\[\/\*\])/siU",
"/(\[)(url)(=)(['\"]?)(www\.)([^\"']*)(\\4])(.*)(\[\/url\])/siU",
"/(\[)(url)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/url\])/siU",
"/(\[)(url)(])(www\.)([^\"]*)(\[\/url\])/siU",
"/(\[)(url)(])([^\"]*)(\[\/url\])/siU",
"/(\[)(code)(])(\r\n)*(.*)(\[\/code\])/siU",
"/(\[)(img)(])(\r\n)*([^\"]*)(\[\/img\])/siU",
"/(\[)(b|i|u)(])(\r\n)*([^\"]*)(\[\/\\2\])/siU",
);
$replace_array = array(
"\\7",
"\\4",
"",
"",
"\\8",//[url=addr]text[/url] the addr will be lost only text will stay
"\\7",
"\\5",
"\\4",
"\\5",
"\\5",
"\\5",
);
$text = preg_replace($search_array, $replace_array, $text);
return $text;
}
(this will only remove default bbcode)
And finaly find: $category_list .= ">".str_repeat("--", $depth - 1)." ".$cat_cache[$category_id]['cat_name']."</option>\n";
}
else {
$category_list .= ">".$cat_cache[$category_id]['cat_name']."</option>\n";
Replace with: $category_list .= ">".str_repeat("--", $depth - 1)." ".remove_bbcode($cat_cache[$category_id]['cat_name'])."</option>\n";
}
else {
$category_list .= ">".remove_bbcode($cat_cache[$category_id]['cat_name'])."</option>\n";
P.S. all this I typed in the browser and did not test it...might not work...