You are not logged in.
Pages: 1
Ajax file manager is an open source tinymce file/image manager plugin which fully empowered by AJAX.
AJAX Filemanager in PLUCK - TinyMCE
1. Download TinyMCE Ajax File Manager: http://www.phpletter.com/DOWNLOAD/
use: Tinymce Ajax File and Image Manager Version 1.0 RC4
2. uncompress and rename folder to tinymce
3. Replace the old folder tinymce (you can find this in pluck-4_6_4/data/inc/ ) with the new one.
4. Open file pluck-4_6_4/data/inc/tinymce_inc.php and paste some code.
You can copy this code from pluck-4_6_4/data/inc/tinymce/tinymce_test.php
5. After you've finished Save file.
Paste code:
after : mode : "textareas",
paste : elements : "ajaxfilemanager",
after : theme_advanced_resizing : true,
paste : file_browser_callback : "ajaxfilemanager",
Before (bottom of page) : </script>
paste : function ajaxfilemanager(field_name, url, type, win) {
var ajaxfilemanagerurl = "../../../../jscripts/tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php";
switch (type) {
case "image":
break;
case "media":
break;
case "flash":
break;
case "file":
break;
default:
return false;
}
tinyMCE.activeEditor.windowManager.open({
url: "../../../../jscripts/tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php",
width: 782,
height: 440,
inline : "yes",
close_previous : "no"
},{
window : win,
input : field_name
});
/* return false;
var fileBrowserWindow = new Array();
fileBrowserWindow["file"] = ajaxfilemanagerurl;
fileBrowserWindow["title"] = "Ajax File Manager";
fileBrowserWindow["width"] = "782";
fileBrowserWindow["height"] = "440";
fileBrowserWindow["close_previous"] = "no";
tinyMCE.openWindow(fileBrowserWindow, {
window : win,
input : field_name,
resizable : "yes",
inline : "yes",
editor_id : tinyMCE.getWindowArg("editor_id")
});
return false;*/
}
// end ajaxfilemanager
Secure AJAX Filemanager !
It is possible to secure the filemanager.
Change the CONFIG_LOGIN_USERNAME and CONFIG_LOGIN_PASSWORD
You can find this here: config.base.php and config.tinymce.php
Path:
pluck-4_6_4/data/inc/tinymce/jscripts/tiny_mce/plugins/ajaxfilemanager/inc/config.base.php
and
pluck-4_6_4/data/inc/tinymce/jscripts/tiny_mce/plugins/ajaxfilemanager/inc/config.tinymce.php
Open these files and look for “Access Control Setting” adjust this:
//Access Control Setting
/**
* turn off => false
* by session => true
*/
define('CONFIG_ACCESS_CONTROL_MODE', true);
define("CONFIG_LOGIN_USERNAME", 'here_your_username');
define('CONFIG_LOGIN_PASSWORD', 'here_your_password');
Save Files
When uploaded to remote server
!!! CHMOD Folders and files:
Folder session with files,
Folder uploaded with files
CHMOD -707 folder “session” and 2 files:
data/inc/tinymce/jscripts/tiny_mce/plugins/ajaxfilemanager/session
CHMOD -777 folder “uploaded”:
data/inc//tinymce/uploaded
Enjoy
Last edited by WJAC (04-08-2011 11:41:26)
Offline
Pages: 1