Topic: Add tag in bar.php

Hi!

I'm trying to add a tag only for admin in bar.php (pun_bbcode extension).

In parser.php, I have added the following code :

if ($forum_user['g_id'] == FORUM_ADMIN)
{
    $tags = array('mynewtag');
}

I also tryied with

$tags[] = 'mynewtag';
and $tags[] = array('mynewtag');

and, after :

$pattern[] = '#\[mynewtag\]#s';
$replace[] = '<p><em>The text displayed by [mynewtag]</em></p>';

There is no close tag, just [ mynewtag ].

But this button is invisible in my bar.php.

Do you know why ?

Thank you very much for your help.