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: double login with coppermine bridging  (Read 3739 times)

0 Members and 1 Guest are viewing this topic.

buchananben

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
double login with coppermine bridging
« on: June 20, 2006, 01:16:59 am »

I have coppermine version 1.4.8 and punBB version 1.2.12 running on my site www.nightcats.org . The gallery is in /gallery and the forum is in /forum . I have them bridged and both work fine if I don't modify the punBB login file for login redirection. However, when I modify the punBB login file so that logging in from my gallery redirects back to the gallery, I have the problem that I have to login twice from coppermine, and the second time, the login redirect goes to the forum page. The changes I made to the login.php file are as follows:

Code: [Select]
For login/logout redirection:

Edit punbb's login.php


Find: $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_common['Login'];

Add before it: $redirect_url = (isset($_GET['redir'])) ? $_GET['redir'] : $redirect_url;


Find: redirect('index.php', $lang_login['Logout redirect']);

Change to: redirect(isset($_GET['redir']) ? $_GET['redir'] : 'index.php', $lang_login['Logout redirect']);

Is there a way to fix this? Right now I've undone my changes as the double login is more confusing thatn being redirected to the forum when logging into the gallery in my opinion.
Thanks very much
Regards
Ben
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

Nibbler

  • Guest
Re: double login with coppermine bridging
« Reply #2 on: June 20, 2006, 01:55:54 pm »

You need to use the same domain for both your forum and the gallery. You have your gallery set at http://nightcats.org so it cannot read cookies that your forum set on www.nightcats.org. Either use nightcats.org for both or www.nightcats.org for both.
Logged

buchananben

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: double login with coppermine bridging
« Reply #3 on: June 21, 2006, 08:06:07 am »

nibbler - thanks for the help. I'll give it a go later.

gau gau - sorry, I should have read that first. Next time :-)
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 16 queries.