coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: raymon on June 17, 2005, 01:38:17 PM

Title: Opening Coppermine in popup window
Post by: raymon on June 17, 2005, 01:38:17 PM
The coppermine gallery is integrated into my phpbb forum

In the template of the forum I put the following link to the Coppermine Gallery:
<a href="http://www.yoursite.com/coppermine" class="mainmenu" onclick="window.open(this.href, 'gallery'); return false;">Gallery</a>

If added the popup feature above, I have to enter login information again (although I already registered at the forum).
If I made a normal link, there is not need to re-login.

How can I make Coppermine accessed through a popup window without the need to re-enter the login information.

Thanks for the great program
Title: Re: Opening Coppermine in popup window
Post by: Tranz on June 17, 2005, 05:00:00 PM
http://forum.coppermine-gallery.net/index.php?topic=17684.0
Title: Re: Opening Coppermine in popup window
Post by: raymon on June 17, 2005, 07:16:59 PM
I am sorry ... I did not notice:

The phpbb forum is accessible through www.youregypt.com/forum
username: test
password: testtest

Once login ... you can click the gallery icon/link in the header, the Coppermine gallery will popup in a new window ... here you will have to re-login again using the same username and password, for which I don't know why.
Again if I made a direct link, you won't face such problem.
Title: Re: Opening Coppermine in popup window
Post by: kegobeer on June 18, 2005, 12:14:16 AM
Easy fix.  Take a look at the URL in the new gallery window.  You have http://youregypt.com/forum/gallery instead of http://www.youregypt.com/forum/gallery.  That sets a completely different cookie.
Title: Re: Opening Coppermine in popup window
Post by: raymon on June 18, 2005, 02:48:53 AM
Thanks Kegobeer for the tip, it would have taken ages from me to figure out alone what went wrong ...
Only a "slash" solved everything ... :)
So in the link of the <a ref> tag I only added a slash after the gallery's name to be "/gallery/" instead of "/gallery" and it worked like wonder ... dont why though :)
Title: Re: Opening Coppermine in popup window
Post by: Joachim Müller on June 18, 2005, 06:17:26 AM
it's not the slash, it's www.domain.com vs. domain.com
Title: Re: Opening Coppermine in popup window
Post by: raymon on June 18, 2005, 10:08:34 AM
Quote from: GauGau on June 18, 2005, 06:17:26 AM
it's not the slash, it's www.domain.com vs. domain.com

GauGau, I know ... I am talking about the reason for such change unaccounted for. In the links I never used the domain.com way, but it appears despite that. So I discovered that by adding the slash, the url never changes in the new oppoup window from www.domain.com to domain.com