I am trying to display my news topics on my homepage, and I get the topics to display but it has all the color tags and size tags etc, how do i display this properly?
example {'SIZE=48']text[/SIZE']
I am collecting the topics in a php file and passing the information to a template to render it like this.
rawtext is the text from the text['rawtext'] db.
self::$PostContent[$newscount] .= $NewsContent['rawtext'];
$templater->register('content', self::$PostContent[$ID] );
echo $templater->render();
inside the template i just add this line to draw the content.
{vb:raw content}
also seems i have to echo the template render to get it to draw within a php widget, is there another way to do this?
Thanks.
nvm I solved it with the vB_BbCodeParser->do_parse( texthere );
example {'SIZE=48']text[/SIZE']
I am collecting the topics in a php file and passing the information to a template to render it like this.
rawtext is the text from the text['rawtext'] db.
self::$PostContent[$newscount] .= $NewsContent['rawtext'];
$templater->register('content', self::$PostContent[$ID] );
echo $templater->render();
inside the template i just add this line to draw the content.
{vb:raw content}
also seems i have to echo the template render to get it to draw within a php widget, is there another way to do this?
Thanks.
nvm I solved it with the vB_BbCodeParser->do_parse( texthere );