- Remove the <script> from Settings > Custom > Custom <header> (keep the CSS stylesheet)
- Add the <script> at the BOTTOM of your page's CONTENT section instead.
X3 Photo Gallery Support Forums
Hi~karl~
- /files/ Install your main Files app here with password protection.
- /embed_api/ Install Files app here without password protection. You can then block direct access to the url with a single line of code, yet Embed will still be able to use it as an API to load images/files (which is what you want).
cp -r files/ embed_api
<div class="embed" data-embed-app="/embed_api/index.php" data-embed-path="/galleries/food"></div>
ok~~mjau-mjau wrote:Do you have a link? Send in private message if you want ...TristanJo wrote:It still says to login. What should I do?
Where does the login come from? Did you add login to Files gallery?
Thank you~ Karl~:heart_eyes:mjau-mjau wrote:The problem is, you do still have login for the Files gallery app (embed_api). Because Files gallery and it's API is protected by login, then Embed will inherit the login ... It can't access protected API without login.TristanJo wrote:It still says to login. What should I do?
I understand you want to make the embed_api API, but it doesn't currently work like that. Instead, open your embed_api index.php, and locate around line 1719 "// main document". Edit it:The above will allow the API file to work as API, without anyone being able to access it. Now, if you want another Files gallery to actually "manage" the Embed gallery, you would install it in a different folder, set ROOT to point to the dir you want to manage, and set a username/password. This Files is now independent from the EMBED, and only for managing the dir.Code// main document } else { exit();