Quote:
Originally Posted by ashley53680
Yes that's what I thought you meant, however they *have* to have this filled in. I just want to give them the option to show it in their postbit or not.
|
Ah, I see. Well, I just tried something on my forum, and it may work for you. Try this out if you like.
Create a new profile field with the question of whether they would like the flags to show in their profile. Make the field a multiple-selection check box, but only create
one option: "Yes". Put in the instructions to leave it blank if they don't want it to show. Make sure to make it mandatory and to put it on the same page as the flag options, show during registration, etc.
Then wrap your flag code with <div> tags and put an IF condition around the div. Sort of like so:
Code:
<if condition="$post['fieldX']">
<div>
<if condition="$post[field8]"><img src="images/flags/$post[field8].gif"></if>
<if condition="$post[field9]"><img src="images/region/$post[field9].gif"></if>
</div>
With X being the ID of the new field you just created. What will happen is the DIV wont display unless the user has filled it out: checked "Yes". And since the div wont show, the contents wont either, even if they're a mandatory field.
Hrm, maybe don't make it mandatory. It will HAVE to filled in then. Just make sure to put it on the same page.