Search…

X3 Photo Gallery Support Forums

Search…
 
Saber
Topic Author
Posts: 3
Joined: 11 Jul 2011, 12:49

Disable the direct gallery start

14 Jul 2011, 07:47

Hello!

I´m using Imagevue as an embedded gallery. Is there an easy way to disable the direct start of the gallery?
I want a kind of automatic link back to my homepage if an user tries to jump directly into the gallery folder. I´ve tried some session- and header-tricks with PHP, but the result was that Imagevue didn´t start correctly afterwards.

Has anybody already solved such a problem?

Thanks! :)

Cheers,
Saber
 
User avatar
Martin
Experienced
Posts: 651
Joined: 30 Jan 2011, 23:24

Re: Disable the direct gallery start

14 Jul 2011, 07:53

Saber wrote:I´m using Imagevue as an embedded gallery. Is there an easy way to disable the direct start of the gallery?
I want a kind of automatic link back to my homepage if an user tries to jump directly into the gallery folder.
If I understand you correctly: you do not want the gallery to start when someone enters the direct URL to the gallery, but it has to start when someone is clicking some link on your main site?
 
Saber
Topic Author
Posts: 3
Joined: 11 Jul 2011, 12:49

Re: Disable the direct gallery start

14 Jul 2011, 08:44

Not exactly, I think.

The gallery is embedded into a HTML page (as shown in the file "embed_example.html"). If somebody opens my website the HTML page is shown and the gallery automatically loaded (via JavaScript I think).

I want to prevent now that the user opens the gallery directly (without the HTML frame).

Maybe I can explain it with the URLs:

HTML page with embedded gallery (good way):
http://www.lacc.de/v6/

Gallery without the HTML frame (bad way)
http://www.lacc.de/v6/gallery

So if somebody opens http://www.lacc.de/v6/gallery directly he should be redirected to http://www.lacc.de/v6/.

If tried some solution statements in PHP and .htaccess, but it won´t work.

Cheers,
Saber
 
User avatar
Martin
Experienced
Posts: 651
Joined: 30 Jan 2011, 23:24

Re: Disable the direct gallery start

14 Jul 2011, 08:50

Saber wrote:I want to prevent now that the user opens the gallery directly (without the HTML frame).
Yes, that's what I tried to ask... I think I meant the same...
Don't know an answer, though...

B.t.w. your two links are password protected (by .htaccess, I think)...
 
Saber
Topic Author
Posts: 3
Joined: 11 Jul 2011, 12:49

Re: Disable the direct gallery start

14 Jul 2011, 09:02

Martin wrote:B.t.w. your two links are password protected (by .htaccess, I think)...
I know ... I can´t put it online yet. There´re some important changes left.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Disable the direct gallery start

14 Jul 2011, 10:49

Unfortunately, I do not understand the nature of your problem either. I am not sure what you mean by "disable direct start" ... You can easily set a gallery to display nothing until they click a folder item if that is what you mean ..