Pragmatism in code

One thing that Dolphin 6 lacks is a decent way for users and admin to be able to add images to posts

This is now available with the ezfilemanager plugin for tinyMCE -

To get this up and running you should do the following...

Down load the EzFileManager plugin from the link above and then copy the plugin files to


Now you need to edit the configuration file



Basically you need to set the paths for your installation - this will be as follows...

define("WN_URL","");//your domain  url 
define('WN_PATH','/full/path/to/your/site/');//domain root absolute path

If they do not exist, you will also need to create the follwing folders... '/images/', '/docs/' and '/media/' you might also want to consider changing these from the standard locations.

Now you need to add the call for EzFileManager into the tinymce.init for the pages you want it to appear on, for me this is just the admin page so I edited /inc/classes/BxDolPageviewAdmin.php to include the following...

After the function for tinyMCE_GZ.init but before the closing script tag add the following...

function ezfilemanager (field_name, url, type, win) {
var PluginPath = "/plugins/tiny_mce/plugins/ezfilemanager/ezfilemanager.php";
if (PluginPath.indexOf("?") < 0)
PluginPath = PluginPath + "?type=" + type;
} else {
PluginPath = PluginPath + "&type=" + type;

Then add the following calls within both tinyMCE_GZ.init and tinyMCE.init functions.

file_browser_callback : "ezfilemanager", relative_urls : false,


You should now be able to access the image upload part of EzFileManager by clicking on the new button created in the image dialog on admin pages.

You can also add a button for EzFileManager by including 'ezfilemanager' in the list of plugins - accessing EzFileManager via the dedicated button will also allow access to the file manager aspect of the code.

If you want to also add it for users you will need to modify the relevent files to include same modifications within headers - To do this search for tinymce.init and determine which files need to be modified.

I have not added it for my users as there is no security and no differentiation between the files uploaded for each user (all files are saved in the same place) this means that all users have access to everyone else's files - not good for my site where some users may be members of private groups.