Hi,
It will make about 2 week that i'm turning around with the same problem. If someone could help with this one it will be greatly appreciated..
Here's the problem, when i'm selecting image from the image browser i always have a path similar to this one: Image/filename.jpg
But for our press release project i will need to have an absolute url to make it working... like: http://my.server.address
I've seached almost every files (line by line) to find something that could help me, but unfortunately i've missed something.
So any idea would be very appreciated..
Thanks
Thu, 04/28/2005 - 10:22
#1
RE: How can i get absolute path with image
RE: How can i get absolute path with image
I have been stuggling with this issue also (for hours)
Cheers, Richard
RE: How can i get absolute path with image
I still an unable to get a the connnector to work on red hat.
RE: How can i get absolute path with image
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/php/connector.php' ;
i'm not using red hat (i dont know how to manage it)
RE: How can i get absolute path with image
ya.. i can get it to work on a windows bases server, but i'm still having problems with a linux server. (it's usually the other way around:))
RE: How can i get absolute path with image
Was wondering if anyone has figured out how to do the opposite of this....
If an image is selected and appears in the editor and I want to go back to the properties of the image it keeps the full path and ends upp adding it twice....how would i get rid of the url?? any ideas welcome
RE: How can i get absolute path with image
We are talking about the RC3 version...
In the file fck_image.js search for the function :
function UpdateImage( e, skipId )
on the first line of the function you'll see something like this : e.src = GetE('txtUrl').value, the job need to be done on this e.src variable.
You need to create two variable :
var url ;
var internet ;
On the variable internet , enter the absolute path of your server.
internet = "http://something.com" ;
On the variable url, copy GetE('txtUrl').value ; like
above:
url = GetE('txtUrl').value ;
Finally on the e.src variable you just have to join the 2 variable and you have an absolute path!!
e.src = internet + url ;
This simple work around worked for me, and i hope it will save some headache to some of you.
RE: Now defined in configuration file
This get's us a part of the way, but still ....
Plz do get this into next release - it's probaly the most commonly problem for this great (GREAT) editor.
I have just added in my configuration file:
FCKConfig.ImageBrowserPath = "/nemlister/kundemapper/101050/";
And the I have changed the mentioned line to
e.src = oEditor.FCKConfig.ImageBrowserPath + GetE('txtUrl').value ;
This way I have all settings in the configuration file.
But do beware - this will have to be changed every time there's a new release (until we get a standard-option for putting images in special folders).
http://www.nemlister.dk - nyhedsbreve gjort hurtigt.
RE: Now defined in configuration file
Speaking of release... anyone heard from FredCK? I hope all is well!
RE: Now defined in configuration file
wHOOPS!
I didn't read carefully. Nix comment 'bout absolute image path.It's not settable via instanciation. Duh.
Freaking Thursday acting like Monday. Bleh. =-P