Installing MCFileManager is pretty easy if you have some basic programming/configuration skills.
Requirements
MCFileManager requires the following to be pre installed on your web server.
- Apache 1.3+, IIS 4 or other web server capable of running PHP
- PHP 4.3+ script language used by the MCFileManager.
- PHP Nuke 7.8 PHP Nuke CMS System.
Downloading
Since this product is under commercial license, downloading of this software is restricted to customers only. For download and purchase instructions check our web site.
Extracting the archives
On windows you could use WinZip or something similar. And on other operating systems such as Linux you simply extract the archive with the tar command. You can find a example on how to extract the archived file on Linux below.
Extract the contents of the zip/tgz to the includes/tiny_mce/plugins directory located in your PHP Nuke installation.
Extract example using a shell:
$ cd wwwroot/phpnuke/includes/tiny_mce/plugins $ gzip -d MCFileManager_x_x.tar.gz $ tar xvf MCFileManager_x_x.tar
Setup MCFileManager to integrate with PHP Nuke 7.8
Replace the "config.php" file with "config.php.phpnuke" these files are located in the "includes/tiny_mce/plugins/filemanager" directory. The "config.php.phpnuke" is a predefined configuration that integrates with PHP Nuke, you may need to modify this file if you have specific needs consult the configuration section of this manual for details.
Modify the $advanced_editor option in PHPNuke global configuration file located in <phpnuke installation dir>/config.php. Set the value of this property to 1 this will switch the editor instances within PHP Nuke to a more advanced state.
Modify the <phpnuke installation dir>/includes/javascript.php file and add the filemanager to the list of plugins.
Replace the the "fileBrowserCallBack" value of the file_browser_callback option with "mcFileManager.filebrowserCallBack".
Note that we didn't build PHP Nuke so it's not our fault that this is a somewhat tricky process.
Setup MCFileManager to integrate with PHP Nuke 7.8 (Patched)
Replace the "config.php" file with "config.php.phpnuke" these files are located in the "includes/tiny_mce/plugins/filemanager" directory. The "config.php.phpnuke" is a predefined configuration that integrates with PHP Nuke, you may need to modify this file if you have specific needs consult the configuration section of this manual for details.
Download the TinyMCE 2.x+ patch for PHP Nuke 7.8 from the PHP Nuke site.
Follow the installation instructions in the ZIP file.
Update the tinymce_gzip.php file with the latest version if you install a TinyMCE version above 2.0.2.
Modify the <phpnuke installation dir>/includes/tinymce/tiny_mce_init_advanced.js file and add the filemanager to the list of plugins available you may also modify the other .js files.
Copy the <phpnuke installation dir>/includes/tinymce/themes/advanced/css/editor_ui.css to your PHP theme style/editor.css. So in other words replace for example <phpnuke installation dir>/themes/DeepBlue/style/editor.css with <phpnuke installation dir>/includes/tinymce/themes/advanced/css/editor_ui.css.
Modify the all relative image paths in the CSS file so they point to the correct images for example replace all "../images/" with "../../../includes/tiny_mce/themes/advanced/images/buttons.gif".
Note that we didn't build PHP Nuke so it's not our fault that this is a somewhat tricky process.
Testing the installation
Ones you have finished the installation a "browse" button should appear in the link and image dialogs, this button will popup the filemanager in a separate window. The next step after installation is probably to configure the MCFileManager for your needs, check the configuration reference for details.