foreach ($vbulletin->bbcodecache AS $removekey => $bbcode)
if ( $allow_custom_bbcode AND ( strpos($toolbar_template, 'quickreply') === false OR $GLOBALS['show']['phpkd_vbaqr_active'] ) AND $toolbar_template != 'editor_toolbar_off' )