You should apply that to the entire UBB.threads directory; or, if you insist on doing it per directory, it'd need to be applied to:
/images (if you want to allow uploads from the control panel)
/languages (if you want to be able to use the editor)
/styles (if you want to be able to create/manage styles)
/uploads (if you're using this directory for uploads)

I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, I Find Rocks, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!