Announcement

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

#1 2007-01-30 07:30:52

Gotfers
New member
Registered: 2007-01-30
Posts: 3

Images not shown in Xinha textarea (found no help in existent posts)

Hello,

[sorry for my poor english...]

I try to create an admin zone for my website (developped on localhost for the moment) where members can modify pages of the website. Modification are made of course with Xinha. The problem is that in the Xinha textarea, images are not shown. There is a box with a cross instead.

I try with to put those ligns in my "xinha/myconfig.js" (just after the lign "xinha_config = xinha_config ? xinha_config() : new Xinha.Config();") but it did not work:
xinha_config.baseURL = "http://localhost/server/";

Thanks for helping me
Gotfers

Xinha version : Xinha 0.91beta

Structure of the site :
http://localhost/server/ : base url where all pages are visible from every body
server/admin : the admin zone (members only)
server/xinha : xinha directory
server/files/images : images directory

Head code of the page where is the Xinha textarea (location: server/admin/modif.php)
<head>
    <script type="text/javascript">
         _editor_url  = "../xinha/"  // (preferably absolute) URL (including trailing slash) where Xinha is installed
         _editor_lang = "fr";      // 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/myconfig.js"></script>
    <link type="text/css" rel="stylesheet" title="blue-look" href="../xinha/skins/blue-look/skin.css">
</head>

Code which I want to modify with Xinha (location : server/page.php)
<div class="titreaa">Présentation du CRDH</div>
<div><img src="files/images/pantheon.jpg" border="0" /></div> // The problem is for this image
<p>Le Centre de recherche sur les droits de l'homme et le droit humanitaire (CRDH) de l'Université Panthéon-Assas (Paris II)</p>

Last edited by Gotfers (2007-01-30 15:18:17)

Offline

#2 2007-01-30 16:18:06

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Images not shown in Xinha textarea (found no help in existent posts)

Try

xinha_config.baseURL = "http://localhost"; //without the slash at the end

this will leave you

src="/server/files/images/pantheon.jpg"

which should work

Offline

#3 2007-02-01 15:34:18

Gotfers
New member
Registered: 2007-01-30
Posts: 3

Re: Images not shown in Xinha textarea (found no help in existent posts)

Thanks but there's still be a problem. Because in my xinha textarea (in administration section), I can't see images. Xinha don't find images location to display those in the textarea (see below).

xinha.jpg

thank you very much for helping me

Last edited by Gotfers (2007-02-01 15:36:53)

Offline

#4 2007-02-01 15:39:23

jedi58
Xinha Authority
From: Leicester, UK
Registered: 2007-01-14
Posts: 113
Website

Re: Images not shown in Xinha textarea (found no help in existent posts)

have you tried inserting images with the absolute URL?


David G. Paul
[url]http://www.newearthonline.co.uk[/url]

Offline

#5 2007-02-01 16:23:22

Gotfers
New member
Registered: 2007-01-30
Posts: 3

Re: Images not shown in Xinha textarea (found no help in existent posts)

yes, it works with absolute URL.

I change :
- EFM config file (set : $IMConfig['images_url'] = 'http://localhost/server/files/images/'; ),
- xinha config file with no base URL.

This solution do not satisfy me, because I would like to keep relative URL. But if there's no other solution, it will be ok.

Thanks

Last edited by Gotfers (2007-02-02 12:47:20)

Offline

#6 2007-02-01 17:02:57

jedi58
Xinha Authority
From: Leicester, UK
Registered: 2007-01-14
Posts: 113
Website

Re: Images not shown in Xinha textarea (found no help in existent posts)

does the content from the editor get saved and shown on some other page? hopefully it does as you can right click on the image and goto properties and see where it's trying to get the image from....this might help solve the problem


David G. Paul
[url]http://www.newearthonline.co.uk[/url]

Offline

Board footer

Powered by FluxBB