Share
February 08, 2011 Print

ezFILEMANAGER v2 INSTALLATION & SUPPORT


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.

Installation

Copy the ezFilemanager folder and contents to your TinyMCE plugins directory.

  1. Stand alone installation
    Open config.inc.php and edit configuration, mainly the UPLOAD_DIR
    Just point your browser to the ezfilemanager folder
  2. 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",
    ..........
    });
  3. 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

* required

Dwaine
Dec. 11, 2011

Recently I changed the way I use the ezFileManager in my app's standalone verison. I wen to Dynamic Drive and create a pop-up window Dynamic Drive DHTML Scripts- Popup Window Generator
http://dynamicdrive.com/dynamicindex8/popwin.htm
Now when I click the link it acts just like the tinymce version in it's own windows, looks clean this way and easy to intergrate my security into the index.php header.

Maybe a consideration for your next release to use this method or something of your own similar.

Enjoy!
Dwaine

Russ
June 05, 2012

Great plugin for TinyMCE. Nice work!

Would it be possible to assist with an error I'm getting?
Specifically this is what I get when I try browse for a media file (image or video, etc.)

——- begin error message—————-

Notice: Undefined index: p in /webroot/e/n/enjoy007/primary/www/events/js/tiny_mce/plugins/ezfilemanager/includes/ezf.class.php on line 1101
Unable to open

——- end error message—————-

I created a directory called 'media' which was the default in the code and set it to have write permissions but still the same error. Any help is much appreciated.

Thank you,
R.

 
ahmad
Sep. 21, 2012

@Russ
u can set ABSOLUT_PATH line 48 in config.inc.php

Juan Padial
Nov. 15, 2012

Hi!!

I've been using exFilemanager for a long time. One month ago I started to use Google Chrome browser and I notice one problem: The folder/files list doesn't auto-refresh; only after I clean the browser cache I can see the new uploaded files or new created folders.

Problem detected using ezFilemanager v2.5 in Google Chrome v23.0.1271.64m. Also tested in Firefox 16.0.2 and there is no problem.

 
Naz
Nov. 16, 2012

@Juan Padial
I could not reproduce your problem, do you have the same problem if you visit the demo site?
Also try adding the following at the top of index.php

<?php
header("Cache-Control: no-cache, must-revalidate");
?>

 
Juan Padial
Nov. 16, 2012

@Naz

Thank you very much for your reply.

I've already added that header to index.php and the problem was fixed. In the demo site I haven't the problem.

 
Naz
Nov. 16, 2012

@Juan Padial
Glad that the issue was resolved.
If you do not have any problems in the demo site, and if your web server is apache, then it has to do with your compiled apache, you can also try adding the below to your htaccess file
Header unset ETag
FileETag None

Will Fastie
Feb. 11, 2013

I was recently making some changes in my code to use DIRECTORY_SEPARATOR instead of "/" and I did this in my EZFM initialization code. This resulted in the UploadDir session variable being set to something like /files/user/categories\ on Windows servers.

EZFM had trouble with that. There were three symptoms.

1) All three of the tabbed panels were visible in a stack, one of top of the other.

2) The last file in the list could not be inserted by clicking the green arrow. Nothing happened. All other files could be inserted.

3) In my EZFM wrapper, where I receive the path of the selected file, there was a missing separator. Instead of receiving /xxx/yyy/zzz/filename.jpg, I would receive /xxx/yyy/zzzfilename.jpg.

I changed my code back to use "/" and everything was okay again, so this is not a crisis. I thought I'd report it anyway.

Patty
Mar. 22, 2013

I'm receiving the error when trying to insert an image.

Error:  Cannot insert.
"tiny_mce_popup.js" URL in ezfilemanager/index.php line 23 is wrong

I have the correct full path being used in the index.php and have the correct path in config.inc.php and ez_tinyMCE.js.

In addition, I just checked all my sites that are using this application and they all are giving this message.  All worked just a few weeks ago.

Why would this stop working and what can I do to solve this error?

Erik
Apr. 26, 2013

I noticed an error in IE9 when inserting an image in a textarea… it keeps asking for an image description and when I press OK nothing happens. How can I solve this?

«« back ««