forum.coppermine-gallery.net

Support => cpg1.4 bridging => cpg1.4.x Support => Older/other versions => cpg1.4 bridge contributions => Topic started by: Nibbler on July 04, 2008, 07:37:20 pm

Title: [cpg1.4.x]: PHPBB3 bridge
Post by: Nibbler on July 04, 2008, 07:37:20 pm
Supported phpbb3 bridge file attached. Download, extract, upload into the bridge folder. Then edit bridgemgr.php and add in the details for it as follows

Find

Code: [Select]
// define the var array

After that, add:

Code: [Select]
$default_bridge_data['phpbb3'] = array(
  'full_name' => 'phpBB version 3',
  'short_name' => 'phpbb3',
  'support_url' => 'http://www.phpbb.com/',
  'full_forum_url_default' => 'http://www.yoursite.com/board',
  'full_forum_url_used' => 'mandatory,not_empty,no_trailing_slash',
  'relative_path_to_config_file_default' => '../board/',
  'relative_path_to_config_file_used' => 'lookfor,config.php',
  'use_post_based_groups_default' => '0',
  'use_post_based_groups_used' => 'radio,1,0',
   'cookie_prefix_default' => '',
   'cookie_prefix_used' => 'cookie',
);

If you want to enable logout redirection it seems you need to hack phpbb to support this. This step is optional.

edit the phpbb file ucp.php

find:

Code: [Select]
meta_refresh(3, append_sid("{$phpbb_root_path}index.$phpEx"));

$message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a> ');
   
      
change to :

Code: [Select]
meta_refresh(3, request_var('redirect', append_sid("{$phpbb_root_path}index.$phpEx")));

$message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . request_var('redirect', append_sid("{$phpbb_root_path}index.$phpEx")) . '">', '</a> ');

That tells phpbb to look for the redirect parameter being passed in the url.

After that, install the bridge using the bridge manager.

Feedback welcome, especially since I don't use phpbb myself. If you have issues please remember to provide all the requested information (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#integrating_support_start).

Note: This bridge file only works 'out of the box' for new installs of phpbb3. If your forum has been upgraded from phpbb2 then you need to make this code change below.

Edit phpbb3.inc.php, find

Code: [Select]
$this->admingroups = array(5);

Change the 5 to the admin group in phpbb3. You can find this out by doing the following

Quote
Go to your forum, log into AdminCP; click on the tab "Users and Groups" and go to "Manage groups". you'll see all your forum groups now and next to them 3 links (Settings/Members/Delete); click on "Settings" next to the group you want to give portal admin permissions. now take a look at the address line, which should similarly to this:

http://yourdomain.com/phpbb3/adm/index.php?i=groups&sid=[randomnumbersandletters]&icat=12&mode=manage&action=edit&g=64

In our example above, the group's ID is 64;
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: rphMedia on July 07, 2008, 08:26:11 pm
Just FYI Nibbler, I can't get yours to work. I've had a (hack) bridge in place for phpBB3 since Feb 2007 and it's worked flawlessly.

Can't login at all. Takes me to the forum (logged in), but upon returning to the gallery, still have login option.

Disabled the bridge via the database, still can't login. I get the CPG login screen, but it takes me to the gallery home and still have the login option. Totally lost here as I have the bridging disabled ??

Deleted all cookies, same thing. I have no core-code mods.

Am I missing something?



(I've since enabled the previous hack and I'm back to our original).
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: rphMedia on July 08, 2008, 12:45:28 pm
OK, this has nothing to do with your bridge file. I'm trying to hunt the problem down.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: fornit on July 16, 2008, 11:03:49 am
Hi,

I've just taken a look into phpbb3.inc.php

Well ... to be honest, I'm not really sure whether everything has been considered.

Are you aware that there are three types of cookies in phpBB3 with respect to session management ("_sid", "_u" and "_k") cookies?

