InvisionBoard 2.0.3 Integration InvisionBoard 2.0.3 Integration
 

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

InvisionBoard 2.0.3 Integration

Started by xn85turbo, November 06, 2005, 11:35:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xn85turbo

I tried integrating this today withou success. I got the normal error;

Fatal error :
There was an error while processing a database query

I tried obtaining the fix from the bottom of the first post in this thread;

http://forum.coppermine-gallery.net/index.php?topic=8334.0

unfortunatetly it prompts me to login when i am already authenticated. I read all 6 pages of the post and followed the instructions including deleting my cookies and even tring as a guest user. I still can not download the zip. Is there anyone who has it or can re post it for me?

xn85turbo

ok I was able to get the files from the downlaod section. I filled them out but the login seems to fail (can't get a login page).


xn85turbo

ok well I kinda got it working. I hit the login page for coppermin and it sends me to ipb login but after I login it sends me to teh forum not the gallery :(. What can I do to fix this?

Joachim Müller

maybe you can't "fix" this - not all bbs apps allow you to redirect again after login - maybe ipb doesn't allow this for security reasons. As a workaround, you should integrate a link to your gallery into your forum's navigation.

xn85turbo

I would be more than happy to do so (any url for this)? I tried setting this up with invision board 2.0.3 and coppermine 1.3.5. I intergrated it two different ways;

1: using the same database as my ibp forum (suzuki).
2: using a differrent database just for coppermine (albums).

Either way when I login to the forum from the redirect it lets me in to the forum but if I hit back to coppermine gallery it says I am not logged in. I will set this up however you want me to so you can check my settings just let me know how you want it as it only takes a few minutes to do.

I am also using:
httpd-2.0.54-10.2
php-5.0.4-10
php-gd-5.0.4-10

Now I have tested coppermine 1.3.5 with success in standaline configuration and tested uploads etc... so I know that all works. it is just the "bridging" that is screwing me. I also see people posting that everything is working with ibp 2.0.4 though their newest offering is 2.1.3.

Nibbler

You need to post the information requested in this thread: http://forum.coppermine-gallery.net/index.php?topic=17684.0

IPB is commercial software, the bridge file was written by an IPB user. None of the dev team owns a copy as far as I know, so you know more about the software than we do.

xn85turbo

Sorry for taking so long, very busy at work these days.

The account info in the bridge file is fake but the db name is real and so is the host!

gallery link: http://www.xn85turbo.com/album/
forum link: http://www.xn85turbo.com/forum/

login: coppermine
password: gallery

bridge file (2.0 mod):
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery 1.3.1                                            //
// ------------------------------------------------------------------------- //
// Copyright (C) 2002-2004 Gregory DEMAR                                     //
// http://www.chezgreg.net/coppermine/                                       //
// ------------------------------------------------------------------------- //
// Updated by the Coppermine Dev Team                                        //
// (http://coppermine.sf.net/team/)                                          //
// see /docs/credits.html for details                                        //
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify      //
// it under the terms of the GNU General Public License as published by      //
// the Free Software Foundation; either version 2 of the License, or         //
// (at your option) any later version.                                       //
// ------------------------------------------------------------------------- //
// CVS version: $Id: invisionboard.inc.php,v 1.7 2004/07/09 06:57:55 gaugau Exp $
// ------------------------------------------------------------------------- //
// Invision Power Board v1.1 Integration for Coppermine                      //
// ------------------------------------------------------------------------- //
// Modify the values below according to your Board installation              //
// ------------------------------------------------------------------------- //

// database configuration
define('IB_DB_NAME', 'suzuki'); // The name of the database used by the board
define('IB_BD_HOST', 'localhost'); // The name of the database server
define('IB_DB_USERNAME', 'login'); // The username to use to connect to the database
define('IB_DB_PASSWORD', 'password'); // The password to use to connect to the database

// The web path to your Invision Board directory
// In this example http://yoursite_name.com/ivboard/
define('IB_WEB_PATH', '/forum/');
// ------------------------------------------------------------------------- //
// You can keep the default values below if your installation is standard
// ------------------------------------------------------------------------- //
// The prefix for the Invision Board cookies
define('IB_COOKIE_PREFIX', ''); // The prefix used for board cookies

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I copied the login.php file to the forum/sources/login.php  from the mod 2.0 hack.


Nibbler

You need to change this to reflect your cookie prefix, ie.

define('IB_COOKIE_PREFIX', 'x7iv2'); // The prefix used for board cookies

More importantly, you seem to be using the bridge for ipb 1.1 when you should be using the bridge file for ipb2 found on the mods board.

xn85turbo

You are correct and my bad. I got it from the download links since I can not for the life of me get the zip from the INVISION mod posting at the bottom of post one. Sourceforge is down now as well so I will have to wait.

xn85turbo

finally got it, hmm;

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery 1.3.1                                            //
// ------------------------------------------------------------------------- //
// Copyright (C) 2002-2004 Gregory DEMAR                                     //
// http://www.chezgreg.net/coppermine/                                       //
// ------------------------------------------------------------------------- //
// Updated by the Coppermine Dev Team                                        //
// (http://coppermine.sf.net/team/)                                          //
// see /docs/credits.html for details                                        //
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify      //
// it under the terms of the GNU General Public License as published by      //
// the Free Software Foundation; either version 2 of the License, or         //
// (at your option) any later version.                                       //
// ------------------------------------------------------------------------- //
// CVS version: $Id: invisionboard.inc.php,v 1.7 2004/07/09 06:57:55 gaugau Exp $
// ------------------------------------------------------------------------- //
// Invision Power Board v1.1 Integration for Coppermine                      //
// ------------------------------------------------------------------------- //
// Modify the values below according to your Board installation              //
// ------------------------------------------------------------------------- //

// database configuration
define('IB_DB_NAME', 'suzuki'); // The name of the database used by the board
define('IB_BD_HOST', 'localhost'); // The name of the database server
define('IB_DB_USERNAME', 'login'); // The username to use to connect to the database
define('IB_DB_PASSWORD', 'password'); // The password to use to connect to the database

// The web path to your Invision Board directory
// In this example http://yoursite_name.com/ivboard/
define('IB_WEB_PATH', '/forum/');
// ------------------------------------------------------------------------- //
// You can keep the default values below if your installation is standard
// ------------------------------------------------------------------------- //
// The prefix for the Invision Board cookies
define('IB_COOKIE_PREFIX', 'x7iv2'); // The prefix used for board cookies

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Still no go. the one I downloaded and used from teh downlaod section was:

cpg1.3.1_bridge_IPB2.zip

the one from teh bottom of post one in INVISION mod:

CPM131_IPB2.zip

xn85turbo

actually it works now. I can hit the back key and I am logged into coppermine wiht my forum login. Is there a url on how to integrate it into ibp as a link?

Nibbler

Great. You'll need to ask the ipb people how to add a link in.