MyBB Hacks

Full Version: Default value for multiple checkboxes - Custom Thread Fields
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi ZingaBurga,
I'm trying to include a list of values in my postbit template, generated with a Custom Thread Field Input in newthread.

My goal is to select multiple values within checkboxes, and display in showthread both selected AND unselected values. Is this possible? I didn't find any kind of solution to this: I continue getting displayed only selected values, while I'd like to see unselected ones too. Sorry for my bad english, I'm italian: if you didn't understood something, please let me know.

THank you for your support,
Shade
There's no feature to do this unfortunately.
You could probably use a very ugly conditional to achieve something similar perhaps.
I see. It would be awesome if you will include this feature in your next XThreads' update.

Meanwhile, I managed how to do it in a mechanic and very very ugly way: I created X custom thread fields, where X is the number of options I needed to have, and set each of them to have Checkboxes, a blank replacement value and a formatting map value: it seems like a multiple checkbox, but actually it isn't, and since with a single value (Multiple value option: disabled) it displays both unselected and selected value, this solution suits my needs, but is really awful.
I really can't think of a nice way to implement it though.
If you have any ideas, feel free to put them forward.
I don't know how to do it too. With one single option, it works, while with multiple options, it doesn't, so I suppose it's just a matter of see how it handles the single option and returns both if selected or unselected, and port it to work with multiple options.
That makes no sense.
I don't know how to explain myself in a better way. I've got the idea, but I can't speak english properly to explain it to you.
Reference URL's