Are you also aware that there is a parameter named "session_length" in phpBB3 which limits the validity of session?

And are you aware that "user_level" is an attribute which has existed in the user table of phpbb2 but doesn't exist in phpbb3 any more?


These are only a few points after having a very quick look ...

Kind reagrds
fornit
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Nibbler on July 16, 2008, 11:09:19 am
No, since I don't use PHPBB. That's the point of releasing the file and getting feedback. I will look into these things.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Raven24 on July 16, 2008, 01:37:02 pm
The thing I can say about this bridge is that at least the ids from the user galleries are correctly matched with the usernames from the phpBB DB.
But as mentioned before login, etc. doesn't work... but thank you for working on a bridge!
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: mathias.frei on July 16, 2008, 03:09:33 pm
If i upload this Mod, i have follow Error-Message:

Quote
Fatal error: Cannot redeclare cpggetmicrotime() (previously declared in /home/www/web373/html/pa-po/gallery/include/init.inc.php:35) in /home/www/web373/html/pa-po/gallery/include/init.inc.php on line 33

Is there a solution for this problem?
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Nibbler on July 16, 2008, 03:11:58 pm
You probably put the wrong path in 'relative path to your BBS' and pointed back to Coppermine instead of phpbb.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: mathias.frei on July 16, 2008, 04:00:08 pm
The transmission works well, it was the relative path. Now I can log in the forum, but in the gallery, I am not logged in. The Cookies has the same name and the Path is the same.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Nibbler on July 16, 2008, 04:18:06 pm
There's a typo in the bridge file.

Code: [Select]
$session_id = addslashes($_COOKIE[$this->cookie_name . '_sid']);
That should be

Code: [Select]
$this->session_id = addslashes($_COOKIE[$this->cookie_name . '_sid']);
*Now fixed in the version posted*
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Dogbot on July 16, 2008, 08:06:02 pm
Many thanks Nibbler for releasing this bridge file for phpbb/coppermine users.

I found some code elsewhere here on the site for autocreating albums, here it is..do you think this will work with your bridge file or do you know a better way of doing it.

Code: [Select]

