PDA

View Full Version : Images path questions


thestr
10-09-2010, 09:21 AM
Hi everybody,
i was testing the vivvo, nice job guys.
however i have one question.
i didn't find any answer searching the forums.
here it is:
let's say i use a license on domain : A.com
and after some time i want to use the domain : B.com
i don't want to loose the content from A.com, so i use the admin area facility to export the database sql from A.com and try to import on B.com
as i see on the sql file the images are stored like this :
<img src=\"http://A.com/files.php?file=wn_revisions.jpg\" border=\"0\" />

Question:
if i'll import this sql to B.com the images path will change on fly ?
Something like :
<img src=\"http://B.com/files.php?file=wn_revisions.jpg\" border=\"0\" />

any ideas?

akash210
10-09-2010, 09:44 AM
Yes, you'll just have to make appropriate changes in conf.php file :)

thestr
10-09-2010, 10:17 AM
Thank your for your answer.
So, when i move on B.com and i click on any article's link the images will display correctly.
This means :
- the system autodetects the domain change (from the conf.php file)
- the system replaces the old domain from the image path and save the changes to db.

Pretty cool if this really happens.

akash210
10-09-2010, 08:19 PM
Exactly. :)

theodore
10-10-2010, 11:48 AM
hmmm im'not sure that is exactly like this way.

The images that are inserted in article body (via Text Editor) and stored in DB in article body with full url Will NOT change automatic the path.

But for images that use the article as abstracts and stored in DB with url like (/files/myimage.jpg) not inside the body, will work fine when transfer in new domain.

Ofcource you must also trtansfer the /files folder to your new domain.

akash210
10-10-2010, 01:23 PM
If you've used {VIVVO_URL}files.php?file=filename.jpg, then there's no reason why it shouldn't work. And I'm guessing most people use this method.

thestr
10-10-2010, 07:47 PM
If you've used {VIVVO_URL}files.php?file=filename.jpg, then there's no reason why it shouldn't work. And I'm guessing most people use this method.

Hmm, seems the right method but what happens in the backend editor in this case ? can u edit/preview the image (width,height,etc) ( using the editor's features) ?