Situsnya Wordpress

while scratching my head…

31 Useful Firefox Plugins for Web Developer October 21, 2009

Filed under: Firefox,Web Development — Remo @ 7:50 am
Tags: , , ,

Update: I’ve packed all these extension into one XPI file for fast install, you can download it from:

  1. 4Shared
  2. Rapidshare
  3. Mediafire
 

Enable File Upload on FCKEditor (PHP) October 3, 2009

Filed under: Javascript,PHP — Remo @ 7:13 am
Tags: , ,

  • Edit
    fckeditor/editor/filemanager/connectors/php/config.php
  • Modify $Config['UserFilesPath']
    Put your application folder here
    Eg:
    $Config['UserFilesPath'] = ‘/myapp/’ ;
  • Modify $Config['UserFilesAbsolutePath']
    Put your application full path here. Windows users should use double backslash here
    Eg:
    $Config['UserFilesAbsolutePath'] = ‘/var/www/myapp/’ ;

    or

    $Config['UserFilesAbsolutePath'] = ‘C:\xampp\htdocs\myapp\’ ;

  • After that, you can customize other variable, like these

$Config['FileTypesPath']['File']        = $Config['UserFilesPath'] . ‘images/’ ;

$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == ”) ? ” : $Config['UserFilesAbsolutePath'].’images/’ ;

$Config['FileTypesPath']['Image']        = $Config['UserFilesPath'] . ‘images/’ ;

$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == ”) ? ” : $Config['UserFilesAbsolutePath'].’images/’ ;

$Config['FileTypesPath']['Flash']        = $Config['UserFilesPath'] . ‘images/’ ;

$Config['FileTypesAbsolutePath']['Flash']= ($Config['UserFilesAbsolutePath'] == ”) ? ” : $Config['UserFilesAbsolutePath'].’images/’ ;

$Config['FileTypesPath']['Media']        = $Config['UserFilesPath'] . ‘images/’;

$Config['FileTypesAbsolutePath']['Media']= ($Config['UserFilesAbsolutePath'] == ”) ? ” : $Config['UserFilesAbsolutePath'].’images/’ ;

You can put different filetype on different upload location. In this example I put all filetype on images folder

 

 
Follow

Get every new post delivered to your Inbox.