function authenticate()
        {
                global $USER_DATA, $CONFIG;

                if (!($auth = $this->session_extraction()) && !($auth = $this->cookie_extraction())) {
                        $this->load_guest_data();
                } else {
                        list ($id, $cookie_pass) = $auth;
                        $f = $this->field;

                        if (isset($this->usergroupstable)){
                                $sql = "SELECT u.{$f['user_id']} AS id, u.{$f['username']} AS username, u.{$f['password']} AS password,

ug.{$f['usertbl_group_id']} AS group_id ".
                                           "FROM {$this->usertable} AS u, {$this->usergroupstable} AS ug ".
                                           "WHERE u.{$f['user_id']}=ug.{$f['user_id']} AND u.{$f['user_id']}='$id'";
                        } else {
                                $sql = "SELECT u.{$f['user_id']} AS id, u.{$f['username']} AS username, u.{$f['password']} AS password,

u.{$f['usertbl_group_id']}+100 AS group_id ".
                                           "FROM {$this->usertable} AS u INNER JOIN {$this->groupstable} AS g ON

u.{$f['usertbl_group_id']}=g.{$f['grouptbl_group_id']} ".
                                           "WHERE u.{$f['user_id']}='$id'";
                        }

                        $result = cpg_db_query($sql, $this->link_id);

                        if (mysql_num_rows($result)){
                                $row = mysql_fetch_assoc($result);
                                mysql_free_result($result);

                                $db_pass = $this->udb_hash_db($row['password']);
                                if ($db_pass === $cookie_pass) {
                                        $this->load_user_data($row);
                                } else {
                                        $this->load_guest_data();
                                }
                        } else {
                                $this->load_guest_data();
                        }
                }

                $user_group_set = '(' . implode(',', $USER_DATA['groups']) . ')';

        $USER_DATA = array_merge($USER_DATA, $this->get_user_data($USER_DATA['groups'][0], $USER_DATA['groups'], $this->guestgroup));

                if ($this->use_post_based_groups){
                        $USER_DATA['has_admin_access'] = (in_array($USER_DATA['groups'][0] - 100,$this->admingroups)) ? 1 : 0;
                } else {
                        $USER_DATA['has_admin_access'] = ($USER_DATA['groups'][0] == 1) ? 1 : 0;
                }

                $USER_DATA['can_see_all_albums'] = $USER_DATA['has_admin_access'];

                // avoids a template error
                if (!$USER_DATA['user_id']) $USER_DATA['can_create_albums'] = 0;

                // For error checking
                $CONFIG['TABLE_USERS'] = '**ERROR**';


                define('USER_ID', $USER_DATA['user_id']);
        define('USER_NAME', addslashes($USER_DATA['user_name']));
        define('USER_GROUP', $USER_DATA['group_name']);
        define('USER_GROUP_SET', $user_group_set);
        define('USER_IS_ADMIN', $USER_DATA['has_admin_access']);
        define('USER_CAN_SEND_ECARDS', (int)$USER_DATA['can_send_ecards']);
        define('USER_CAN_RATE_PICTURES', (int)$USER_DATA['can_rate_pictures']);
        define('USER_CAN_POST_COMMENTS', (int)$USER_DATA['can_post_comments']);
        define('USER_CAN_UPLOAD_PICTURES', (int)$USER_DATA['can_upload_pictures']);
        define('USER_CAN_CREATE_ALBUMS', (int)$USER_DATA['can_create_albums']);
        define('USER_UPLOAD_FORM', (int)$USER_DATA['upload_form_config']);
        define('CUSTOMIZE_UPLOAD_FORM', (int)$USER_DATA['custom_user_upload']);
        define('NUM_FILE_BOXES', (int)$USER_DATA['num_file_upload']);
        define('NUM_URI_BOXES', (int)$USER_DATA['num_URI_upload']);

        //Autocreating albums
        if($USER_DATA['user_id'] != 0)
        {
                $cid = 10000 + $USER_DATA['user_id'];
                $sql = "SELECT aid FROM cpg14x_albums WHERE category = " . $cid;
                $result = cpg_db_query($sql);
                if(mysql_num_rows($result) == 0)
                {
                        $sql = "INSERT INTO cpg14x_albums (category, title, uploads, pos) VALUES ('$cid', 'My Album', 'NO',  '1')";
                        cpg_db_query($sql);
                }
                mysql_free_result($result);
        }
                $this->session_update();
        }

Many thanks once again !

Dogbot.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Joachim Müller on July 17, 2008, 08:12:08 am
Do not clutter this thread with unrelated stuff - start a thread of your own instead on the regular support board, providing the needed details there.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: mathias.frei on July 17, 2008, 09:07:58 am
There's a typo in the bridge file. (...)

Thank you very much. The bridge works properly.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Raven24 on July 17, 2008, 02:45:36 pm
Yes, works here too! Thank you VERY much!
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: simplysnaps on July 25, 2008, 01:09:00 pm
I have just installed this and when I click login in coppermine it takes me to the phpbb3 login page, I then login which works fine but when I go back to the gallery I'm not logged in and of course clicking the login option takes me to the phpbb3 page where I am logged in?

help please
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Nibbler on July 25, 2008, 01:30:04 pm
If you have issues please remember to provide all the requested information (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#integrating_support_start).
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: simplysnaps on July 25, 2008, 01:41:17 pm
apologies for that being harrassed and missed the two obvious things

1) post correct info when asking for help

2) remember to get the cookie prefix correct or the gallery wont find the cookie that says you are logged in :-)

