I thought of that, but I need this field to show in the profiles. It seems redundant to have them fill the information out twice.
I tried to look at the coding on the birthday/age field. There is an option on what of that to display or hide. So I thought I could possibly do it with this as well. I am not a coder, so I am sorry if this seems a bit dense. lol
What I meant was, you can still change the existing fields you already have to an optional setting, and that way users who don't want it showing can, er, "unfill" the option in their User CP.
Then you can add an if conditional like if condition="$post[fieldX]" around the code, where X is the field ID. That way, if they fill it out, it shows, if they don't it doesn't.
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.
Took me a while to get around to this. I updated my Regions folder with what I believe to be the correct names and spellings and capitalization. Thought I'd share it with you. Note, your users will have to reselect their flag, and until they do, a broken image will show up. I just went ahead and grouped them altogether.
This should work on any version of vB you have. It's just a template modification. For those having trouble with it, make sure your adding the modifications to the right template. Some of you are using postbit and some of you are using postbit_legacy. If you do the modification to one template, and your forum isn't using that layout, then, naturally, it's not going to show up.
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:
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.
I've just been informed by one of my members that there's one incorrect flag in your update, Digital Jedi (and also presumably in the original hack too).