Page 1 of 1

Can I choose where pictures are chosen in photo gallery?

Posted: Wed Oct 16, 2024 3:08 pm
by alan_sh
Using a photo gallery, I can select 'server' and then set a folder name so the gallery knows where to get its pictures from. My question is:

Can the folder name be a separate server elsewhere or does it have to be a folder inside my web site? If it can, what's the format string (in other words, how I make photo gallery see the picture area) I need to specify to access that separate area?

Thanks

Alan

Re: Can I choose where pictures are chosen in photo gallery?

Posted: Wed Oct 16, 2024 3:25 pm
by Pablo
Can the folder name be a separate server elsewhere or does it have to be a folder inside my web site?
It must be on the same server, because PHP cannot 'see' the folder content of another server for security reasons.

Note that you can also use absolute links for image.
So, if you know the full path then you can use:
https://www.website.com/images/filename.jpg

Re: Can I choose where pictures are chosen in photo gallery?

Posted: Wed Oct 16, 2024 4:08 pm
by alan_sh
Pablo,

For server based, can I just specify a folder that is outside my web site, but on the same server? If so, what would the link look like?

Alan

Re: Can I choose where pictures are chosen in photo gallery?

Posted: Wed Oct 16, 2024 4:44 pm
by Pablo
It must be within the same domain.
Again, this is a PHP (security) restriction, so not specific to WWB

Re: Can I choose where pictures are chosen in photo gallery?

Posted: Wed Oct 16, 2024 5:37 pm
by alan_sh
I'll give it a go. So, can I put in something like "https://website/toplevel_folder/user_folder" and have it pick up all the pictures in "user_folder" as long as "website" is the same domain as my web site?

Alan

Re: Can I choose where pictures are chosen in photo gallery?

Posted: Wed Oct 16, 2024 7:41 pm
by Pablo
So, can I put in something like "https://website/toplevel_folder/user_folder" and have it pick up all the pictures in "user_folder" as long as "website" is the same domain as my web site?
No, it needs to be a relative folder.
Only file paths can be absolute, not folder paths

Re: Can I choose where pictures are chosen in photo gallery?

Posted: Thu Oct 17, 2024 2:11 pm
by alan_sh
Oh, that's a shame. That scuppers my plans.

Alan