| Re: Trying to add a mimetype in mydownloads (2.1) for StarOffice files |
| by phillipd on 2004/5/7 21:04:09 Fixed it, I discovered there are two arrays in xoops_version.php. I added it to the second array and the new mimetype now appears in the "Preferences list" and the file can now be uploaded. In the next version will there be a mechanism to add mime types? Also, while I have your ear, it seems like you have to do alot of "clicking" to get to a download. When you click the "Downloads" button on the main menu, you don't see any available downloads. Even clicking all the letters 0 - 9 and a - z. Only when clicking the "popular" link, which is not intuitively obvious, do any downloads appear. Perhaps I don't understand the "flow" of downloads but it seems a little difficult to find files... I would be happy to discuss this more at youe convenience. Once again, thankyou for a great module, and your development time! Regards Doug P |
| Re: Trying to add a mimetype in mydownloads (2.1) for StarOffice files |
| by phillipd on 2004/5/7 19:56:00 I added "sxw" => "application/vnd.sun.xml.writer", to the top of the array in class/mimetype.php. Then added: "application/vnd.sun.xml.writer" => "sxw", to the top of the array in xoops_version.php Updated the module. The new type did NOT appear in the output when the module was added. It does not appear in the list of types, nor does it allow me to upload the sxw mimetype file. I don't understand the mechanism. If the files are used to fill out the database, why doesn't the new type get added? Is there some other location that need be modified? Doug P |
| Re: Trying to add a mimetype in mydownloads (2.1) for StarOffice files |
| by Catzwolf on 2004/5/7 18:41:15 Quote:
Sorry, Open xoops_version.php and you will find another array that defines the mimetypes to be used, add your new mimetype there as well as the mimetypes.php in class and then update the module. You should not be able to choose and use this new one. ATB Catz |
| Re: Trying to add a mimetype in mydownloads (2.1) for StarOffice files |
| by phillipd on 2004/5/7 17:24:24 I'm sorry to be so persistant, but do you have an answer for my question??? Should adding a mimetype to the mimetype.php work? Is that the proper way to do it??? If not, what is the correct method? Please be verbose and specific. Thanks for a great module Doug P |
| Re: Trying to add a mimetype in mydownloads (2.1) for StarOffice files |
| by phillipd on 2004/5/6 17:42:31 I'm sorry, I guess I don't understand. I thought thats what i did. I added the mime type to the mimetype.php file in the class directory. Could you be a little more specific please? Regards Doug P |