THE ORIGINAL CODE FOR TEXT IN NEWS/ANNOUCE
Code:
if($vbulletin->options['enable_lns'] AND in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['lns_ug'])))
{
$lns=array();
$lns['title']=$vbulletin->options['lns_title'];
$lns['text']=$vbulletin->options['lns_text'];
$templater=vB_Template::create('forumhome_lastest_news');
$templater->register('lns',$lns);
if($vbulletin->options['enable_lns_place'])
{
$template_hook[forumhome_above_forums].=$templater->render();
}
else
{
$template_hook[news].=$templater->render();
}
}
What I'm trying to do, is then take the
lns_text --> then parse it through the class_bbcode.php
this is so that my old Admin/Moderators can simply use BBCode as they do not quite know how to do HTML.... I'm the only one that knows how and it's a burden.
I'm by no means a web specialist, but I'm not completely stupid.
I've tried several things and just can't seem to get it to parse.
here's some dummy code, that I've tryed and failed with (bottom snippet)
*Note that I've ADDED "-->" here to illustrate my additions - the arrows are not actually in my code.
Code:
$templater=vB_Template::create('forumhome_lastest_news');
$templater->register('lns',$lns);
-->require_once('includes/class_bbcode.php');
-->$parser = new vB_BbCodeParser($vbulletin, fetch_tag_list());
-->$lns_text = $parser->do_parse($lns_text);
if($vbulletin->options['enable_lns_place'])
{
$template_hook[forumhome_above_forums].=$templater->render();
}
else
{
$template_hook[news].=$templater->render();
It's probably obvious to coders out there, but since I don't quite have a clear understanding, I'm clearly doing it wrong. Can anyone help?
Many thanks