Quote:
Originally Posted by Marsupilami
Consider the following setup: - Forum URL = "www.teflon1.net/forum"
- Homepage URL = "www.teflon2.net/"
- thumbs_dir = "../thumbs/"
The URL to the thumbs shows up to be something like: "www.teflon2.net/../thumbs/63721154952051.jpg"
One cannot rely on the Homepage URL to point at the web root for the forum.
That must be found using proper PHP system variable.
Can this be solved?
|
Just to be clear on this:
a) In this situation, the LDM code uses an internal VB function construct_full_url() to produce a full url. That uses the value of $_SERVER['HTTP_HOST'] or similar, depending on server, to build the url.
b) The ../dir syntax is not valid for the thumbs_dir directory. (In fact, it is only valid in LDM for local_file_root_prefix and upload_dir and only when local_file_root is set to 1)
c) The strange problem - thumbnail displaying with Opera and not with IE - was probably not a browser issue. LDM creates different urls for the thumbnail, depending on whether it thinks it has cached the file or not. Before it has cached it, the url points to the thumbnail generator script.
d) You can always make this work (at least when I've uploaded a fix to someone else's problem...) by turning off thumbs_dir