I have a need for readonly categories, that is, a category where only those with the "PERMISSION_CHANGE_APPLICATION_SETTINGS" permission can post, but everybody can read.
I have managed to hack this in, with a checkbox on the category create/edit form between the "Description" and the "Roles" stuff, and essentially, the Category is hidden from the "Select the category for this discussion" drop-down for unpriveledges users.
Its a very minor code-change, but I added a new ReadOnly column to the DB. I still need to localize the strings and use the GetDynamicCheckbox() function (IIRC) to output the checkbox instead of it being hardcoded.
I want to know how I should proceed from here to either get it included with the core vanilla distribution (as it seems to be an oft-requested and minor change) or how I can go about best extracting it into an addon with some customization to it (i.e. choosing which Roles can post in readonly categories).
Your input is appreciated :)
0 • •