1
nmshah
Mastop publish module and mimetypes
  • 2009/2/2 12:21

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


Is there a way to add an mimetype in the mastop publish module to allow the upload of .pps files in its file manager.

2
nmshah
Re: Mastop publish module and mimetypes
  • 2009/2/2 12:56

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


The code for selecting the mime type allowed for upload in mastop publish file-manager is contained in
/modules/mastop_publish/xoops_version.php line 226 to 234
Quote:

$modversion['config'][17]['name'] = 'mpu_conf_mimetypes';
$modversion['config'][17]['title'] = 'MPU_MOD_MIMETYPES';
$modversion['config'][17]['description'] = 'MPU_MOD_MIMETYPES_DESC';
$modversion['config'][17]['formtype'] = 'select_multi';
$modversion['config'][17]['valuetype'] = 'array';
$modversion['config'][17]['options'] = include( XOOPS_ROOT_PATH . '/class/mimetypes.inc.php' );
ksort($modversion['config'][17]['options']);
reset($modversion['config'][17]['options']);
$modversion['config'][17]['default'] = array("application/x-gtar","application/x-tar","application/x-gzip","application/msword", "application/pdf", "application/vnd.ms-excel", "application/vnd.ms-excel", "application/vnd.ms-powerpoint", "application/zip");


It seems that that mimetypes allowed to be selected are included from the xoops_url/class/mimetypes.inc.php
Iadded the .pps extension in this file but its still not visible in the preferences section of the mastop publish module.

Kindly help

Login

Who's Online

340 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 340


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits