There may be some way to do it with template conditionals but I think it would be difficult. The thing to do is use a plugin to calculate the file names:
PHP Code:
$userid = $vbulletin->userinfo['userid'];
$images = array();
while ($userid > 0)
{
$images[] = $userid % 10 . '.png';
$userid = intval($userid / 10);
}
$images = array_reverse($images);
vB_Template::preRegister('FORUMHOME', array('images' => $images));
and then in the template, something like:
Code:
<vb:each from="images" value="image">
<img src="newartwork/numbers/{vb:raw image}">
</vb:each>