waylandprod
08-27-2011, 09:25 PM
I'm working on a special configuration of our forum and running into a real pickle to figure out. My goal is to break down the user ID into individual numbers for PNG files. In other words user ID 183 would display 1.png, 8.png, 3.png.
https://vborg.vbsupport.ru/external/2011/08/16.pnghttps://vborg.vbsupport.ru/external/2011/08/17.pnghttps://vborg.vbsupport.ru/external/2011/08/18.png
I'm not sure how to set an if condition that would break down the Userid into those types of digits to be displayed and have it work for users 1 to 10,000.
I included a little bit of code that I was toying with, and I understand it doesn't work, but I was still trying.
UserID:
{vb:raw bbuserinfo.userid}
<img src="newartwork/numbers/3.png">
<vb:if condition="$bbuserinfo.userid == 1">
<img src="newartwork/numbers/1.png">
</vb:if>
https://vborg.vbsupport.ru/external/2011/08/16.pnghttps://vborg.vbsupport.ru/external/2011/08/17.pnghttps://vborg.vbsupport.ru/external/2011/08/18.png
I'm not sure how to set an if condition that would break down the Userid into those types of digits to be displayed and have it work for users 1 to 10,000.
I included a little bit of code that I was toying with, and I understand it doesn't work, but I was still trying.
UserID:
{vb:raw bbuserinfo.userid}
<img src="newartwork/numbers/3.png">
<vb:if condition="$bbuserinfo.userid == 1">
<img src="newartwork/numbers/1.png">
</vb:if>