Problems once integrated with Invision Board - Page 3 Problems once integrated with Invision Board - Page 3
 

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

Problems once integrated with Invision Board

Started by Filigree, June 11, 2004, 08:05:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Buzz

Ok I got it working thanks to Nibbler PERFECT HELP SORRY FOR MY SCREAMING BUT THIS IS PERFECT ;D ;D ;D

By the way thank you coppermine TEAM This Is the best gallery on the net, anyone using other type of Gallerys for IPB STOP WAISTING YOUR TIME " THIS IS WHAT YOU NEED"

Zeitgeist

You got it to redirect to the image gallery with Invision board? how?
I love GauGau!

dpdenterprises

First allow me to say how much I love this program. I have it installed on one site as a standalone and it's working prefect there. My problem is with another installation of it that I'm trying to integrate with IPB 1.3.1 Final. First, both IPB and Comppermine worked fine prior to my trying to integration. The problem at first was no one was able to login on Coppermine, kept getting the "server couldn't be found" error. After spending hours sereaching here and going through all the posts here over and over, I was able to get Coppermine to at least come up with a 404 error on the redirect.

Here is my setup for the bridge:

// database configuration
define('IB_DB_NAME', 'db111977606'); // The name of the database used by the board
define('IB_BD_HOST', 'db112.perfora.net'); // The name of the database server
define('IB_DB_USERNAME', 'dbo111977606'); // 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 database info is the same as for my IPB forum. Both IPB and Coppermine share the same database.

Here is the config for my init.inc.php file.


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();

Upon trying to log into Coppermine now I get a 404 error. The URL that it shows it's trying to redirect to is  http://www.boxerdogplanet.com/forums/index.php?&act=Login&CODE=00

What do I need to do to?

Thank you in advance!

Nibbler

Posting a link to your gallery would help, plus a test account. I don't think it will like the path as '../forum'  - thats prolly the problem.

dpdenterprises

Quote from: Nibbler on October 24, 2004, 06:17:03 AM
Posting a link to your gallery would help, plus a test account. I don't think it will like the path as '../forum'  - thats prolly the problem.

Sorry, was tired and not thinking last night.   Here's the URL for my gallery:
www.boxerdogplanet.com/cpg132/

test account is:  coppermine
Password is:       test

My IPB board is at this URL: www.boxerdogplanet.com

Thanks for your assistance!

dpdenterprises

Ok, my orginial problem is sorta fixed. Once I added a link on my forum to the gallery it worked fine. But there still is a problem in that when a user is finished with the gallery there is no way to return to the forum. When they click on Log Out they get a 404 page can't be found error. And they must either type the forum address in thier browser or use thier favorite places to return to the forum.


Joachim Müller

In your bridge file, changedefine('IB_WEB_PATH', '../forum/');todefine('IB_WEB_PATH', '');ordefine('IB_WEB_PATH', '/');
You have to understand the term "path"...

Joachim

dpdenterprises

Quote from: GauGau on October 25, 2004, 07:30:03 AM
In your bridge file, changedefine('IB_WEB_PATH', '../forum/');todefine('IB_WEB_PATH', '');ordefine('IB_WEB_PATH', '/');
You have to understand the term "path"...

Joachim

Made these changes with no change in response, stiil gets a 404 error. :-[

Joachim Müller

are you by chance using the "coppermine goes invisionize" hack from the invisionize board, instead of the original coppermine files? Did you upload the changes in your bridge file? I'm getting redirected to http://www.boxerdogplanet.com/forums/index.php?&act=Login&CODE=00 - mind the folder "forums" - this bit of information doesn't fall out of the sky - it has to come from somewhere. Post the lines of your bridge files that you actually modified (the first 50 lines or so), replacing your db username and password with asterisks in your posting.

Joachim

dpdenterprises

#49
Quote from: GauGau on October 26, 2004, 05:38:50 AM
are you by chance using the "coppermine goes invisionize" hack from the invisionize board, instead of the original coppermine files? Did you upload the changes in your bridge file? I'm getting redirected to http://www.boxerdogplanet.com/forums/index.php?&act=Login&CODE=00 - mind the folder "forums" - this bit of information doesn't fall out of the sky - it has to come from somewhere. Post the lines of your bridge files that you actually modified (the first 50 lines or so), replacing your db username and password with asterisks in your posting.

Joachim

No I haven't installed the "coppermine goes invisionize" hack. I downloaded Coppermine from here at commpermine.sourceforge.net and used only the files included in the download. Below is part of my bridge file as requested. As a temp fix I have added a link in the menu for users to return to my forums.

Quote// database configuration
define('IB_DB_NAME', 'db111977606'); // The name of the database used by the board
define('IB_BD_HOST', 'db112.perfora.net'); // The name of the database server
define('IB_DB_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', '/');
// ------------------------------------------------------------------------- //
// 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
// ------------------------------------------------------------------------- //

[edit GauGau]
removed some unneeded lines of code to make this thread more readible.
[/edit]

dpdenterprises

Quote from: zeitgeist on September 28, 2004, 08:25:08 PM
You got it to redirect to the image gallery with Invision board? how?

Well what I ended up doing was adding a link in my forums menu to the gallery. That takes my users to the gallery but they can't get directly back to the forums from the gallery.

Joachim Müller

@dpdenterprises :
Quote from: dpdenterprises on October 26, 2004, 06:27:07 PM
index<?php
I noticed you have the word "index" at the very start of your bridge file (that of course appears on your page as well). It doesn't belong there and has been put in accidentally I guess. I recommend you remove it, making the very first line of your bridge file look like this<?php.

@zeitgeist: afaik IPB just doesn't feature redirection after login to external targets (at least I haven't heard of such a feature). This is only possible if the bbs you use is capable of doing so (most are not for security reasons). I suggest you use the workaround dpdenterprises mentioned and put a link into your bbs navigation that takes users "back" to your gallery.

