MyBB Hacks

Full Version: Field no accessable to specific groups, default value not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

I would like to add a custom thread field that is only editable by certain user groups. If a group without access creates a thread in a forum using that field, it should not see it (works) and the default value should be applied (does not work). The field is a listbox. If a group with access creates a new thread, the default value is selected, if a group without access creates a new thread, it does not select that value (as stated already).

Is there any possibility to fix this? Or any possibility for a fix? Is this even possible or are there certain complications?

Anyways, thank you very much for that plugin. It REALLY makes a huge difference.
Nvm using the blank replacement value. Seems more like a workaround to me, but it works.
From memory, the default value only affects the thread create page (i.e. what is shown to the creator as default).  It doesn't actually affect the underlying value.
If the user cannot edit the field, the default won't have any effect as they are not allowed to set a value at all (even the default).  Yeah, it's a bit confusing, but using the Blank Replacement value is actually the intended way to handle it.
Reference URL's