[Solved]: redirected to wrong place by IPB [Solved]: redirected to wrong place by IPB
 

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

[Solved]: redirected to wrong place by IPB

Started by dancingbear, June 16, 2004, 10:57:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dancingbear

When logging out of Coppermine (used with IPB v1.3.1) it then redirects to the forums index (http://www.domain.com/forums/index.php?). Not where I'd want it, but I can live with that.

What seems broken for some reason is the logging-in.  It goes to the IPB login page all well and good (and logs in successfully) but the IPB "please wait while we transfer you...." screen re-directs to
http://www.domain.com/forums/index.php?http://www.domain.com/userpics/config.php

I'm hoping that the log-out problem will fix itself when the problem is fixed with the logging in. Any ideas?

PS: I've installed the new invisionboard.inc.php, with no noticable effect.

hyperion

Actually, it should redirect you to forum/index.php?&act=Login&CODE=00.  In any case, I can't do anything with the info you provided.  Post your bridge settings, or even the entire bridge file (remove sensitive data like passwords and usernames, but leave paths intact.) You may have a corrupt file, or you may have set the paths incorrectly.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

dancingbear

I'm pretty sure it's not a corrupt bridge file, as the same thing happened with Coppermine v1.2 (which I setup but gave up with when I encountered this problem), then the full Coppermine v1.3 download, and with the updated bridge file that I downloaded from your post in another thread in this forum.

Other than this login problem, everything works great.

Notes:
1. I'm using IPB v1.3.1.
2. IB_DB_HOST is not 'localhost' because DBs are on a different server. This all works fine tho.

Nothing was changed (in any files, except init.inc.php to activate invisionboard) outside of what is quoted below.

Quote// $Id: invisionboard.inc.php,v 1.5 2004/06/12 14:19:28 datajack Exp $
// ------------------------------------------------------------------------- //
// Invision Power Board v1.1 Integration for Coppermine                      //
// ------------------------------------------------------------------------- //
// Modify the values below according to your Board installation              //
// ------------------------------------------------------------------------- //

// database configuration
define('IB_DB_NAME', 'DB-2'); // The name of the database used by the board
define('IB_BD_HOST', '123.123.123.123'); // The name of the database server
define('IB_DB_USERNAME', 'username'); // 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', '/forums/');
// ------------------------------------------------------------------------- //
// 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

// Prefix and names for the database tables
define('IB_TABLE_PREFIX', 'ibf_'); // The prefix used for the DB tables
define('IB_USER_TABLE', 'members'); // The members table
define('IB_SESSION_TABLE', 'sessions'); // The sessions table
define('IB_GROUP_TABLE', 'groups'); // The groups table

// Group definitions (default values used by the board)
define('IB_VALIDATING_GROUP', 1);
define('IB_GUEST_GROUP', 2);
define('IB_MEMBERS_GROUP', 3);
define('IB_ADMIN_GROUP', 4);
define('IB_BANNED_GROUP', 5);
// ------------------------------------------------------------------------- //
// Nothing to edit below this line
// ------------------------------------------------------------------------- //

Joachim Müller

you can't use different databases (unless you're a coding genius) - that's what the integration guide in the documentation says that comes with the coppermine package. Either move your coppermine tables to your bbs's database or vice versa. If you can't do that, you won't be able to use integration.

GauGau

dancingbear

You've misunderstood.

Both the Coppermine & IPB tables are on the same server (but a different one to the webserver) and in the same database. I don't beleive this is the problem, as the behaviour is the same if that DB is moved onto the same machine as the webserver.

Joachim Müller

you're right, I haven't understood, and I still don't. Please clarify.

GauGau

dancingbear

The webserver is one machine. The databases are on another machine. So, instead of using 'localhost' to access the databases, that setting has to be the IP address of the machine with the databases on.

