Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

20. How to link to pictures in a remote http directory
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=3245
Page 1 of 1

Author:  Gerry [ 22. Feb 2012, 18:55 ]
Post subject:  20. How to link to pictures in a remote http directory

I can't do the list directory so I'm trying to use index.html with the full link, example
<a href="#removed_broken_linkmach4.jpg">mach4.jpg</a>
but nothing is displaying. Is it supposed to display the image inside of TWG, or just go to the image in the other directory?
Am I missing something else?

Author:  TinyWebGallery [ 22. Feb 2012, 20:14 ]
Post subject:  Re: 20. How to link to pictures in a remote http directory

No,

I disabled this functionality in one of the last builds when adding the local support.
I have already added it again to the next version 1.8.8. So if you like I can send you
the new version already by e-mail.

Simply send me an e-mail for a patch.

Best, Michael

Author:  Gerry [ 23. Feb 2012, 19:15 ]
Post subject:  Re: 20. How to link to pictures in a remote http directory

Hi Michael,

Updated to 1.8.8 today, but still not getting any pictures from the remote directory using an index.html file with the full link in it, what else do I have to add/update to get this to work??

Thanks!

Author:  TinyWebGallery [ 23. Feb 2012, 19:24 ]
Post subject:  Re: 20. How to link to pictures in a remote http directory

what is in your url.txt?

- Michael

Author:  Gerry [ 23. Feb 2012, 22:20 ]
Post subject:  Re: 20. How to link to pictures in a remote http directory

The pictures are not on the local server so I can't use the url.txt and am using index.html instead, with all the html stuff plus the full link:
<a href="#removed_broken_linkmach4.jpg">mach4.jpg</a>

Author:  TinyWebGallery [ 24. Feb 2012, 00:10 ]
Post subject:  Re: 20. How to link to pictures in a remote http directory

The please read the howto again.

you have to provide a url.txt which points to your index.htm which is somewhere.

Best, Michael

Author:  Gerry [ 24. Feb 2012, 03:18 ]
Post subject:  Re: 20. How to link to pictures in a remote http directory

The url.txt points to the remote directory, per the howto instructions:

"Inside the directory have to specify a file called url.txt where the url of the remote images are stored."

And this is what I have in url.txt
#removed_broken_link

It doesn't do anything, so I added the index.html, per the how to instructions.

Still doesn't work, so apparently this is not possible, or you didn't restore that function.

Author:  TinyWebGallery [ 24. Feb 2012, 10:18 ]
Post subject:  Re: 20. How to link to pictures in a remote http directory

Hi,

very interesting.

Why can't you do a directory listing?
#removed_broken_link
delivers a perfect one.

I just added your url to a url.txt and ir work like it should. no index.htm is used/needed. You are actually not even using it because you did not enter it into url.txt.

So please check the log file if fsockopen is maybe disabled on your server.

Best,
Michael

Author:  Gerry [ 24. Feb 2012, 14:26 ]
Post subject:  Re: 20. How to link to pictures in a remote http directory

Michael,

Well now I am totally confused because this morning I have pictures showing up, and it is taking forever so I'm guessing it is building the cache? I changed the url.txt a couple of times, so I must have had something wrong, but finally got it right! (It was probably the wrong directory.)

According to the howto the url.txt could only be used on the local server and I'm trying to get the pictures from another server, that's why I also added the index.html, and I thought the TWG programs were checking for the existence of url.txt and/or an index.html so I didn't think I had to call it from anywhere.

I will have to try it again with another directory, thank you for your help and sorry if I was frustrating, it was frustrating the heck out of me!

Gerry

Author:  TinyWebGallery [ 24. Feb 2012, 14:41 ]
Post subject:  Re: 20. How to link to pictures in a remote http directory

Hi,

there is nothing the howto that it can only be used on a local server. Because the whole howto is about how to load images from a remote server.
It says that the directory structure !!! has to be on the server itself ;).

And yes. the first time is very slow because it has to load all the images from the remote server and building the cache.

Best,
Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/