Bridging coppermine 1.3.3 and PHPbb 1.14 II Bridging coppermine 1.3.3 and PHPbb 1.14 II
 

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

Main Menu

Bridging coppermine 1.3.3 and PHPbb 1.14 II

Started by caspert_ghost, May 05, 2005, 10:28:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

caspert_ghost

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?

Nibbler

Find in your bridge file

function udb_register_page()
{
    $target = 'profile.php?mode=register';
    udb_redirect($target);
}


Change it to something like:

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);
     }
}