all working now  ;D
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Imaboyo on July 27, 2008, 04:53:17 pm
I am having some problems trying to get this bridge completely working. My phpBB database is a conversion from the 2.x series and I think this might be having an effect on the bridge. I am using phpBB 3.0.2 and coppermine 1.4.18. I have already had to modify the bridge slightly to make me recognised as an administrator. The admin group was hard coded as 5 (line 112) where this is very much different in a converted board.

The gallery recognises that I am logged in, both with admin accounts and standard user accounts. When I visit the groups tab while logged in as admin the bridge fails to import the groups from phpbb so I am unable to apply permissions to any usergroups. Only the four default coppermine groups are displayed (Admin, Registered, Guests & Banned).

Can anyone suggest something I can do to try and fix this?
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Nibbler on July 27, 2008, 05:09:32 pm
Did you enable 'post based groups' when you activated the bridge?
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: rphMedia on July 27, 2008, 05:13:55 pm
FWIW, I'm having the exact same problem (yes on Post-based groups)
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Imaboyo on July 27, 2008, 07:23:10 pm
Did you enable 'post based groups' when you activated the bridge?
Yes, it is turned on. I'm not sure if its any help but here is the contents of my gal_bridge table (fields with no value not displayed)
Code: [Select]
('short_name', 'phpbb3'),
('full_forum_url', 'http://www.octavianvanguard.net/forum'),
('relative_path_to_config_file', '../forum/'),
('use_post_based_groups', '1'),
('cookie_prefix', 'phpbb3_cm3ls'),
('use_standard_groups', '0'),
('admin_group', '497'),
('recovery_logon_failures', '0'),
('recovery_logon_timestamp', '2008-07-27 07:10:06');
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: cognoscento on July 31, 2008, 04:58:42 am
I also had the problem regarding a lack of admin access in CPG once I installed the bridge. Manually adjusting the phpbb3 bridge file  (line 120?) to the admin group # (299 in my case) seemed to work perfectly.

Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: paithan on July 31, 2008, 08:24:41 am
I also had the problem regarding a lack of admin access in CPG once I installed the bridge. Manually adjusting the phpbb3 bridge file  (line 120?) to the admin group # (299 in my case) seemed to work perfectly.

This works for me as well, except my admin group was 37, mine was also converted from PHPBB2.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Imaboyo on July 31, 2008, 08:49:13 pm
Do your coppermine installations collect the groups from the phpbb3 tables correctly so you can permission them? I'm still having no luck with mine.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: paithan on August 01, 2008, 12:21:21 am
Do your coppermine installations collect the groups from the phpbb3 tables correctly so you can permission them? I'm still having no luck with mine.

It appears mine are grouping correctly when I look at my users, everyone but my account is in the registered group in Coppermine.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: dannypritchett01 on August 02, 2008, 08:05:30 am
This works for me as well, except my admin group was 37, mine was also converted from PHPBB2.

I am having the same problem. My bridge file will take me to the login page, I login and it shows that I am logged in on the message board. Yet it does not show I am logged in on the coppermine. I however checked to make sure of the numbers and they are...

Database Info for PHPBB3 Groups
Guests 1
Registered 2
Registered_Coppa 3
Global_Moderators 4
Administrators 5
Bots 6

Code: [Select]
// define the var array
$default_bridge_data['phpbb3'] = array(
  'full_name' => 'phpBB version 3',
  'short_name' => 'phpbb3',
  'support_url' => 'http://www.phpbb.com/',
  'full_forum_url_default' => 'http://www.mysite.com/forums',
  'full_forum_url_used' => 'mandatory,not_empty,no_trailing_slash',
  'relative_path_to_config_file_default' => '../forums/',
  'relative_path_to_config_file_used' => 'lookfor,config.php',
  'use_post_based_groups_default' => '0', ( I SET IT TO YES WHATEVER NUMBER IT WOULD BE AFTER I DID THAT)
  'use_post_based_groups_used' => 'radio,1,0',
   'cookie_prefix_default' => '',
   'cookie_prefix_used' => 'phpbb3_dgff',
);

