Added support of smarty-like syntax
Dropped error checking support in bbcode