The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
USer Profile Fields
On my Options page i have a group of check boxes for field8. I know if i did it seperately i could just put <if condition="$post[field5]"> $post[field5] </if> but how do i get the value of each check box inside field8?
Regards, Nick. |
#2
|
||||
|
||||
Hi Rogersnm,
If I am understanding you, this is not unlike the optional thread preview mod. Take a look at this and see if it helps you: https://vborg.vbsupport.ru/showthread.php?t=83225 If I misunderstood, please clarify what you are looking to accomplish. |
#3
|
|||
|
|||
I mean. I have just made field 8 and i made it a multi-option checkboxes. It has 8 checkboxes so i wanted to know what the if would be to use them eg. would it be:
Option 1:<if condition="$post[fieldx]=='1'"> Option 2:<if condition="$post[fieldx]=='2'"> Option 3:<if condition="$post[fieldx]=='4'"> Option 4:<if condition="$post[fieldx]=='8'"> Option 5:<if condition="$post[fieldx]=='16'"> Option 6:<if condition="$post[fieldx]=='32'"> Option 7:<if condition="$post[fieldx]=='64'"> Option 8:<if condition="$post[fieldx]=='128'"> |
#4
|
|||
|
|||
Better use "&&" instead of "==", and no quoting the numeric constants.
|
#5
|
|||
|
|||
so <if condition="$post[fieldx]&&1">?
|
#6
|
|||
|
|||
Sorry, my mistake, should be a single &:
HTML Code:
<if condition="$post[field5] & 1">Option 1 selected<else />Option 1 not selected</if> <if condition="$post[field5] & 2">Option 2 selected<else />Option 2 not selected</if> <if condition="$post[field5] & 4">Option 3 selected<else />Option 3 not selected</if> |
#7
|
|||
|
|||
ok, so i have that around the user info in the postbit but it only does it for my user, eg. in the postbit of one of my posts it just has my username. For everyone else posts it has all there info. Any ideas?
ps. this is a bit of my postbit: PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|