Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Hack: ReadOnly Categories
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 :)
- Davey
0
This discussion has been closed.
Comments
Patch
~30 lines added is all it took, but like I say, it still needs to be localized.
- Davey
Was hoping someone could point me in the right direction
- Davey