PHPBB3 Bridge File on lines 111-113
      
Code: [Select]
// Group ids
$this->admingroups = array(5);
$this->guestgroup = 1;

So as far as I see everything should be working. Its setup correctly it just dont work. Any other information you need just ask.

My gallery is located at http://www.mysite.com/cpg
So the above relative path should be right, correct?
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: paithan on August 02, 2008, 08:58:42 am
I'm guessing your PHPBB3 is on your server under /forum directory?

Also what did you use for your cookie prefix when you first setup the bridge (found in the PHPBB ACP)?
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: dannypritchett01 on August 03, 2008, 07:12:45 am
Cookie: phpbb3_dgff

PHPBB3 URL: http://www.dannysgamefowlfarm.com/forums
Coppermine URL: http://www.dannysgamefowlfarm.com/cpg

PHPBB3 Server Location: /usr/local/4admin/apache/vhosts/dannysgamefowlfarm.com/forums/
Coppermine Server Location: /usr/local/4admin/apache/vhosts/dannysgamefowlfarm.com/cpg/
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Nibbler on August 08, 2008, 06:53:06 pm
To enable 'post based groups' support you need to add a line I forgot to add.

Find

Code: [Select]
require_once($BRIDGE['relative_path_to_config_file'] . 'config.php');


After that, add

Code: [Select]
$this->use_post_based_groups = $BRIDGE['use_post_based_groups'];
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: rphMedia on August 08, 2008, 07:04:44 pm
Worked a treat.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: prettyscrappy on August 25, 2008, 06:35:21 pm
I also had the problem regarding a lack of admin access in CPG once I installed the bridge. Manually adjusting the phpbb3 bridge file  (line 120?) to the admin group # (299 in my case) seemed to work perfectly.



I am having this problem now, and I can't figure it out. (This phpbb3 bridge file is phppp3.inc.php?) If not which file? Also I am a bit confused about my admin group # how do I find what I need to input?
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: lemm on September 11, 2008, 01:54:18 am
Thank you so much - it works fine. :)
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: dem_ on September 17, 2008, 12:44:54 am
just to colaborate a bit i resolved the "Im logged in the forum but not in the gallery issue" by using phpmysql and copy the name of the cokkie found in the configuration of phpbb3 to 2 places the table bridge and the tabe config of coppermine, in both places was different one was the name of my old phpbb2 board and the one in coppermine was sql something... Now im logged in the 2 places,  but im not and admin in coppermine, the table bride has aal the groups empty I placed 1456 (the ID of my admin group in phpbb3) in the bridge table under "admin_group" field but im still not an admin, were do i supose to find the group id? is "group_id" from Table: phpbb3_groups ???

Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Nibbler on September 17, 2008, 01:20:48 am
You need to edit the bridge file here:

Code: [Select]
$this->admingroups = array(5);
Change 5 to 1456.

You shouldn't set Coppermine's cookie name to the same as phpbb.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: ksxj on September 30, 2008, 05:40:05 pm
which file is this located in?  Thanks

To enable 'post based groups' support you need to add a line I forgot to add.

Find

Code: [Select]
require_once($BRIDGE['relative_path_to_config_file'] . 'config.php');


After that, add

Code: [Select]
$this->use_post_based_groups = $BRIDGE['use_post_based_groups'];
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Nibbler on September 30, 2008, 06:32:23 pm
It's already done in the current version of the file attached to this thread.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: purrlions on October 07, 2008, 07:14:44 am
hi,

i am REALLY out of my depth here, so please forgive any stupid things i say or do in this post.  my goal is to have my phpbb 3.0.2 install and my coppermine 1.4.19 install use the same user database, so that registering or logging in on one, does so for both.  they are both clean installs more or less...  phpbb might have been 3.0.1 new, and coppermine was 1.4.18 new.

