I have no idea what you are talking about? You want an image in your sig on here…the wordpress forums? Not gonna happen. You want to use BB code on a wordpress install? What exactly are you trying to do? And where?
I want to add [img] BBcode on my WordPress website…
I think it’s clear enough now.
Just use this:
$bb2html = str_replace('[img]', '<img class="cb-img" src="', $bb2html);
$bb2html = str_replace('[imgr]', '<img class="cb-img-right" src="', $bb2html);
$bb2html = str_replace('[imgl]', '<img class="cb-img-left" src="', $bb2html);
$bb2html = str_replace('[/img]', '" alt="an image" />', $bb2html);
You can style up the class as you like, as well as the alt and title elements. Usually this code will go into your cbparser.php plugin file.