IPB2 and CPG 1.3.2 Bridge Update IPB2 and CPG 1.3.2 Bridge Update
 

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]

Main Menu

IPB2 and CPG 1.3.2 Bridge Update

Started by Laibeus Lord, October 07, 2004, 10:04:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Laibeus Lord

If your are going to bridge IPB2 and CPG 1.3.2, you will most likely encounter an error with your IPB user's password.

To fix it just follow the steps below:

1)  Open your IPB Bridge file
2)  Look for this line:

$sql = "SELECT id as user_id, name as user_name, mgroup " . "FROM " . $UDB_DB_NAME_PREFIX . IB_TABLE_PREFIX . IB_USER_TABLE . " " . "WHERE id='$cookie_uid' AND password='$cookie_pass'";


3)  Replace it with this new line:

$sql = "SELECT id as user_id, name as user_name, mgroup " . "FROM " . $UDB_DB_NAME_PREFIX . IB_TABLE_PREFIX . IB_USER_TABLE . " " . "WHERE id='$cookie_uid' AND member_login_key='$cookie_pass'";


4)  Upload your file back.

What exactly has changed?
In the non-IPB2 bridge file, it is looking for the column "password" when CPG checks IPB's user table.
We just changed it to "member_login_key" since this is the new column name for the IPB's user passwords.

* Note:  This is for IPB2 only.  Pre-IPB2, the original IPB bridge file should work.
** Once your users log-in, they will be redirected to IPB's log-in page.  After a successful log-in, they will stay at IPB.  They must then click or head to your gallery page.  If you want them to be redirected back to your gallery after logging-in, you need to add a piece of code at IPB's login.php.  On that part, you should ask at IPB's or at Invisionize.com for help.  That is completely out of CPG's area.

Hope that helps.
Enjoy!


(It works for me, check:  http://holy-order.org/gallery/ .)

{figuring out how to add IPB secondary group recognition to CPG IPB bridge....}