![]() |
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> |
What template are you trying to show this in? Try $prepared[fieldx]
|
Use "$prepared['field27']" or "$userinfo['field27']" in your conditionals instead. :)
|
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> |
Which template have you put that in?
|
Sorry,
Memberinfo :) I'm worried about Quotation marks etc - never been any good at that lol |
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?
|
Here's my full code:
Code:
<div class="member_tabs<vb:if condition="$stylevar['textdirection'] == 'ltr'"> contentright</vb:if>" id="userprof_content_container"> |
Try adding this at the very top:
HTML Code:
{vb:raw userinfo.field27} |
1 Attachment(s)
Attached :)
I really do thank you for trying to help :) |
All times are GMT. The time now is 07:20 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|