Joachim

Darth Unrivaled

Hi, I've been having the same problems. Here is what's going on with mine.

I have IPB 1.3 final url http://forums.xfiresystems.com/ On its own works great

I have the latest version of Coppermine url http://media.xfiresystems.com

Now I have yet to find out how to make it work over subdomain names. If I run the things using the non subdomain url it works fine, everything but the members list which after spending some time here and looking threw the code I found that all you need to do to fix this is go to this:

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


This is located in your invasion bridge file.

Change it to this:

// Edit users
function udb_edit_users()
{
    $target = 'index.php?act=Members';
    udb_redirect($target);
}


So in Coppermind when they click the members list it will go there and not your admin control panel.

From what I see from my problems, are only because I am using subdomains. As soon as I get that working I will let you know. However if there is anyone here who would like to point out to me how to do this across subdomains please do.

Thanks and I hope that help you guys having problems with the members list going to the Admin CP.

catbegemot

#53
Hello, good people of Coppermine :)

I seem to be struggling with same problem everyone else in this thread has. So here's my situation - users get kicked out when logging into gallery through forum. In forum they're logged in okay, but when they go into gallery they are not.
Here's the info.
Forum: Invision Power Board 2.0.3 http://generationnx.com/forum
Coppermine gallery 1.3.2 http://generationnx.com/gallery
In case you need test account use login: coppermine, password: test


Bridge file:
/ database configuration
define('IB_DB_NAME', 'generati_bb131'); // The name of the database used by the board
define('IB_BD_HOST', 'localhost'); // The name of the database server
define('IB_DB_USERNAME', 'generati_user'); // 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', ''); // The prefix used for board cookies

// Prefix and names for the database tables
define('IB_TABLE_PREFIX', 'bb131_'); // 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


Bridging enabled. Coppermine and IPB are in DIFFERENT databases. Except for query (legacy_password instead of password) no coppermine files have been changed.

What's my problem? What did I do wrong?


Added:

after logging in I get this "cute" URL in my browser: http://generationnx.com/forum/index.php?http://generationnx.com/gallery/index.php

Joachim Müller


catbegemot

GauGau,

moved into same database as forum. Same problem, nothing had changed.

Joachim Müller

logging in does work, and the login is recognized by coppermine as well, the only thing that doesn't work is the redirection after the bbs' login page. I get a redirection notice (could as well be an error message though, not sure as it is in russian which I don't understand). This may be related to the redirection mechanisms of your bbs, not sure which version of ipb supports which format; of course the redirection to http://generationnx.com/forum/index.php?s=some_session_hash&http://www.generationnx.com/gallery/ won't do anything. Is there a switch in ipb's config about redirection?

Joachim

catbegemot

There are two settings:
QuoteType of auto-redirect
This is for quick no-page redirects. Choose the option best suited to your server's OS.

you can choose from *nix savvy, Windows savvy, HTML meta refresh.

Second:
QuoteRemove 'Thanks....' redirect pages?
If set to "yes", this will remove any "Thanks...." redirection pages used to provide feedback to the user on their last action and will simply redirect without showing this page.

is set to NO, so probably it was the redirection page is what you saw.

catbegemot

Found a different hack that was developed on a base of bridge file from Coppermine 1.3.1, works like a charm (so far). Part of it requires alteration of IPB files (especially for redirection part). If you're interested I can translate whatever is there (the description and messages are in russian) and post here. AFAIK it is NOT a "coppermine goes invisionize" from IPB forums, although I am not 100% sure.