forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 bridging => Topic started by: girlboheme on April 20, 2011, 01:20:29 pm

Title: How to remove the redirect URL from the Bridge
Post by: girlboheme on April 20, 2011, 01:20:29 pm
I just installed phpBB 3.0.8 ( http://littleblueumbrella.com/forum/ )
I also just installed Coppermine Photo Gallery v1.5.12 ( http://littleblueumbrella.com/gallery/ )

URL of Bridge App: http://littleblueumbrella.com/forum
Relative Path to your bridge app's config file: ../forum/
Cookie prefix: phpbb3_qkcy3

Cookie prefix: phpbb3_qkcy3
URL of the bridge app: http://littleblueumbrella.com/forum
Relative path to your bridge app's config file: ../forum/
Use bridge app custom groups?:    1

I have been working on this issue for several days: http://forum.coppermine-gallery.net/index.php/topic,72132.0.html 

It has been determined that it is an issue with the Host and not Coppermine, but I can't ask the host to change this, so I need to get help with removing the redirect url from the Bridge.

Would anyone know what code needs to be changed to make this happen?  Thank you!
Title: Re: How to remove the redirect URL from the Bridge
Post by: Nibbler on April 20, 2011, 06:13:32 pm
Edit bridge/phpbb3.inc.php and change

Code: [Select]
        function login_page()
        {
            global $CONFIG;
           
            $redirect = urlencode($CONFIG['site_url']);
            $this->redirect("/ucp.php?mode=login&redirect=$redirect");
        }

        function logout_page()
        {
            global $CONFIG;
           
            $redirect = urlencode($CONFIG['site_url']);
            $this->redirect("/ucp.php?mode=logout&redirect=$redirect&sid=" . $this->session_id);
        }

to

Code: [Select]
        function login_page()
        {
            $this->redirect("/ucp.php?mode=login");
        }

        function logout_page()
        {
            $this->redirect("/ucp.php?mode=logout&sid=" . $this->session_id);
        }
Title: Re: How to remove the redirect URL from the Bridge
Post by: girlboheme on April 20, 2011, 09:39:26 pm
PERFECT!  Thank you!!
Title: Re: How to remove the redirect URL from the Bridge
Post by: Hellblazer on April 21, 2011, 12:36:01 pm
Nice nice nice, thank you very much that also solves my redirect problem.