God I hate php….

http://pascal.vanhecke.info/2005/08/25/image-upload-plugin-for-tinymce/

Then (summarized from readme.txt for a simple setup, have a look at it if you want to know more):

  • download the latest version, unzip and upload the Ibrowser files to tiny_mce\plugins\ibrowser
  • select the one, 2 or more directories you want to be able to insert images from and and upload to and indicate them with easy to understand names (that will show up in the interface) in config/config.inc.php:

    $cfg['ilibs'] = array (
    array (
    ‘value’ => ‘/path/from/webroot/images/’,
    ‘text’ => ‘Sprekers’,
    ),
    array (
    ‘value’ => ‘/path/from/webroot/gallery/’,
    ‘text’ => ‘Sponsors’,
    ),
    );
  • chmod these directories and additionally the directories ibrowser/scripts/phpThumb/cache and ibrowser/temp to 755 or 777 (depending on the privileges your webserver has - try with 755 first if you’re not sure)
  • copy tinyMCE.editor_plugin.js file into the iBrowser plugin directory and rename it to “editor_plugin.js”
  • somewhere in an included or inline javascript, you should have the “tinyMCE.init” statement, configuring your TinyMce setup:

    Example for the latter:

    tinyMCE.init({
    ...
    plugins : "ibrowser",
    ...
    theme : "advanced",
    theme_advanced_buttons3_add : "ibrowser",
    });

Posted Saturday, April 12th, 2008 at 3:38 pm
Filed Under Category: PHP
Responses are currently closed, but you can trackback from your own site.

0

Comments are closed.