PDA

View Full Version : Custom profile numbering


mmoore5553
05-15-2009, 10:23 PM
I remember i found long time ago how to convert the numeric numbers to what i could use in my post ...i forgot that chart

<if condition="$post['field10'] & 2">
$comma <img src="" border="0" alt="User"></if>

<if condition="$post['field10'] & 4">
$comma <img src="http://cg-hq.com/max.png" border="0" alt="User"></if>

<if condition="$post['field10'] & 8">
$comma <img src="" border="0" alt="User"></if>


i know there is a whole chart with those variables listed. Can anyone help in getting the list ..thanks in advance. I highlight the numbers in red . Those are what i am needing.

--------------- Added 1242431785 at 1242431785 ---------------

i found it ..here it is


option 1 = 2^0 = 1
option 2 = 2^1 = 2
option 3 = 2^2 = 4
option 4 = 2^3 = 8
option 5 = 2^4 = 16
option 6 = 2^5 = 32
option 7 = 2^6 = 64
option 8 = 2^7 = 128
etc...

Dismounted
05-16-2009, 05:22 AM
They are called bitfields. There is an article written here about their use in vBulletin.

mmoore5553
05-16-2009, 11:08 AM
Thanks dismounted. i did not know what they were called. I am looking up more info now but got what i needed done.