added trigger bbcode function