Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
JMM
Experienced
Topic Author
Posts: 216
Joined: 02 Aug 2021, 11:18

Some Config settings being ignored in Embed and Files

14 Feb 2026, 22:41

Hello Karl,

I know that I still have another post open, but am asking these questions here in a new post, as they are unrelated.

I am trying to determine if either Embed or Files best suits my needs, which I am accessing from another (non-X3) website.  Although once live I will be sharing the images from my X3 folders, for testing-purposes here I am testing on 2 separate and identical test folders, copied from my X3 site, so that I'm comparing apples to apples.

There are some settings that I am able to configure in Embed so that it suits my needs, but those same settings have no effect in Files.

And similarly, there are some settings that I am able to configure in Files so that it suits my needs, but those same settings have no effect in Embed.

I don't know if that is by design (example: some settings have no effect in the other app), or if those settings currently have no effect because I am still using unlicensed versions of each ,while I am testing.

This is my EMBED test folder.
This is my FILES test folder.

If you look at the above Files test folder, it is correctly using my following (alphabetical) configuration settings:
  • 'dirs_exclude' => '/(\/|^)(_files|starfighters_air_demonstration_team_1982|temp|Work|Work_Folder|work_in_progress|[^\/]*video[^\/]*)(\/|$)/i',
  • 'dirs_include' => '/(^|\/)(aurora|kiowa|musketeer|sea_king|starfighter|t-bird|tracker|tutor|twin_huey)(\/|$)/i',
  • 'files_exclude' => '/preview|\.(db|json|log|php|xmp)$/i',
  • 'folder_preview_default' => '_filespreview.jpg',
  • 'folder_preview_image' => true,
  • 'image_cover' => true,

However, with my above Files test folder, it is ignoring my following (alphabetical) configuration settings:
  • 'context_menu' => false,
  • 'prevent_right_click' => true,
Moving now to my Embed test folder, it is correctly using my following (alphabetical) configuration settings:
  • 'context_menu' => false,
  • 'dirs_exclude' => '/(\/|^)(_files|starfighters_air_demonstration_team_1982|temp|Work|Work_Folder|work_in_progress|[^\/]*video[^\/]*)(\/|$)/i',
  • 'prevent_right_click' => true,
However, with my above Embed test folder, it is ignoring my following (alphabetical) configuration settings:
  • 'dirs_include' => '/(^|\/)(aurora|kiowa|musketeer|sea_king|starfighter|t-bird|tracker|tutor|twin_huey)(\/|$)/i',
  • 'folder_preview_default' => '_filespreview.jpg',
  • 'folder_preview_image' => true,
  • 'image_cover' => true,
Of the 2 apps, I would prefer to use Files for my needs, because of its capability of allowing visitors to change to one of the 3 display modes (the moon in the top-right corner).  However, I would want the 'context_menu' and 'prevent_right_click' settings to work.

Again, maybe the ignored settings are because I am still using unlicensed versions of each.

Thank you in advance.

Regards,

The Pest  :sunglasses:
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Some Config settings being ignored in Embed and Files

15 Feb 2026, 02:42

I'm not sure, but seems there could be some confusion here. First of all:

This is Embed:
https://embed.files.gallery/

This is Files Gallery (demo)
https://demo.files.gallery/?balloons

Keep in mind, Embed uses Files Gallery "index.php" as an API, but that's all ... The interface, as you can see above is very different.
JMM wrote: This is my EMBED test folder.
This is my FILES test folder.
So when I see the two above url's, I see two Files Gallery installations. They are almost identical, except the one named "EMBED" is an older version, which is required to use the the Embed Javascript application. The newer version (which you have called FILES), has more options and slightly improved design (because it's a newer version), but otherwise they are identical. Essentially, if you can achieve something with one but not the other, it means the option might only be available for the newer version (or in rare cases, only the older version).

In your case, if you are specifically wanting to use EMBED (which I didn't receive any link for), then only some of the config options have any function anyway. You would only use Embed if you specifically want to embed a gallery on a website with minimal design and function. In your case, I can't see anywhere you are using Embed or even any argument for using Embed.

I did see your examples about differences between config options, but I don't see any point in addressing these. If you are going to use Files Gallery, and as I can't even see any reference to Embed, then you should be using latest release (which you named Files).
JMM wrote:Of the 2 apps, I would prefer to use Files for my needs, because of its capability of allowing visitors to change to one of the 3 display modes (the moon in the top-right corner).  However, I would want the 'context_menu' and 'prevent_right_click' settings to work.
Yep, so you would be using FILES. Latest version. Let's just dump the idea of using Embed, as I can't even figure out why that is being considered?

Once we have done that, and can focus on Files, then there are MANY settings. Some of the settings, which you found for an older version of Files Gallery (used for Embed), were moved to Javascript config. For example contextmenu and prevent_right_click:
https://www.files.gallery/docs/javascript-config/

They are moved there, because they are interface-only related (not the core app), and only need to be modified in some cases (like yours). So let's just focus on latest version of Files Gallery? And then I can help you with settings, which may be in either main config (PHP) or the Javascript config (advanced interface options).
 
User avatar
JMM
Experienced
Topic Author
Posts: 216
Joined: 02 Aug 2021, 11:18

Re: Some Config settings being ignored in Embed and Files

15 Feb 2026, 03:17

OK, disregard this post and my post from the other day about Embed,  I give up, and will find another solution.

Your demo site for Embed shows basically 1 page, but no other way of how it can be used.  To some people, words mean nothing, and we need to see with our own eyes examples, to give us ideas as to how we can use such things on our own sites.

By the way, I got that older link from you yourself 3 days ago, in my other post, where you said:

The other issue to be mentioned, is that when using EMBED, you need to use the index.php that is bundled with the specific Embed release, because that's what the Embed script latest version was designed for. You can download here:

https://cdn.jsdelivr.net/npm/embed.photo.gallery@0.0.7/index.php

I find it almost impossible to find a single location where we can download your apps, requiring me to look all over your 3 sections on your sites, and often I need to rely on your previous posts to find download links.

Again, I give up, and will find another solution.  Thanks anyway.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: Some Config settings being ignored in Embed and Files

15 Feb 2026, 03:33

JMM wrote: OK, disregard this post and my post from the other day about Embed,  I give up, and will find another solution.
I never saw a link to any Embed, or any reason why you would use Embed.
JMM wrote:Your demo site for Embed shows basically 1 page, but no other way of how it can be used.  To some people, words mean nothing, and we need to see with our own eyes examples, to give us ideas as to how we can use such things on our own sites.
Because the demo shows just that, a very simply gallery embedded into the website. If you can't imagine what that can do for you, and in your case it doesn't seem like what you want at all, why pursue it?
JMM wrote:By the way, I got that older link from you yourself 3 days ago, in my other post, where you said:

The other issue to be mentioned, is that when using EMBED, you need to use the index.php that is bundled with the specific Embed release, because that's what the Embed script latest version was designed for. You can download here:

https://cdn.jsdelivr.net/npm/embed.photo.gallery@0.0.7/index.php
Yes, because you were asking about Embed, and I told you that Files Gallery index.php must be used for the Embed you are setting up.
JMM wrote:I find it almost impossible to find a single location where we can download your apps, requiring me to look all over your 3 sections on your sites, and often I need to rely on your previous posts to find download links.
Three separate applications. www.files.gallery and www.photo.gallery, it's pretty easy to find the "download". For Embed, which is more specific app for those with specific requirements, the instructions are here. If you don't know what it does and it doesn't seem like it does what you want anyway, why pursue it?