How to extend - class XenForo_ViewPublic_Attachment_View

The way you described the setting, it won't work. He would need to do several explode's and splits to build up the $extensions array in renderRaw since stings are stored as strings by default.
 
You could use a PHP Callback like XenForo _Option_CensorWords :: renderOption in setting admin.php?options/list/censoringOptions. It uses the acp template option_template_censorWords which you can find at admin.php?admin-templates

The addon settings could be placed below "Allowed Attachment File Extensions" in admin.php?options/list/attachments.
 
The addon is perfect for release. One suggestion and you could learn something with it, too (but it would not help the purpose of this addon).

Thank you for checking the Add-on, Marcus. I'll publish it to Resources today.

Also thank you for showing the possibilities of improving an Add-on, adding ACP inputs for other extensions and header information is a great idea. Perhaps if there is enough demand for such an Add-on I can tackle that with your help of course.
 
Top Bottom