Logging on not working correctly Logging on not working correctly
 

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

Logging on not working correctly

Started by Watchmanz, November 01, 2004, 04:24:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Watchmanz

Hello, I have installed Coppermine today with Invision PowerBoard v1.3, and I thought I had it finally working correctly, but now I seem to have a major problem regarding logging in and out.

If I go to my main gallery page (www.nutterz.com/gallery) and try to login I get the main login page. If I click 'login' though I get "poage cannot be displayed".

If I log in to my BBS first and then go to the gallery page, the page shows with me already logged in. If I click 'logout' I get "page cannot be displayed" and if I click anything else such as "admin tools" etc I also get "page cannot be displayed".

Both the BBS and the gallery reside on the same server (www.nutterz.com/nutz/ and www.nutterz.com/gallery/ respectively) and I have amended the invisionboard.inc.php file in the bridge directory and the init.inc.php file in the include directory.

One thought is that it could be the cookies, seeing as how it affects logging in etc, but I checked the cookies area of the BBS admin was blank first (as per the installation instructions) so maybe there is a conflict there I am not recognising? I would describe my skill level as basic-to-average in this area so it may well be something straight forward that I have simply overlooked.

My 'invisionboard.inc.php' file reads as follows:

// database configuration
define('IB_DB_NAME', 'nutterz'); // The name of the database used by the board
define('IB_BD_HOST', 'localhost'); // The name of the database server
define('IB_DB_USERNAME', 'nutz'); // The username to use to connect to the database
define('IB_DB_PASSWORD', 'xxxxxx'); // 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', 'http://www.nutterz.com/nutz/');
// ------------------------------------------------------------------------- //
// 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', 'nutz_'); // 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);

and I think I have correctly edited the init.inc.php file too, as follows:

define('COPPERMINE_VERSION', '1.3.2');
// User database integration
// Uncomment the applicable line if you want to use it
// define('UDB_INTEGRATION', 'phpbb');
define('UDB_INTEGRATION', 'invisionboard');
// define('UDB_INTEGRATION', 'vbulletin23');
// define('UDB_INTEGRATION', 'vbulletin30');
// define('UDB_INTEGRATION', 'yabbse');
// define('UDB_INTEGRATION', 'smf');
// define('UDB_INTEGRATION', 'woltlab21');
// define('UDB_INTEGRATION', 'punbb');
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');
// Start output buffering
ob_start();
// Report all errors except E_NOTICE
// This is the default value set in php.ini
// error_reporting (E_ALL ^ E_NOTICE);
error_reporting(E_ALL);

I have tried to see if there were any similar problems here so I could get the answer without having to ask ina  separate thread but I can't find anything that sounds the same.

I would be grateful if someone could give me a bit of a helping hand here.

Thanks  ;D
-------------------------------------------------------------------------------
Never take life seriously --- nobody gets out alive anyway!
-------------------------------------------------------------------------------

Nibbler

Quote from: Watchmanz on November 01, 2004, 04:24:31 AM
define('IB_WEB_PATH', 'http://www.nutterz.com/nutz/');

What you have here is not a path, it is an url. You must provide a path.

Watchmanz

Thanks Nibbler, I appreciate the help. It seems to be working now except for one strange thing ......

If I click on 'login' on Coppermine it uses my forum login (no problems with that) and once I log in it takes me to my forum with the URL of
http://www.nutterz.com/nutz/index.php?http://www.nutterz.com/gallery/
Obviously all that is showing is the BBS index.php page. I realise this should be obvious but I'm damned if I can work it out.

The Invision Board is at www.nutterz.com/nutz and Coppermine is installed on www.nutterz.com/gallery.

The 'invisionboard.inc.php' file now reads as follows:

// database configuration
define('IB_DB_NAME', 'nutterz'); // The name of the database used by the board
define('IB_BD_HOST', 'localhost'); // The name of the database server
define('IB_DB_USERNAME', 'nutz'); // The username to use to connect to the database
define('IB_DB_PASSWORD', 'xxxxxx'); // 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', '/nutz/');
// ------------------------------------------------------------------------- //
// 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', 'nutz_'); // 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);

Sorry to be so dense in this installation. I'm learning as quickly as I can but after a day and a half on the installation, I can't work out what may still be wrong.
-------------------------------------------------------------------------------
Never take life seriously --- nobody gets out alive anyway!
-------------------------------------------------------------------------------

Watchmanz

Update: Everything seems to be working perfectly now except the problem mentioned earlier, as follows:

If I click on 'login' on Coppermine it uses my forum login (no problems with that) and once I log in it takes me to my forum with the URL of
http://www.nutterz.com/nutz/index.php?http://www.nutterz.com/gallery/
This just shows the index.php page of course ..... if I just logged in through the gallery shouldn't it take me to the gallery main page once the login is complete?
-------------------------------------------------------------------------------
Never take life seriously --- nobody gets out alive anyway!
-------------------------------------------------------------------------------

Nibbler

Not all BBs support redirection after login - that is decided by the forum's coders not by us,

XiLLiON

So, if we cant redirect by our forums how else are we going to use the Bridge with IPB ???

Nibbler

Make a link back to the gallery from your forum as suggested in the docs perhaps ?