February 08, 2011
ezFilemanager v2.5 has been released.
Finally I managed to find time and do some updates.
I expect to add more support documentations soon.
Thanks to community translations, ezFilemanager is Multilingual (English, Dutch, German, Norwegian, Portuguese, Spanish, Swedish, Czech)
A site visitor has drawn to my attention that someone is selling my free script, please don't be cheap, respect the open source community and give credit where credit is due.
InstallationCopy the ezFilemanager folder and contents to your TinyMCE plugins directory.
- Stand alone installation
Open config.inc.php and edit configuration, mainly the UPLOAD_DIR
Just point your browser to the ezfilemanager folder
- Plugin Installation within TinyMCE
Open config.inc.php and edit configuration, mainly the UPLOAD_DIR
You have to edit 3 pages, ezfilemanager/index.php, ezfilemanager/js/ez_tinyMCE.js and your page containig tiny_mce
a) index.php
Open ezfilemanager/index.php
Set the path of [script type="text/javascript" src="YOUR-PATH-TO/tiny_mce_popup.js"][/script]
b) ez_tinyMCE.js
Open js/ez_tinyMCE.js and edit var cmsURL ="..."
var cmsURL = "http://"+document.domain+"/YOUR-PATH-TO/ezfilemanager/index.php";
c) Your page containing the tiny_mce editor
Add ez_tinyMCE.js to your tiny_mce page, make sure the path is correct
[script type="text/javascript" src="/admin/spotlights/edit/your-path/tiny_mce.js"][/script]//This allready exits
[script src="YOUR-PATH-TO/plugins/ezfilemanager/js/ez_tinyMCE.js" type="text/javascript"][/script] //Add this
Add plugin to TinyMCE plugin option list. example: plugins : "ezfilemanager".
Add the button, example: theme_advanced_buttons3 : "ezfilemanager".
After your buttons, add file_browser_callback: "CustomFileBrowser",
Make sure you have "advimage" plugin loaded as well
Example snippet
in your TinyMCE init:
tinyMCE.init({
mode : 'textareas',
theme : 'advanced',
plugins : "ezfilemanager,advimage.......",
theme_advanced_buttons3_add_before : 'separator,ezfilemanager',
relative_urls : false,
file_browser_callback: "CustomFileBrowser",
..........
});
- Generic Plugin for text input area.
Put this in your page [head][/head]
[script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"][/script]
[!-- modify according to your directory structure --]
[script type="text/javascript" src="tinymce/jscripts/tiny_mce/plugins/ezfilemanager/js/ez_plugin.js"][/script]
Open ez_plugin.js and make sure the URL of "var newWindow" is correct
Put text input in the page, give a unique ID to the input (You can have multiple text inputs if you wish to)
[input type="text" name="title" id="myid" value="" /]
Double clicking the text input field will open ezfilemanager
if you want to open a specific directory then use the custom "dir" attribute
[input type="text" name="title" id="myid" dir="media/myfolder/" value="" /]
This is it, let me know if you have any problems
Apr. 21, 2010
I installed media plugin, but when i add video flash, it add this code:
So it can't play flv video file.
I want it add code same in review.
Thanks for support :D
Apr. 21, 2010
This code: http://tinypaste.com/dfec22
Sorry about that
This has nothing to do with ezFM.
You need a media player to embed flv files in web pages.
ezFM uses http://www.jeroenwijering.com media player for flv preview
You must either modify the media.html to use the player or write your own flv plugin.
Probably there is a solution for this, either Google or try Tiny_MCE forums.
Apr. 21, 2010
Thanks you very much :D
I'll try.
Apr. 27, 2010
YAY, great one! Thanks!
Apr. 29, 2010
Having trouble placing images. Downloaded latest version this morning.
I'm sure you're going to tell me it's my paths...?
I'm working on a dev server and the install is a ways down in some sub-directories.
tinyMCE loads just fine
ezfilemanager is working, i can upload images
the hover/preview thing is working just fine
i've confirmed with firebug that tiny_mce_popup.js is loading as it should be
but when i try to place an image, i'm getting the error:
'Error: Cannot insert
"tiny_mce_popup.js" URL in ezfilemanager/index.php line 23 is wrong'
do you have any advice?
Apr. 29, 2010
also, if this is helpful...
the error that firebug is logging when the filemanager loads (when i click the browse icon after clicking the "image" or "media" button) is:
tinyMCEPopup.onInit is undefined
Even if you are sure the path is correct, when you are in the insert mode, look at the source of ezFM (with FF) and click in the tiny_mce_popup.js, this should open the tiny_mce_popup.js file
Some users had similar problems when using the uncompressed version of tiny_mce_popup.js, if that is the case, try using the compressed version of tiny_mce_popup.js
If everything fails, give me a demo URL for me to check, but make sure the URL is password protected.
You can contact me at naz[at]webnaz.net
Matt was having this problem because his admin was using the SSL protocol (https:// ) while his ezFM request was not and FF was treating this a cross domain access, changing the ezFM request protocol to SSL (https://) solved the problem
June 03, 2010
Hello,
Thanks for the great tool, I am having an issue though.
the file manager seems to work in every way except inserting the image in the text area.
i can upload, browser, resize,
but when browsing, once I select an image, nothing happens, it just sits there and gives me the options to resize, download or copy
how do I make the image broswer window close and add the image to the tiny mce text area?
i am using mac, tested on both most recent version of safari and firefox with same result...
You must install the advimage and also optional advlink plugins.
Initialise the file_browser_callback in tiny_mce init (file_browser_callback : "CustomFileBrowser",)
Also make sure the URL of var cmsURL in ez_tinyMCE.js is correct.
Then if you click on the insert/edit image icon (tiny_mce toolbar, a tree icon) you should see a browse button next to IMAGE URL, click on it and if there are no setup errors, ezFM should open and you will see a green insert icon before a filename.
Hope my answer solves your problem, if not let me know and I'll send you tiny_mce integrated with ezFM
June 03, 2010
Thanks for the info and offer, i couldn't figure it out so i did a fresh download and install of tinyMCE (mine was customized) and I got it working...
June 10, 2010
Hello,
Could you briefly describe how one could customize ezfilemanager v2 to allow for multiuser directories?
Suppose your UPLOAD_DIR is media, so create in media, e.g user1
If you want to use MySQL or flat file create them with minimal 3 fields:
username, password,user_directory
Open config.inc.php and at the top put the following
<?php
session_start();
if ( !isset( $_SESSION ['user_dir'] ) )
{
//Put your login form here
//Do your verification and if true set user_dir session.
$_SESSION ['user_dir'] = 'user1";
//Reload page
exit;
}
And in config.inc.php set the USER_DIR= $_SESSION ['user_dir']
define('USER_DIR',$_SESSION ['user_dir']);
You can automate the user creation process by writing a small script which will insert user information in the database and create the folder, and vice versa delete the user info and directory when you delete a user.
June 22, 2010
hello friend.
I did the Spanish translation of your library ezfilemanager and wanted to share with you.
I've also made some improvements to your pliguin, I hope you give me your email address to let you go.