The code to edit heading and tags isn't anywhere. If you can edit the post, you can edit those fields; if you cannot edit the post you cannot edit those fields. (In other words, no code exists in phpBB, in the tags extension, or in the topic descriptions extension to distinguish editablity of tags or description, or heading/title, from the post body; it's all just "the post").
You seem not to like my original wording choices, but what I said remains true: this is going to involve effectively duplicating the results of a particular permission ("you have the ability to edit the post") then restrain the functionality of that variant of the permission by specifically relating it to an ID-identified DOM element (the main body of the post) and ruling that field out of the editability.
Code-wise, that last part might actually be as simple as using PHP or JS to change that `textarea` to have the `readonly` attribute (simpler than applying CSS `pointer-events: none;`, which requires more code).
The part I've not figured out yet is how to get such PHP or JS applied or not depending on a particular permission being set, after a permission check has already been done to permit the user to edit the post at all in the first place. Someone here probably already knows this stuff well, and has a "Just do X, then Y, then Z" sort of answer.
You seem not to like my original wording choices, but what I said remains true: this is going to involve effectively duplicating the results of a particular permission ("you have the ability to edit the post") then restrain the functionality of that variant of the permission by specifically relating it to an ID-identified DOM element (the main body of the post) and ruling that field out of the editability.
Code-wise, that last part might actually be as simple as using PHP or JS to change that `textarea` to have the `readonly` attribute (simpler than applying CSS `pointer-events: none;`, which requires more code).
The part I've not figured out yet is how to get such PHP or JS applied or not depending on a particular permission being set, after a permission check has already been done to permit the user to edit the post at all in the first place. Someone here probably already knows this stuff well, and has a "Just do X, then Y, then Z" sort of answer.
Statistics: Posted by SMcCandlish — Fri Feb 21, 2025 12:52 am