The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Profile Fields
I'm not sure how to do this in vbulletin 4.
I have a custom field that says "Show Customer Outfits?" when if selected, I want it to show images that are in the profile. If they say no, it hides the images. I've tried: Code:
<vb:if condition="$profilefield[27] != 'Yes'">Show This</vb:if> <vb:if condition="$profilefield[27] != 'No'">Show this instead</vb:if> |
#2
|
||||
|
||||
What template are you trying to show this in? Try $prepared[fieldx]
|
#3
|
||||
|
||||
Use "$prepared['field27']" or "$userinfo['field27']" in your conditionals instead.
|
#4
|
|||
|
|||
Hi Guys,
Thanks for your responses. I've tried both to no avail. Could you please take a look at this code? Code:
<vb:if condition="$prepared['field27'] != 'Yes'">Show this content</vb:if> <vb:if condition="$prepared['field27'] != 'No'">Hide the content</vb:if> |
#5
|
||||
|
||||
Which template have you put that in?
|
#6
|
|||
|
|||
Sorry,
Memberinfo I'm worried about Quotation marks etc - never been any good at that lol |
#7
|
||||
|
||||
You've used the quotes correctly...could it be that your added code is within a conditional itself that is preventing it from being rendered?
|
#8
|
|||
|
|||
Here's my full code:
Code:
<div class="member_tabs<vb:if condition="$stylevar['textdirection'] == 'ltr'"> contentright</vb:if>" id="userprof_content_container"> <div class="tabbackground" id="profile_tabs"> <br /><center><img src="http://www.secondskin.clothing/members/images/customeroutfits.png"></center><br /> <vb:if condition="$prepared['field27'] != 'Yes'"> <table style="width:100%" border="0"> <tr> <td><center><vb:if condition="$userinfo['field15']"><img src="{vb:raw userinfo.field15}" width="200" height="250"></vb:if></center></td> <td><center><vb:if condition="$userinfo['field17']"><img src="{vb:raw userinfo.field17}" width="200" height="250"></vb:if></center></td> <td><center><vb:if condition="$userinfo['field19']"><img src="{vb:raw userinfo.field19}" width="200" height="250"></vb:if></center></td> </tr> <tr> <td><br /></td> <td><br /></td> <td><br /></td> </tr> <tr> <td><center><b><vb:if condition="$userinfo['field16']">{vb:raw userinfo.field16}</vb:if></b></center></td> <td><center><b><vb:if condition="$userinfo['field18']">{vb:raw userinfo.field18}</vb:if></b></center></td> <td><center><b><vb:if condition="$userinfo['field20']">{vb:raw userinfo.field20}</vb:if></b></center></td> </tr> <tr> <td><br /></td> <td><br /></td> <td><br /></td> </tr> <tr> <td><center><vb:if condition="$userinfo['field21']"><img src="{vb:raw userinfo.field21}" width="200" height="250"></vb:if></center></td> <td><center><vb:if condition="$userinfo['field23']"><img src="{vb:raw userinfo.field23}" width="200" height="250"></vb:if></center></td> <td><center><vb:if condition="$userinfo['field25']"><img src="{vb:raw userinfo.field25}" width="200" height="250"></vb:if></center></td> </tr> <tr> <td><br /></td> <td><br /></td> <td><br /></td> </tr> <tr> <td><center><b><vb:if condition="$userinfo['field22']">{vb:raw userinfo.field22}</vb:if></b></center></td> <td><center><b><vb:if condition="$userinfo['field24']">{vb:raw userinfo.field24}</vb:if></b></center></td> <td><center><b><vb:if condition="$userinfo['field26']">{vb:raw userinfo.field26}</vb:if></b></center></td> </tr> </table> </vb:if> <vb:if condition="$prepared['field27'] != 'No'"> Show This </vb:if> |
#9
|
||||
|
||||
Try adding this at the very top:
HTML Code:
{vb:raw userinfo.field27} |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|