Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: How to remove the redirect URL from the Bridge  (Read 6907 times)

0 Members and 1 Guest are viewing this topic.

girlboheme

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
How to remove the redirect URL from the Bridge
« 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!
Logged

Nibbler

  • Guest
Re: How to remove the redirect URL from the Bridge
« Reply #1 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);
        }
Logged

girlboheme

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: How to remove the redirect URL from the Bridge
« Reply #2 on: April 20, 2011, 09:39:26 pm »

PERFECT!  Thank you!!
Logged

Hellblazer

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: How to remove the redirect URL from the Bridge
« Reply #3 on: April 21, 2011, 12:36:01 pm »

Nice nice nice, thank you very much that also solves my redirect problem.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.