coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Traxman on May 08, 2005, 09:18:34 AM

Title: Redirect link
Post by: Traxman on May 08, 2005, 09:18:34 AM
My gallery has been working great, I have skinned it to my sites theme and everything is great. I have one small issue tho.

I inserted a link in my forums header for my gallery which works most of the time. By most of the time I mean it works every single time you click it except when you already logged into the forum previously.

There is a test account on my board.

http://www.gamingdynasty.com/forum2/index.php
http://www.gamingdynasty.com/PhotoAlbum/index.php

user: test1
pass: test1

It may have been a small oversight on my part but here is the cpg_redir.php


<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/PhotoAlbum';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>

Title: Re: Redirect link
Post by: Traxman on May 08, 2005, 09:20:25 AM
As an example I had my forum in another browser and just tested my links I posted and when I click the gallery link from this page and beings that I am logged into my board already it just sends me straight to my forum.
Title: Re: Redirect link
Post by: Nibbler on May 08, 2005, 10:44:14 PM
It sends me to your forums login page if I click it while not logged in, and to your gallery when I am logged in. Seems ok to me.
Title: Re: Redirect link
Post by: Traxman on May 09, 2005, 01:50:15 AM
Hmm could it be my cookies you think? Either way ima try it but when I am logged in on my forum page and hit my gallery link it reloads my gallery. Maybe it's just me. I wonder if anyone else has had that problem. Thanks for the feedback tho.