Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
hejberlin
Posts: 17
Joined: 14 Feb 2020, 09:53

Re: Embed Setup Instructions

27 Feb 2022, 04:34

Yesterday you wrote this:
  1. Remove the <script> from Settings > Custom > Custom <header> (keep the CSS stylesheet)
  2. Add the <script> at the BOTTOM of your page's CONTENT section instead.
Thatswhy I removed <script>.
 
User avatar
mjau-mjau
X3 Wizard
Topic Author
Posts: 13593
Joined: 30 Sep 2006, 03:37

Re: Embed Setup Instructions

27 Feb 2022, 08:02

hejberlin wrote: Yesterday you wrote this:
  • 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.
Thatswhy I removed <script>.
... and #1 you did correctly, but #2 you didn't add it into "content" ... You added it to page > advanced > javascript. And when you later moved it to content, you removed the actual <script> tag.

ANYWAY, I never give up support :) To be honest, Embed is an advanced script primarily meant for website developers. I can try to add it for you if you like, let me know.
 
User avatar
hejberlin
Posts: 17
Joined: 14 Feb 2020, 09:53

Re: Embed Setup Instructions

27 Feb 2022, 15:28

Thanks, but I think the features of X3 and Files app are enough for me. I liked Embed's features. My idea was to use this to include the gallery in texts and not just at the end. But it is not important. I can solve it another way.
 
User avatar
TristanJo
Experienced
Posts: 92
Joined: 10 Apr 2018, 02:57

Re: Embed Setup Instructions

15 Aug 2022, 03:11

  • /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).
Hi~karl~

I copied the files folder and renamed it embed_api.

Code
cp -r files/ embed_api
Code
<div class="embed" data-embed-app="/embed_api/index.php" data-embed-path="/galleries/food"></div>
It still says to login. What should I do?
If i login to the panel, the gallery works well.
thx~
 
User avatar
mjau-mjau
X3 Wizard
Topic Author
Posts: 13593
Joined: 30 Sep 2006, 03:37

Re: Embed Setup Instructions

15 Aug 2022, 04:33

TristanJo wrote:It still says to login. What should I do?
Do you have a link? Send in private message if you want ...

Where does the login come from? Did you add login to Files gallery?
 
User avatar
TristanJo
Experienced
Posts: 92
Joined: 10 Apr 2018, 02:57

Re: Embed Setup Instructions

15 Aug 2022, 08:32

mjau-mjau wrote:
TristanJo wrote:It still says to login. What should I do?
Do you have a link? Send in private message if you want ...

Where does the login come from? Did you add login to Files gallery?
ok~~
 
User avatar
mjau-mjau
X3 Wizard
Topic Author
Posts: 13593
Joined: 30 Sep 2006, 03:37

Re: Embed Setup Instructions

16 Aug 2022, 02:57

TristanJo wrote:It still says to login. What should I do?
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.

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:
Code
// main document
	} else {
exit();
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.
 
User avatar
TristanJo
Experienced
Posts: 92
Joined: 10 Apr 2018, 02:57

Re: Embed Setup Instructions

16 Aug 2022, 12:16

mjau-mjau wrote:
TristanJo wrote:It still says to login. What should I do?
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.

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:
Code
// main document
 } else {
exit();
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.
Thank you~ Karl~:heart_eyes:
 
User avatar
temabu
Experienced
Posts: 35
Joined: 26 Sep 2008, 17:13

Re: Embed Setup Instructions

09 Nov 2022, 02:52

Hi there, i just tried downloading EMBED?  Getting this back: Image
Can you help?
 
User avatar
mjau-mjau
X3 Wizard
Topic Author
Posts: 13593
Joined: 30 Sep 2006, 03:37

Re: Embed Setup Instructions

09 Nov 2022, 03:33

temabu wrote:Can you help?
Sorry, the download link for Files was wrong. Correct download link:
cdn.jsdelivr.net/npm/files.photo.gallery/index.php