(I run an extremely busy wwebsite, with about 1/4M users a month - hence the need for the load to be split over two machines ... such a setup shouldn't make any difference to how IPB or Coppermine function).

The problem I'm experiencing seems to be a problem with the re-direct within IPB. Quite why it's doing what it is I don't know.

I could hack the IPB code to fix it without any difficulty, but would rather find the ideal solution.

Tarique Sani

Extremely off topic but calling 250,000 visitors a month very busy is a bit of hyperbole for me ...
SANIsoft PHP applications for E Biz

thespaceport

I am having the same problem with the redirect while logging in.  After you enter your creditials for the board to login you are redirect to (in my case) the portal of my board which is /forum/index.php.  It doesn't take you to the gallery.  All of my databases are on the same server with the website itself and I get the same error as dancingbear.

I would also like to create a link from the Gallery back to my board and don't know how to do it.

I get an error when I click on Admin Tools that says:
"There was an error while processing a database query"

And when I click on Users or Member lists in the gallery it takes me to IPB's ACP login.

I am using Invision Power Board v1.3.1 Final and Coppermine 1.3.0

This is my bridge file and how it is configured:

// database configuration
define('IB_DB_NAME', '*******_ivbd2'); // The name of the database used by the board
define('IB_BD_HOST', 'localhost'); // The name of the database server
define('IB_DB_USERNAME', 'username'); // The username to use to connect to the database
define('IB_DB_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', 'spaceportforum'); // The prefix used for board cookies

// Prefix and names for the database tables
define('IB_TABLE_PREFIX', 'ibf_'); // The prefix used for the DB tables
define('IB_USER_TABLE', 'members'); // The members table
define('IB_SESSION_TABLE', 'sessions'); // The sessions table
define('IB_GROUP_TABLE', 'groups'); // The groups table

// Group definitions (default values used by the board)
define('IB_VALIDATING_GROUP', 1);
define('IB_GUEST_GROUP', 2);
define('IB_MEMBERS_GROUP', 3);
define('IB_ADMIN_GROUP', 4);
define('IB_BANNED_GROUP', 5);

photoman13

Quote from: thespaceport on June 20, 2004, 03:37:55 AM
And when I click on Users or Member lists in the gallery it takes me to IPB's ACP login.

Yeah mine does the same thing.

I really don't want to take GUESTS to my Admin Console of the Forums, just to guess my password.

There a way to fix that?

1.3 Final InvisionBoard and 1.3.1 Coppermine .. using the same bridge setup as posted above.

Joachim Müller

when using coppermine with bbs integration (bridging), you're recommended to switch the display of the memberlist off in coppermine config. The memberlist link was meant for coppermine users without bbs integration, to display the coppermine memberlist.

GauGau

photoman13

Quote from: GauGau on August 17, 2004, 02:41:11 PM
when using coppermine with bbs integration (bridging), you're recommended to switch the display of the memberlist off in coppermine config. The memberlist link was meant for coppermine users without bbs integration, to display the coppermine memberlist.

GauGau

Ok, thanks.

I also have Coppermine witrh phpbb.. and when I click memberlist in coppermine, it take syou to phpbb's memberlist.. so I thought it would do the same with invisionboard. :)


Nibbler

function udb_edit_users()
{
    $target = 'admin.php';
    udb_redirect($target);
}


Is what happens, just change the $target to where you want to go.

Tim77

I dont understand this..... I am using two seporate databases with no special settings and it works fine. I don't see why it would cause any problems anyway. In fact... The two databases I'm using arent on the same cPanel account either.

Quote from: GauGau on June 17, 2004, 01:16:51 PM
you can't use different databases (unless you're a coding genius) - that's what the integration guide in the documentation says that comes with the coppermine package. Either move your coppermine tables to your bbs's database or vice versa. If you can't do that, you won't be able to use integration.

GauGau

Tim77

I get well over a million visitors a month and have no such problems.... Maybe you should look for a different hosting provider. And that's just my site alone... There are over 100 sites on the server and it's still very fast.

Quote from: dancingbear on June 17, 2004, 03:02:24 PM
The webserver is one machine. The databases are on another machine. So, instead of using 'localhost' to access the databases, that setting has to be the IP address of the machine with the databases on.

(I run an extremely busy wwebsite, with about 1/4M users a month - hence the need for the load to be split over two machines ... such a setup shouldn't make any difference to how IPB or Coppermine function).

The problem I'm experiencing seems to be a problem with the re-direct within IPB. Quite why it's doing what it is I don't know.

I could hack the IPB code to fix it without any difficulty, but would rather find the ideal solution.

photoman13

#15
Quote from: Nibbler on August 17, 2004, 02:50:01 PM
function udb_edit_users()
{
   $target = 'admin.php';
   udb_redirect($target);
}


Is what happens, just change the $target to where you want to go.

THANKS Nibbler!.. that in invision's bridge right?

I'll do that :D

---==Edit ===--

Changed to :
function udb_edit_users()
{
    $target = 'index.php?act=Members';
    udb_redirect($target);
}


Works like a charm!!!

THANKS A LOT!!! :D