this thread is very confusing.  can someone layout in a single post what all i need to do to make this happen?  i was hoping it would be in the FAQ or install docs.  there's all kinds of posts in this thread saying "add this line" and so on...  i just want one complete set of instructions for dummies like me.

also, the bridging page lists "phpbb2.2"  ...i don't think there ever was a 2.2

anyway, i take it i need to make a txt php file, copy stuff into it, and upload it as the bridge instructions.  is that right?

what is "post based groups"?

do coppermine and phpbb3 use the same cookie name?  do i need to change the defaults?

thx!
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Nibbler on October 07, 2008, 01:52:55 pm
The file attached to the first post is up to date. Follow the instructions there then PHPBB3 will appear in the bridge manager.

PHPBB 2.2 became PHPBB3. People asked for a bridge for it but it was never actually released.

Cookie names and 'post based groups' are described in the manual.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: purrlions on October 09, 2008, 07:56:10 am
hi,

thx!  i think i got it going...  i'll see when people actually try to use it.

two things tho...  the one bridge says "2.0.18 and newer"  ...if i hadn't checked here i would have used that one by mistake.  i think it should be made clear its only for 2.0.18 to .23

second, i don't understand the optional redirect thing.  i didn't do it yet, so my question is what is the current logout behavior for the gallery / forum, and what will the new behavior be if i implement the optional code?

sorry for the dummy questions, this isn't my forte!
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: martyn.pinches on October 10, 2008, 11:12:54 pm
I hope this is the correct place to post, apologies if it isn't  ::)

PHPBB3 3.0.2 ~ clean new install
Coppermine 1.4.19 ~ clean new install

All mandatory bridging mods completed and checked (optional mods not done yet)
Cookies are left at their default settings
No plugins installed
All on a test server pending going live ASAP

PHPBB3 and Coppermine both work standalone but when I run the bridge manager wizard I get taken to the board index of PHPBB3 when I login or call up the URL of Coppermine ~ my only way to access Coppermine is to run the wozard again and disable the bridge.

Any advice gratefully received

Martyn
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Nibbler on October 10, 2008, 11:16:05 pm
That happens if you set the gallery to be available to logged in users only. If it doesn't recognise you as a user you will get redirected to the forum to login.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Enrick on October 19, 2008, 12:32:27 am
Hi,

I´ve installed phpBB3 and Coppermine, both are working properly standalone.
Now I´ve tried to bridge Coppermine and the board.
The bridging has finished, but now I have some problems :

1. After login oder logout in Coppermine, the user will be directed to my phpBB3-forum.

2. No link to coppermine appears in the menu - or anywhere else - of my phpBB3 forum.

Coppermine install: http://enrick.cwsurf.de/gallery
Forum install: http://enrick.cwsurf.de/phpBB3
Coppermine Version: 1.4.19
PHPBB Forum Version: 3.0.2

Test Account
User Name: Testuser
Password: tousefortest

BridgeManager settings
Bridge app URL : Sorry, but I don´t understand this !
Relative path to your bridge app´s config file : ../phpBB3
Use post-based groups : 1

The Testuser-account has admin rights

I hope there´s a solutions for this problem.

Regards,

Mat
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Joachim Müller on October 19, 2008, 03:00:55 pm
1. After login oder logout in Coppermine, the user will be directed to my phpBB3-forum.
That's expected behaviour.

2. No link to coppermine appears in the menu - or anywhere else - of my phpBB3 forum.
That's expected behaviour as well.

