Special Offers
Live Help
Skype us
Our Facebook page
Follow Us On Twitter
Our Youtube Channel
Blog


 Client Area

Email Address:

Password:

 Remember Me

Forgotten Your Password?





Subscribe now in Dimofinf Mobile and enjoy the wide range of premium services. At a very small price, you will receive our SMS text messages wherever you are! More



  Add to Favourites Print this Article
Add a New File Extension

You can use the following steps to add new file extensions to Dimofinf CMS

  1. Open "include" directory and look for the file "mediatypes.php"
  2. Download the file to your machine.
  3. Open the file with any text editor and delete all its contents.
  4. Copy the following code and paste it in the empty file

PHP :
<?php
/* =========================================================== *
|| ===================== Dimofinf v3.0.0 ===================== ||
* =========================================================== */

$exttypes = array
 (
 
"gif" => "image",
 "jpeg" => "image",
 "jpg" => "image",
 "jpe" => "image",
 "bmp" => "image",
 "png" => "image",
 "mid" => "audio",
 "midi" => "audio",
 "mpga" => "audio",
 "mp2" => "audio",
 "wma" => "audio",
 "ram" => "audio",
 "ra" => "audio",
 "wav" => "audio",
 "amr" => "audio",
 "mp3" => "audio",
 "mp4" => "video/audio",
 "wmv" => "video",
 "asx" => "video",
 "flv" => "video",
 "rm" => "video/audio",
 "rv" => "video",
 "asf" => "video",
 "mpeg" => "video/audio",
 "mpg" => "video/audio",
 "mpe" => "video",
 "qt" => "video",
 "mov" => "video",
 "avi" => "video",
 "divx" => "video",
 "swf" => "video/card",
 "3gp" => "video",
 "movie" => "video",
 "pdf" => "application",
 "psd" => "application",
 "sis" => "application",
 "zip" => "application",
 "tar" => "application",
 "rar" => "application",
 "gz" => "application",
 "exe" => "application",
 "7z" => "application",
 "doc" => "application",
 "docx" => "application",
 "txt" => "application",
 "xls" => "application",
 "xlsx" => "application",
 "mht" => "application",
 "csv" => "application",
 "xla" => "application"
 );
?>

To add a new extension

Replace xxx in the following code with the extension you want to add

  • To add new extension to Photo Galleries library

PHP :
"xxx" => "image", 

  • To add new extension to Music library

PHP :
"xxx" => "audio", 

  • To add new extension to Music and Video library

PHP :
"xxx" => "video/audio", 

  • To add a new extension to video library

PHP :
"xxx" => "video", 

  • To add new extension to Cards and Video library

PHP :
"xxx" => "video/card", 

  • To add new extension to Downloads library

PHP :
"xxx" => "application", 

  • Then add the modified code after the following code

PHP :
$exttypes = array
 ( 

  • Save the file.
  • Upload the file to its original location.
Was this answer helpful?

Also Read