Quote:
Originally Posted by kh99
Sorry, there were a few other problems. I fixed my post above.
If you'd rather do it in a plugin, you could figure out which file name you want to use and register it to the template. Then you would just need to use a template variable in the img src="", like
Plugin:
Code:
$file = '/images/ranks/' . $bbuserinfo['field5'];
vB_Template::preRegister('template_name', array('userbar_color' => $file));
Template:
Code:
<vb:if condition="is_member_of($bbuserinfo, 6)">
<img src="{vb:raw userbar_color}">
</vb:if>
But there's really no difference either way.
|
After a few edits and combinations of both our codes. Finally got it working. Thanks again.