مكتبة الشروحات



 تصنيفات المكتبة





 جوال ديموفنف


اشترك الآن في موبايل ديموفنف واستمتع بعالم جديد من الخدمات المتميزة وبسعر رمزي تصلك رسائلنا على موبايلك أينما كنت . تفاصيل


 محول العملات


  • العملة
  • المبلغ بالدولار

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.

هل كانت المقالة مفيدة ؟

أضفة للمفضلة أضفة للمفضلة    طباعة طباعة

اقرأ أيضاً :

Calling a Programming Block (الزيارات: 3704)

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


Changing the Site Favicon (الزيارات: 4017)

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


Installing Dimofinf CMS on Local Server (الزيارات: 6565)

Installing Dimofinf CMS on Local Server...


Modifying Dimofinf CMS Logo (الزيارات: 4198)

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


Calling an External Content (الزيارات: 3580)

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




Online