Page 1 of 1

Disable the direct gallery start

Posted: 14 Jul 2011, 07:47
by Saber
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

Re: Disable the direct gallery start

Posted: 14 Jul 2011, 07:53
by Martin
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?

Re: Disable the direct gallery start

Posted: 14 Jul 2011, 08:44
by Saber
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

Re: Disable the direct gallery start

Posted: 14 Jul 2011, 08:50
by Martin
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)...

Re: Disable the direct gallery start

Posted: 14 Jul 2011, 09:02
by Saber
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.

Re: Disable the direct gallery start

Posted: 14 Jul 2011, 10:49
by mjau-mjau
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 ..