Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Bridging coppermine 1.3.3 and PHPbb 1.14 II  (Read 2626 times)

0 Members and 1 Guest are viewing this topic.

caspert_ghost

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Bridging coppermine 1.3.3 and PHPbb 1.14 II
« on: May 05, 2005, 10:28:10 am »

Hello again now it gets into the nitty gritty.
for those of you who looked at my boards and coppermine galley I thank you.

Here goes.
I have 2 BBS boards one in English the other in Chinese.

www.mjsutton.com/wancheng/engbbs
www.mjsutton.com/wancheng/chnbbs

and coppermine gallery
www.mjsutton.com/wancheng/gallery

After a LOT of trial and error as well as searching both coppermine and phpbb help forums I finally got them bridged and working
now for the hard part.

My user base is both Chinese and English, my boards are set up to already allow log on and register in their language.
How can I do this with coppermine or do I need to set up 2 coppermines (just set one as the primary for the images)

as it is now if they are at the boards and go to log in it is fine as they can change the language via a flag on top. but if they need to register it goes to English boards as default... how can I change this?
Logged

Nibbler

  • Guest
Re: Bridging coppermine 1.3.3 and PHPbb 1.14 II
« Reply #1 on: May 05, 2005, 05:41:16 pm »

Find in your bridge file

Code: [Select]
function udb_register_page()
{
    $target = 'profile.php?mode=register';
    udb_redirect($target);
}

Change it to something like:

Code: [Select]
function udb_register_page()
{
global $CONFIG;

    $target = 'profile.php?mode=register';
    if (strpos($CONFIG['lang'], 'chinese') != FALSE){
header("Location: http://www.mjsutton.com/wancheng/chnbbs/$target");
exit;
     } else {
udb_redirect($target);
     }
}
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 15 queries.