1
Is it possible to turn off the option to upload attachments or can I possibly remove some code thus removing that portion of the form all together.
My ultimate goal is to NOT allow attachemnts to be uploaded by anyone, whether they are registered or not. I would feel better if I could simply remove this part of the form completely. I have looked through the code but can only find one place that could accomplish this.
file:
newbb/include/forumform.inc.php
code:
$forum_form->addElement($options_tray);
if ($forum->getVar('allow_attachments') && $topic_handler->getPermission($forum, $topic_status, 'attach')) {
$forum_form->addElement(new XoopsFormFile(_MD_ATTACHMENT, 'userfile',''));
$forum_form->addElement(new XoopsFormLabel(_MD_ALLOWED_EXTENSIONS, "".str_replace('|',' ',$forum->getVar('attach_ext')).""));
}
Would deleting this do it and the forum continue to work as it should ?