Announcement

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

#1 2007-01-25 05:33:22

volhovec
Xinha Community Member
Registered: 2007-01-18
Posts: 13

Relative links upper, then root folder

How can i do that???
all images and files placed in files folder...
In inc.config.php of the Extended File Manager i was change image folder to
$IMConfig['images_dir'] = '../../../../files';
when I add picture EFM upload it that folder, but thumbs doesn't represented
and in textarea to...
the picture link is looks like http://localhost/xinha/etc. /../../../../files/mypict.gif

if i set in config
  xinha_editors.myArea.config.baseHref=null;
  xinha_editors.myArea.config.stripBaseHref=true;

the links looks like: /mypict.gif

How make relative links in my case???


My folders tree:
localhost
- files
- www - root site folder
- - xinha

Offline

#2 2007-01-25 08:25:47

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

Re: Relative links upper, then root folder

There are two settings:
1. $IMConfig['images_dir']  this is the directory in which the  php script scans for the files
2. $IMConfig['images_url']  this is the url to the above path, the browser has to be able to see this

You have to $IMConfig['images_url'] correctly. Your files folder should be inside the root folder, how else could the browser load the pictures?

Offline

#3 2007-01-25 10:03:06

volhovec
Xinha Community Member
Registered: 2007-01-18
Posts: 13

Re: Relative links upper, then root folder

sorry... i fogot, that until I was install xinha, i load text pictures by php script

but thanx for anser

Offline

Board footer

Powered by FluxBB