News:

cpg1.5.46 Security release - upgrade mandatory!The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.[more]

AuthorTopic: Plugin: Filetype editor (Read 79620 times)

Nibbler

This plugin provides the admin with an easy to use interface to Coppermine's filetypes table, avoiding the need to use phpmyadmin. You can add, edit and delete file types and set the default player for each type of file.

This plugin provides the admin with an easy to use interface to Coppermine's filetypes table, avoiding the need to use phpmyadmin. You can add, edit and delete file types and set the default player for each type of file.

Hi there. Just found the link to this plugin which I have been needing to upload file types other than those that are listed. How do you use this plugin? I see there are 3 files that are in the .zip, now where should they be put on the server and how are they accessed? Thanks.

This plugin wasn't working for me. On the edit form it would print <?=$presel_extension?> instead of the extension since I don't allow the short form of the tags. For portability, shouldn't this be long form, as in <?php echo $presel_extension?> There are 5 of the short form tags in editor.php. I changed these and now I'm happy.

I have the short form tags disabled on my servers for various reasons. I just thought I would point it out because the main core of coppermine doesn't use short tags and I figured it would be good if plugins followed the same conventions.

no, you didn't get a negative karma rating for your reply (at least not from me). Please avoid meta-discussion (about karma stuff etc.), especially on this particular thread, as it should deal with the plugin only, we're keen on not having too much thread drift here. As I suggested: your reply goes noted and the short tags will eventually be replaced by the proper long ones at some later stage.

This post began as a support request. I couldn't figure out how to actually use this plugin. I followed all the rules:

- I couldn't get a .mp4 file I uploaded to work, so I searched the forums for a solution until I found this thread.- I followed the instructions on how to install the plugin. - I read Coppermine's documentation: "we can't give any recommendations within this documentation...usually, plugins that require you to edit or configure anything come with a README file that tells you how to do so." There was no readme when I extracted the zip file.- I read the FAQ thread: "Follow any setup instructions provided by the plugin's installer." When I installed the plugin from pluginmgr.php, I got no follow-up instructions on how to use or configure the plugin.- I tried navigating to each of the included .php pages. configuration.php loaded a blank page, codebase.php gave me a page with the text "Not in Coppermine...", and editor.php gave me this error:

Warning: main(include/init.inc.php) [function.main]: failed to open stream: No such file or directory in /data/[...]/coppermine/plugins/filetypes_editor/editor.php on line 3

- I searched the support forums, with the internal search engine and an external one, but found nothing about how to make use of the plugin.

- Finally, after I registered on these forums and was about to ask for help, I realized...

This plugin creates a new button at the top of your coppermine gallery page called "filetypes". Click this button to actually make use of this plugin.

Perhaps the author considered this obvious, but it wasn't for me; I expected to see this fact documented somewhere. I'm posting the information now in hopes of helping the next person with the same problem.

Hi, thanks for really great plugin. It seems to work just fine with some extensions. I successfully added .kml, .gpx and .plt (Ozi Explorer track). However, I ran into two problems recently. I tried to add .kmz file and .wpt (Ozi Explorer waypoint file) and even though the mimetype is correct (, it is set to "document" (once I forgot and left it for image - no wander it does not work then) and "no plazer" and everything seemed to be ok. When I tried to batch add uploaded .kmz, I got PB error (it works fine with .kml). Attributes of directory the file is in is set to "777". I even tried to edit and to delete the extension and create it again, but it didn't help. Does anybody know where might be the problem? I would be really thankfull for help.

Sorry, I put the question in a wrong thread. However I thought it somehow might be connected with the plugin for following reasons:- I made the same mistake with two different filetypes - .kmz and .wpt. I set them independently not to "document" but to "image" and saved them.- they both make the same error - they upload, but are no added to gallery- the files which have never been set to "image" are working perfectly

I appologise, if I'm still mistaken and it really does not relate to the plugin.

PS> does your previous answer mean you already posted the required information (i couldn§§ find it) or should I ask question in upload support board?

and I have forgotten - when I try to edit these .kml and .wpt files - the fields "file extension" and "mime type" are empty (even though the should not be) and the image type is set to "image", even though it was re-set to "document" several times. In the table with all the files it appears to be all right. These both files have been once set to "image", which might have caused the problem.