Announcement

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

#1 2006-07-02 09:45:15

abmcr65
New member
Registered: 2006-07-02
Posts: 4

Image path absolute with ImageManager

My Xinha plug in ImageManager work, but after i insery an image, the src tag is not absolute, but relative (for example

<img width="625" height="395" src="uploads/cartina_stradale.jpg" alt="cartina_stradale.jpg" />

But i need the url aboslute , for example


<img width="625" height="395" src="http://www.xxx.com/myfolder/uploads/cartina_stradale.jpg" alt="cartina_stradale.jpg" />


It is possible? I have see in the manager.js... but i have not found .....

Thank you

Offline

#2 2006-07-02 13:26:39

WebPhil
New member
Registered: 2006-06-20
Posts: 4

Re: Image path absolute with ImageManager

What I do is after the form is submitted is to scan for sources where I "know" where it'll place the images, and prepend the remainder of the URL, then I write to the database.

This means in your case searching for src="uploads/ and replace it with src="http://www.xxx.com/myfolder/uploads/ - not the most elegant of solutions, but it works well for me.

Offline

#3 2006-07-03 04:35:22

abmcr65
New member
Registered: 2006-07-02
Posts: 4

Re: Image path absolute with ImageManager

Thank you: not the most elegant of solutions....

Offline

#4 2007-02-03 04:57:39

adam.jimenez
Xinha Pro
Registered: 2005-04-19
Posts: 50

Re: Image path absolute with ImageManager

I've got the same problem.

Is this a known problem - I couldn't see a ticket for it?

Is there a fix?

Thanks

Offline

Board footer

Powered by FluxBB