Configuration

This plug-in comes with a configuration file which will enable you to configure how you want the plug-in to work.

To file can be found here: /plugins/mp3/config.php

When you open the file you will find PHP variables. Below you will find what each variable does when it is changed.

$approve = "1";
// If you want to approve the mp3's being uploaded then set this to 1, if not set it to 0

$mp3size = 5;
// The max upload size of an mp3 in MB.. Note this can't over-ride the php.ini setting.

$mp3max = 5;
// Total mp3's a user is allowed to have

$memberAllow = array ( '0', '1', '3', '4', '5', );
// The memberships ID's that are allowed to upload songs

Max Upload Limit

By default most servers have a 2MB file size limit when a user uploads something. To change the setting you can add a little something in your .htaccess file. Note, that this will only work if your host allows it which most do. If not you will have to contact your host or you will be stuck with a 2MB upload limit. Which is small if you take into consideration the normal size of an mp3 is around 5-6MB.

To over ride this setting add the following in your .htaccess file: php_value upload_max_filesize 15M

In the example above we added 15M but you can of course change this if needed. If this does not work on your server and you have a dedicated server you can modify this setting in your php.ini file.