Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2008-01-06 05:30:05

StoneDeft
New member
Registered: 2008-01-06
Posts: 2

Extended File Manager Error

Hi Everyone I've been hanging around the forums for 4 days now searching for a solution to my dilema. I got Xinha working just fine but I have problems with the Extended File Manager plug-in . When I attempt to use the plugin it displays an error message:

object expected

http://www.kierulfraboy.com/CMS/xinha/p … ckend_data[data] ...blah blah blah...

The images in my directory appears but the img buttons doesn't appear and when I right click on the buttons to track the properties path  I get this: http://www.kierulfraboy.comimg/edit_pencil.gif.  And I know it should be like this : http://www.kierulfraboy.com/CMS/xinha/p … pencil.gif

I know there is a path issue somewhere... what files do I still need to edit to resolve this.

Here is the head tag of my html

<script type="text/javascript">
     _editor_url  = "xinha/"
    _editor_lang = "en";      // And the language we need to use in the editor.
  </script>

    <script type="text/javascript" src="xinha/XinhaCore.js"></script>
  <script type="text/javascript" src="xinha_config.php"></script>
</head>

and here's the config code:

<?php header("Content-type: text/javascript"); ?>
  xinha_editors = null;
  xinha_init    = null;
  xinha_config  = null;
  xinha_plugins = null;
  

  xinha_init = xinha_init ? xinha_init : function()
  {

  
      xinha_plugins = xinha_plugins ? xinha_plugins :
      [
      'DoubleClick',
      'ExtendedFileManager',
      'Linker'
      ];
           // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING  :)
           if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return;
      
      
      xinha_editors = xinha_editors ? xinha_editors :
      [
      'myTextArea'
      ];
      
      xinha_config = xinha_config ? xinha_config : new Xinha.Config();
      
    
      xinha_config.toolbar =
      [
          ["popupeditor","separator","formatblock","bold","italic","separator","createlink","insertimage"]
      ];
      
      xinha_config.formatblock =
      {
          "&mdash; format &mdash;"  : "",
          "Heading 2": "h2",
          "Normal"   : "p"
      };
    
      
      xinha_config.showLoading = true;
      xinha_config.statusBar = false;
      xinha_config.stripBaseHref = false;
      xinha_config.baseHref = "<?php print 'http://'. $_SERVER['SERVER_NAME'] ?>";
    
     
        <?php  require_once 'xinha/contrib/php-xinha.php'; ?>
        if (xinha_config.Linker)
        {
          with(xinha_config.Linker)
        {
          <?php 
          xinha_pass_to_php_backend
          (
          array(
          'dir'          => $_SERVER['DOCUMENT_ROOT'].'/xinha/',
          'include'      => '/\.(php|shtml|html|htm|shtm|cgi|txt|doc|pdf|rtf|xls|csv)$/', // Regex or null
          'exclude'      => null, // Regex or null
          'dirinclude'   => null, // Regex or null
          'direxclude'   => null // Regex or null
          )
          );
          ?>
        }
        }
        
        xinha_config.ExtendedFileManager.use_linker = true;
      
      if (xinha_config.ExtendedFileManager) {
             with (xinha_config.ExtendedFileManager)
            {
                <?php
    
                // define backend configuration for the plugin
                $IMConfig = array();
                // the directories have to be writeable for php (that means 777 under linux)
                $IMConfig['max_foldersize_mb'] = 10;
                $IMConfig['files_dir'] = $_SERVER['DOCUMENT_ROOT'].'/images';
                $IMConfig['images_dir'] = $_SERVER['DOCUMENT_ROOT'].'/images';
                $IMConfig['files_url'] = 'http://www.kierulfraboy.com/images';
                $IMConfig['images_url'] = 'http://www.kierulfraboy.com/images';
                $IMConfig['images_enable_styling'] = false;
                $IMConfig['max_filesize_kb_image'] = 200;
                // we can use the value 'max' to allow the maximium upload size defined in php_ini
                $IMConfig['max_filesize_kb_link'] = 'max';
                $IMConfig['allowed_link_extensions'] = array("jpg","gif","js","pdf","zip","txt","psd","png","html","swf","xml","xls");
    
                xinha_pass_to_php_backend($IMConfig);
    
                ?>
            }
      }
    
      
      xinha_editors   = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
      
      Xinha.startEditors(xinha_editors);
    
  }
  
  Xinha._addEvent(window,"load",xinha_init);

I installed xinha on root/CMS/xinha

Any help and hints will be greatly appreciated and thnx in advance


Stone Deft

Offline

#2 2008-01-07 22:21:36

StoneDeft
New member
Registered: 2008-01-06
Posts: 2

Re: Extended File Manager Error

Nah don't bother I got it all figured out ...

Offline

Board footer

Powered by FluxBB