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
Dec. 28, 2010
@ITquality.cz
I would appreciate it if you send translations to me and I will be more than happy include it in my releases with full credit.
Feb. 17, 2011
I've done my first integration with v2.5. The goal was to install it and make it work just as v2.1 did. I was entirely successful.
Feb. 17, 2011
v2.5 BUG (minor): For TXT_HACK in en.inc.php, incorrect spelling of "Illegal."
Feb. 28, 2011
v2.5 - The icon for use with the TinyMCE toolbar (ezfilemanaer.gif) does not seem to place itself well in the button. It is either too large or misplaced.
The distributed version is 20x20. I changed it to 16x16 and it still does not look right.
Apr. 18, 2011
Hello, I try to implement ezfilemanager in TinyMce, but when i click on ezfilemanager button, on tinyMce textarea, it opens an window and loads home page of my cms. Please tell me what is wrong.
Apr. 19, 2011
@Vero
I found the problem. My root .htaccess file made the redirect to homepage, so i created an new .htaccess file in the ezfilemanger folder with RewriteEngine Off.
Thanks Naz for answer.
May 19, 2011
Today I tripped an error when a user uploaded a corrupt JPG file. Upon examining the file, I found it had no size information. This caused a divide by zero error in the resize_proportional function because &height was undefined.
The operation of ezFM was not affected. All that happened was that an error message appeared in the dialog.
The error was line 192 of ezf.class.php.
May 20, 2011
@Will Fastie
Yes I'm aware of this, actually it is common for files with incorrect mime info, especially for images downloaded from the net.
This is what I use (not very elegant but does it job)
line 168 list($width_orig, $height_orig) = $this->fileinfo;
//ADD FOLLOWING CODE
if (!$width_orig || !$height_orig)
echo "<div id='error'>File ".$file." is corrupted</div>";
//END
June 10, 2011
When the folder specified in the configuration does not exist, the ezFM dialog presents a red bar with the message "The Directory is Not Writable."
It would be helpful for debugging if the message could include the pathname.
July 14, 2011
I seriously think your ezfilemanager is the best! Look and feel!
I followed your directions to the "T" and I can't seem to figure out why when I open up the browser window through the image on TinyMCE and ofcourse login with username and password I get an error:
Notice: Undefined index: p in /***/****/****/****/tinymce/jscripts/tiny_mce/plugins/ezfilemanager/includes/ezf.class.php on line 1101
Unable to open
I put *** to protect my domain info.
I been going crazy trying to figure this out.