Knowledgebase



 Categories





 Dimofinf Mobile


Subscribe now to Dimofinf Mobile and enjoy a wide range of premium services. You will receive our SMS text messages wherever you are for a very low cost! More


 Currency Converter


  • Currency
  • US$ Amount

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 buffer start *} <?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"
 );
?>
{* php buffer end *}

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 :
{* php buffer start *} "xxx" => "image", 
{* php buffer end *}

  • To add new extension to Music library

PHP :
{* php buffer start *} "xxx" => "audio", 
{* php buffer end *}

  • To add new extension to Music and Video library

PHP :
{* php buffer start *} "xxx" => "video/audio", 
{* php buffer end *}

  • To add a new extension to video library

PHP :
{* php buffer start *} "xxx" => "video", 
{* php buffer end *}

  • To add new extension to Cards and Video library

PHP :
{* php buffer start *} "xxx" => "video/card", 
{* php buffer end *}

  • To add new extension to Downloads library

PHP :
{* php buffer start *} "xxx" => "application", 
{* php buffer end *}

  • Then add the modified code after the following code

PHP :
{* php buffer start *} $exttypes = array
 ( 
{* php buffer end *}

  • Save the file.
  • Upload the file to its original location.

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read

Installing Dimofinf CMS on Local Server (Views: 8760)

Installing Dimofinf CMS on Local Server...


Calling an External Content (Views: 5001)

Calling an External Content To call a file and display it in the site follow these steps:...


Calling a Programming Block (Views: 5165)

You can call a file and display it inside a block in the magazine by following these steps:...


Changing the Site Favicon (Views: 5500)

Changing the Site Favicon Very Important notes before you start The file format...


Modifying Dimofinf CMS Logo (Views: 5835)

Modifying Dimofinf CMS Logo                 Very important notes before you start...



Online