The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Questions why this happen when i adding a new Profile Field ?
Hello
I have add many Profile Field .. just when i add one called "I am here for: " i get some problem when try to select one of the options is avalible Here is the info of the profile Field ============== I am here for: -- Multiple-Selection Menu -Serious Relationships -Friends -Networking -Dating ============== and in the template memberinfo i add this Quote:
any idea why this happen ? Thankyou |
#2
|
||||
|
||||
Instead of:
Code:
<if condition="$userinfo[field15]"> Code:
<if condition="$show['field15']"> or <if condition="$post['field15']"> |
#3
|
|||
|
|||
i try the above code and it dont show me at all the profile field .
i have created many of them and all is working just fine just this one here is the example of the code i have HTML Code:
<TABLE align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="348"> <TR> <TD class="thead" COLSPAN=2 width="342">$userinfo[username]'s Details</TD> </TR> <tr> <if condition="$userinfo[field20]"> <TD width="133" valign="top" class="alt1"><strong>Real Name:</strong></TD> <TD width="205" valign="top" class="alt1">$post[field20]</if></TD> </tr> <tr> <if condition="$userinfo[field8]"> <TD width="133" valign="top" class="alt1"><strong>Gender:</strong></TD> <TD width="205" valign="top" class="alt1">$post[field8]</if></TD> </tr> <tr> <if condition="$userinfo[field11]"> <TD width="133" valign="top" class="alt1"><strong>Home Country:</strong></TD> <TD width="205" valign="top" class="alt1">$post[field11]</if></TD> </tr> <tr> <if condition="$userinfo[field16]"> <TD width="133" valign="top" class="alt1"><strong>Ethnicity:</strong></TD> <TD width="205" valign="top" class="alt1">$post[field16]</if></TD> </tr> <tr> <if condition="$userinfo[field17]"> <TD width="133" valign="top" class="alt1"><strong>Marital Status:</strong></TD> <TD width="205" valign="top" class="alt1">$post[field17]</if></TD> </tr> <tr> <if condition="$userinfo[field15]"> <TD width="133" valign="top" class="alt1"><strong>I am here for:</strong></TD> <TD width="205" valign="top" class="alt1">$post[field15]</if></TD> </tr> <tr> <if condition="$userinfo[field29]"> <TD width="133" valign="top" class="alt1"><strong>Orientation:</strong></TD> <TD width="205" valign="top" class="alt1">$post[field29]</if></TD> </tr> <tr> <if condition="$userinfo[field2]"> <TD width="133" valign="top" class="alt1"><strong>Hometown:</strong></TD> <TD width="205" valign="top" class="alt1">$post[field2]</if></TD> </tr> <tr> <if condition="$show['zodiacsign']"> <TD width="133" valign="top" class="alt1"><strong>Zodiac Sign:</strong></TD> <TD width="205" valign="top" class="alt1">$zodiacsign</if></TD> </tr> <tr> <if condition="$userinfo[field30]"> <TD width="133" valign="top" class="alt1"><strong>Smoke / Drink:</strong></TD> <TD width="205" valign="top" class="alt1">$post[field30] / $post[field31]</if></TD> </tr> <tr> <if condition="$userinfo[field18]"> <TD width="133" valign="top" class="alt1"><strong>Education:</strong></TD> <TD width="205" valign="top" class="alt1">$post[field18]</if></TD> </tr> <tr> </TABLE> Hopefully there is away to fix it .. Thankyou |
#4
|
||||
|
||||
You may find the answer in this thread posted by Steve Machol (post #2 and #3).
|
#5
|
|||
|
|||
Hello
thankyou for that thread it was very usefull.. but it seem to me i dont understand it here what i try Code:
<if condition="$comma = ''"></if> <if condition="$userinfo[field15] & 1"> <TD width="133" valign="top" class="alt1"><strong>I am here for:</strong></TD> <TD width="205" valign="top" class="alt1">$post[field15]$comma<if condition="$comma = ', '"></if></if></TD> </tr> <tr> Code:
<if condition="$comma = ''"></if> <if condition="$userinfo[field15] & 1"> <TD width="133" valign="top" class="alt1"><strong>I am here for:</strong></TD> <TD width="205" valign="top" class="alt1">$post[field15]<if condition="$comma = ', '"></if></if></TD> </tr> <tr> i try to do this way and it dont work .. any idea :surprised: |
#6
|
||||
|
||||
From what I've gathered you'll have to manually translate each option accordingly. Placing $post[field15] will only show the "binary" number. So there will be a bit of work if you have a lot of selections.
If for example you want to show the 4 options, "Serious Relationships", "Friends", "Networking" and "Dating" you'll need to set a conditional for each. Such as: Code:
<if condition="$post['field15'] & 1"> Serious Relationships </if> <if condition="$post['field15'] & 2"> Friends </if> <if condition="$post['field15'] & 4"> Networking </if> <if condition="$post['field15'] & 8"> Dating </if> And so forth... 1 = Option 1 (Serious Relationships) 2 = Option 2 (Friends) 4 = Option 3 (Networking) 8 = Option 4 (Dating) So options 5 would be "16" and option 6 would be "32". In post #3 the $comma is only if you want a comma placed after each selection when you allow multiple selections. I hope that I've explained it properly. |
#7
|
|||
|
|||
Thanks alot that work fine
there is just a small error know when i try to add the code like this.. Code:
<if condition="$userinfo[field15]"> <TD width="133" valign="top" class="alt1"><strong>I am here for:</strong></TD> <TD width="205" valign="top" class="alt1"><if condition="$post['field15'] & 8">Dating </if><if condition="$post['field15'] & 4">Networking</if><if condition="$post['field15'] & 2">Friends</if><if condition="$post['field15'] & 1">Serious Relationships</if></if></TD> </tr> <tr> Quote:
thanks alot for help |
#8
|
||||
|
||||
Yeah. You'll need to add the $comma to separate each selection. It's not that much of an edit but you'll probably want to replace what you have with:
Code:
<if condition="$comma = ''"></if> <if condition="$post['field15'] & 1"> $comma Serious Relationships <if condition="$comma = ', '"></if> </if> <if condition="$post['field15'] & 2"> $comma Friends <if condition="$comma = ', '"></if> </if> <if condition="$post['field15'] & 4"> $comma Networking <if condition="$comma = ', '"></if> </if> <if condition="$post['field15'] & 8"> $comma Dating <if condition="$comma = ', '"></if> </if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|