I'm not sure that you can do that will the bb_code stuff. This is basically a RegEx pre-processor of the information stored in the database. This is then fed into the templates as just the text of the related object. So you can't use any FreeMarker code in this.. unless Freemarker has some sort of "eval" statement to process template info from data objects.
You may have to add this functionality to the BBCode class. E.g., search for an I18n function and do the replacement there. [originally posted on jforum.net by monroe]
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?