Read up the bridging documentation (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#integrating)!

The Testuser-account has admin rights
Yikes! Don't do that. Test user mustn't have admin powers. Remove admins powers from that user immediately.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: attempt on October 30, 2008, 09:33:32 pm
That happens if you set the gallery to be available to logged in users only. If it doesn't recognise you as a user you will get redirected to the forum to login.

It happend to me after a default install.
How can I change that if I can't acces anymore admin.php in Coppermine?
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Nibbler on October 30, 2008, 11:24:09 pm
Disable the bridge as described in the manual.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: johnny-b on November 07, 2008, 03:45:16 am
i have tryed this bridge and it does work for 90%

but the only issue i am having is:
When phpbb3 and coppermine are bridged and i log out on phpbb3 or coppermine with my admin user account, i can not approace the coppermine link to just login there, in a bridged status.

when i type in my coppermine link (while bridged)

http://mydomain.com/fotogallery/index.php and i hit enter?

i get this:

http://www.mydomain.com/ucp.php?mode=login&redirect=http%3A%2F%2Fwww.mydomain.com%2Ffotogallery%2F

the phpbb3 bridge in coppermine is using the phpbb3 cookie that must be right?
or is it something rong in the phpbb3.inc.php bridge file that is rong?

how can i prevent this from happening?

Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: johnny-b on November 07, 2008, 03:48:27 am
also my coppermine is assigned only that registered users can see inside my coppermine.
but my phpbb3 has permissions to see as guest but not to comment in it.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: chrishoggy on November 11, 2008, 05:29:05 pm
Hi guys.
I have the following issue with permissions and phpbb3 groups.

phpbb3's "Pre-defined" groups and permissions work perfectly, and I can change permissions/options etc in cpg. However, the "User defined" groups in phpbb3, are not working/bridging correctly. If I go in to the cpg permissions settings, all the user defined groups show up fine etc, and permissions can be changed. But cpg only seems to be using the permissions set by the "Pre-defined" user groups, eg, administrator,global mod, registered etc When I look at users in cpg, all carry the standard "Pre-defined" user group titles. I've bridged with and without post based groups, and get the same results.

Versions:
cpg 1.4.x = latest updated version
phpbb 3.0.2 = latest updated version
cpg cookie name = one found in pbpbb3 cookie settings.

If anybody could give me some pointers on how to get cpg to accept "User defined" group settings, as well as "Pre-defined", it would be much appreciated.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: chrishoggy on November 11, 2008, 05:43:30 pm
Feel really stupid now, as I've sorted it within mins of posting.
Here is where I was going wrong, and this may be where others go wrong too.
When I've added users to a user defined group, I've literally just added that group to the users groups list, and this works fine for phpbb. In order for a phpbb user defined group permission to work in cpg, you have to set it as that users "default group" in phpbb3 member control.

So to put it simply, cpg only uses the phpbb members default user group. It will not take in to account any other user groups that person may be in/added to.
I was using smf bridged with cpg before, and the bridge gave permissions for all groups that member was in, rather than just their default group.

Sorry for the confusion, and thanks again for this bridge 8)
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: edenffs on November 11, 2008, 08:37:49 pm
Is it possible to include files that are attached to phpbb3 forum posts to the coppermine gallery?
by attached I mean files that are uploaded as attachments to forum posts.
Title: Re: [cpg1.4.x]: PHPBB3 bridge
Post by: Joachim Müller on November 12, 2008, 12:15:33 am
Start a thread of your own, doing exactly as suggested in the sticky thread on the bridging support board cpg1.4 (BBS) integration / bridging (http://forum.coppermine-gallery.net/index.php/board,50.0.html) named "When requesting bridge support - mandatory! (http://forum.coppermine-gallery.net/index.php/topic,24032.0.html)". To avoid this thread from getting cluttered even more with individual issues I have to lock it *sigh*.
Title: Patch for phpbb3 bridge
Post by: Chone on March 20, 2009, 03:00:04 pm
Problem: When a user is a member of many groups, and the administrators group is not his default group (but this user is a member of the administrators group), he's not an admin within Coppermine.

Attached to this post is a patch, which should be run against the phpbb3.inc.php file as found on http://forum.coppermine-gallery.net/index.php/topic,53678.0.html.

I am definitely new to Coppermine, so I don't know exactly if this is the correct way or not, but it works for me.

Nibbler, would it be able to apply this patch to the download you are offering?