You are not logged in.
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
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
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).
thank you very much for helping me
Last edited by Gotfers (2007-02-01 15:36:53)
Offline
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
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