Announcement

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

#1 2010-11-08 13:51:15

phoenixx
New member
Registered: 2010-11-08
Posts: 1

Image path in Editor

I have my user-called page in the BASE URL/sandbox/2011/ directory and Xinha in BASE URL/sandbox/2011/xinha.

When inserting an image into the editor, it only shows a placeholder and uses the base server url but strips the sandbox/xinha from the image location in the html.
It shows <img src="http://xxxxxxxx.com/images/image.jpg"> but should show <img src="http://xxxxxxxxx.com/sandbox/images/image.jpg">

Here is a part of my config:

       with(xinha_config.ImageManager)
       {
        <?php
          require_once('xinha/contrib/php-xinha.php');
          xinha_pass_to_php_backend(
            array(
              'images_dir' => '../../images',
              'images_url' => '../../sandbox/2011/xinha/images',
              'allow_upload' => true
            )
          );
        ?>
       }


ANY SUGGESTIONS?

Offline

#2 2010-11-11 19:43:25

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Image path in Editor

Recommend you use absolute paths (/sandbox/images/) and I think a trailing slash is required.


James Sleeman

Offline

Board footer

Powered by FluxBB