coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Filigree on June 11, 2004, 08:05:54 PM

Title: Problems once integrated with Invision Board
Post by: Filigree on June 11, 2004, 08:05:54 PM
After integration, and update a few problems have occured in my Coppermine Gallery.

1) You can not login in from the gallery, only from Invision Board.  Clicking the Gallery's Login link takes you to an inexistent page.
2) You cannot view the Admin's User list.  Once again, takes you to an inexistant page.
3)Cannot logout from Gallery, takes you to inexistant page
4)Admin Tools brings up "Critical Error: There was an error while processing a database query "

I have checked my config and init.inc files, and my bridge files, they all seem to be configured properly. 

I had upgraded from the dev4 version to the stable.

Any ideas?


-Taylor Carlson
Title: Re: Problems once integrated with Invision Board
Post by: Casper on June 11, 2004, 08:12:40 PM
Did you update all your files, including the bridge files?
Title: Re: Problems once integrated with Invision Board
Post by: hyperion on June 11, 2004, 08:12:59 PM
Yes, an update was done to the server paths in all files to bring them in line with W3C's HTTP standards.  Some users with non-standard server settings may have trouble with this, but it can be fixed with ease. 

To verify that this is the case please post a link, or explain what URL it is trying to go to vs. what it should be.
Title: Re: Problems once integrated with Invision Board
Post by: Filigree on June 11, 2004, 08:25:38 PM
Yes, I updated all files, and double checked all Invision Board database settings.

Gallery:
http://despairfaction.ca/gallery/index.php

Logout:
http://despairfaction.ca/gallery/logout.php?referer=%2Fgallery%2Findex.php

Usermgr:
http://despairfaction.ca/gallery/usermgr.php

User manager and Admin tool both go to the correct URL I believe.  In the past, Usermanager would direct me to Invision Boards Admin Panel, now however, I get a Cannot find server error.
Everything else works relatively great..

Oh.  And the Login link "should" be directed to  http://despairfaction.ca/colloquium/ , atleast that was where it would direct users before.
Title: Re: Problems once integrated with Invision Board
Post by: Filigree on June 11, 2004, 08:51:31 PM
Could this have something to do with the fact that my original installation was of 1.1, and I have been upgrading ever since?  Maybe something was missed or configured improperly along the way?

So, I just did a seperate clean install in another directory, to see if had something to do with the upgrade, or the bridging with Invision Board itself.  The clean install has the exact same problem.  So, it must have something to do with the bridge or Invision Board itself.
Title: Re: Problems once integrated with Invision Board
Post by: psychowolfman on June 12, 2004, 08:42:18 AM
I am seeing similar behavior.

I had a 1.2 album that I had upgraded and it had many problems, so I installed from scratch...and I still have the same problems.

Invision is version 1.3

When I turn php debuggin on I get errors like so:

Undefined index: cat_thumb in /home/sask/public_html/gallery/themes/saskmetal/theme.php on line 1048 (Main gallery page, index.php)

While executing query "SELECT aid, category, IF(name IS NOT NULL, CONCAT('(', name, ') ',title), CONCAT(' - ', title)) AS title FROM cpg130_albums AS a LEFT JOIN ibf_members AS u ON category = (10000 + id) ORDER BY category, title" on

mySQL error: Table 'sask_gallery.ibf_members' doesn't exist

AND

File: /home/sask/public_html/gallery/include/functions.inc.php - Line: 110

When I click ADMIN TOOLS.

Also, if I disable debugging, I simply get an error on the admin tools page, and nothing else...but if debugging is enabled it shows the above error, then renders the page (Inside of the frame, the whole page again) and then where the album select box should be at the bottom I have:

Select album

Notice: Undefined variable: UDB_DB_NAME_PREFIX in /home/sask/public_html/gallery/bridge/invisionboard.inc.php on line 374

Notice: Undefined variable: UDB_DB_LINK_ID in /home/sask/public_html/gallery/bridge/invisionboard.inc.php on line 377


EDIT: Also, it appears as the bulk add photos thing doesn't work.  It says "This function allows you to add a batch of file that your have uploaded to your server by FTP.  Select the directory where you have uploaded your files"  But there's no place to select a directory...
(It can't be in userpics, just in albums dir then it works...previous versions it could be in the userpics dir.)
Title: Re: Problems once integrated with Invision Board
Post by: hyperion on June 12, 2004, 07:01:11 PM
@Psychowolfman,

What is the name of your Invision members table in the database?

@Filigree,

Please give me something like:

It should go here: http://www.mywebsite.com/forums/admin.php

But it tries to go here: http://www.mywebsite.com/charles/admin.php

@all:

I picked up a copy of IPB 1.3, and should be able to test it soon. Please remember to activate debug mode.
Title: Re: Problems once integrated with Invision Board
Post by: athlonkmf on June 12, 2004, 10:13:32 PM
My members notified me that they can't login either with other browsers than explorer because of some cookiesprobs.

Even when logged in with the forum and then going to the gallery would leave them logged out   :-\\

Of course. the login/logout-link is also not working as told before.
Title: Re: Problems once integrated with Invision Board
Post by: psychowolfman on June 13, 2004, 01:16:05 AM
Quote from: hyperion on June 12, 2004, 07:01:11 PM
@Psychowolfman,

What is the name of your Invision members table in the database?

My invision members is ibf_members in my invision database...

coppermine has it's OWN database seperate from Invision though, and that SQL error is true in that ibf_members doesn't exist is THAT database.
Title: Re: Problems once integrated with Invision Board
Post by: deocare on June 13, 2004, 10:37:11 AM
IM having the same problem.

cant logout from coppermine
can user ADMIN tool and other

SOmeone help me fix this?
Title: Re: Problems once integrated with Invision Board
Post by: deocare on June 13, 2004, 08:33:11 PM
anyone ? i cant fix it yet.
Title: Re: Problems once integrated with Invision Board
Post by: Qest on June 13, 2004, 11:59:52 PM
Same problem... except in my case it was a fresh install of both scripts.
Title: Re: Problems once integrated with Invision Board
Post by: Casper on June 14, 2004, 12:42:51 AM
Can you all please state if you have coppermine on the same database as the forum, or on different databases.
Title: Re: Problems once integrated with Invision Board
Post by: psychowolfman on June 14, 2004, 01:01:20 AM
Quote from: Casper on June 14, 2004, 12:42:51 AM
Can you all please state if you have coppermine on the same database as the forum, or on different databases.

Mine are in seperate db's
Title: Re: Problems once integrated with Invision Board
Post by: Filigree on June 14, 2004, 01:21:33 AM
Both Coppermine and Invision Board are sharing the same Database in my case.

After enabling debug mode, I have concluded that my difficulties are due to the same problem that pychowolfman is experiancing.

After rumaging through some files, a common reccuring error seems to be with $UDB_DB_LINK_ID and $UDB_DB_NAME_PREFIX.  Both in the Bridge file and inc/function file.  

'Title' in the Admin Tools script seems to be an unknown value.

Users goes here: http://despairfaction.ca/gallery/usermgr.php  (displays cannot find sever page)
It should go here:http://despairfaction.ca/colloquium/index.php?act=Members

Admin Tools goes to the correct localation, however a Database Query Error is shown.  Debug info infers that 'title' is an unknown value.

I'm sorry I cannot be of more help, but as my gallery recieves high amounts of traffic, I'm afraid it may disrupt my users experiance, and become a security risk if I enable debug mode and leave it viewable to everyone.
Title: Re: Problems once integrated with Invision Board
Post by: hyperion on June 14, 2004, 02:18:26 AM
Thank you, Filigree, for the helpful information.  I'm integrating CPG and IPB 1.3 on my server tonight, and I will check this out in more detail.
Title: Re: Problems once integrated with Invision Board
Post by: psychowolfman on June 14, 2004, 05:26:23 PM
Last night I decided to try and move my coppermine database into the same db as invision.  Upon doing that, the sql error stating ibf_members doesn't exist is replaced with a different error.  I can't remember what it was now, but it basically said something in the ibf_members table wasn't there.

Regardless, the error creates the same results to the end user.

I've also noticed that when you try and send an ecard with invision integration switched on there's no where to put in your email address and when you hit submit it tells you invalid email.  However, this does work if you run standalone and log in through coppermine's system.
Title: Re: Problems once integrated with Invision Board
Post by: Casper on June 14, 2004, 05:40:53 PM
If you moved the database, did you remember to update your bridge file?
Title: Re: Problems once integrated with Invision Board
Post by: psychowolfman on June 14, 2004, 06:22:34 PM
Quote from: Casper on June 14, 2004, 05:40:53 PM
If you moved the database, did you remember to update your bridge file?

You bet I did.  At first it was giving me the same ibf_members not found error, then I remembered, "Oh yeah...gotta change the access settings"  After changing that I got a different error, but it still involved the ibf_members table.  I'm not at home now, so I can't re-test it, but I could tonight and post the exact error here.
Title: Re: Problems once integrated with Invision Board
Post by: hyperion on June 14, 2004, 10:40:05 PM
Okay, I've integrated IPB 1.3 and Coppermine.  

I found that the Admin tools error is an actual bug, and I have attached a new revision of the IPB bridge that should fix the issue. I introduced this bug when introducing album list support for the Admin tools page.  You will need to change the extension from  .txt to .php.

I had no difficulties with login/logout links, profiles, or user editing.  This makes me suspect that those having problems have not properly specified the path in the bridge, or they do not have the $_SERVER['HTTP_HOST'] variable available.

The relevant bridge value here is:


// The web path to your Invision Board directory
// In this example http://yoursite_name.com/ivboard/
define('IB_WEB_PATH', '/ivboard/');


If you verify that the path is correct but still have problems with linking, you are advised to change


// Redirect
function udb_redirect($target)
{
   header('Location: http://' . $_SERVER['HTTP_HOST'] . IB_WEB_PATH . $target);
   exit;
}


to


// Redirect
function udb_redirect($target)
{
   header('Location: ' . IB_WEB_PATH . $target);
   exit;
}


This will change the link back to a relative path.  Users are warned, however, that this does not conform to WC3 standards and may result in broken links on standards compliant servers and clients. If you suspect the problem lies with the $_SERVER['HTTP_HOST'] variable (as seen in the redirect function), you may try hard coding the value.


// Redirect
function udb_redirect($target)
{
   header('Location: http://www.mysite.com'. IB_WEB_PATH . $target);
   exit;
}


or even


// Redirect
function udb_redirect($target)
{
   header('Location: http://www.mysite.com/forums/'. $target);
   exit;
}


[attachment deleted by admin]
Title: Re: Problems once integrated with Invision Board
Post by: psychowolfman on June 14, 2004, 11:15:12 PM
Quote from: hyperion on June 14, 2004, 10:40:05 PM
Okay, I've integrated IPB 1.3 and Coppermine. 

I found that the Admin tools error is an actual bug, and I have attached a new revision of the IPB bridge that should fix the issue. I introduced this bug when introducing album list support for the Admin tools page. Attached is a revised Invision bridge.  You will need to change the extension from  .txt to .php.

Now I get the following when I click ADMIN TOOLS:

While executing query "SELECT aid, category, IF(name IS NOT NULL, CONCAT('(', name, ') ', a.title), CONCAT(' - ', a.title)) AS title FROM cpg130_albums AS a LEFT JOIN `sask_invision`.ibf_members AS u ON category = (10000 + id) ORDER BY category, title" on Resource id #7

mySQL error:

File: /home/sask/public_html/gallery/include/functions.inc.php - Line: 110


That's the only page of my installation that doesn't work...everything else works flawlessly.
Title: Re: Problems once integrated with Invision Board
Post by: hyperion on June 14, 2004, 11:31:48 PM
This will be due to the use of two separate databases. Give me some time to come up with a solution for this. 

Title: Re: Problems once integrated with Invision Board
Post by: psychowolfman on June 14, 2004, 11:59:23 PM
Quote from: hyperion on June 14, 2004, 11:31:48 PM
This will be due to the use of two separate databases. Give me some time to come up with a solution for this. 


I'll be waiting.

At the moment it isn't a huge issue as my album isn't very large, or busy, so the admin tools aren't a huge necessity.  Plus, I could always disable IPB integration for the moment to do anything I'd need then turn it back on.

Godspeed, and thank you for a great piece of software.
Title: Re: Problems once integrated with Invision Board
Post by: Filigree on June 15, 2004, 12:27:43 PM
Perfect fix.

Thank you very much.  I am in debt to the time and effort you have all invested into Coppermine, and your continued commitment to program support.
Title: Re: Problems once integrated with Invision Board
Post by: thespaceport on June 20, 2004, 04:53:46 AM
Quote from: hyperion on June 14, 2004, 10:40:05 PM
Okay, I've integrated IPB 1.3 and Coppermine.  

I found that the Admin tools error is an actual bug, and I have attached a new revision of the IPB bridge that should fix the issue. I introduced this bug when introducing album list support for the Admin tools page.  You will need to change the extension from  .txt to .php.

I had no difficulties with login/logout links, profiles, or user editing.  This makes me suspect that those having problems have not properly specified the path in the bridge, or they do not have the $_SERVER['HTTP_HOST'] variable available.

The relevant bridge value here is:


// The web path to your Invision Board directory
// In this example http://yoursite_name.com/ivboard/
define('IB_WEB_PATH', '/ivboard/');


If you verify that the path is correct but still have problems with linking, you are advised to change


// Redirect
function udb_redirect($target)
{
   header('Location: http://' . $_SERVER['HTTP_HOST'] . IB_WEB_PATH . $target);
   exit;
}


to


// Redirect
function udb_redirect($target)
{
   header('Location: ' . IB_WEB_PATH . $target);
   exit;
}


This will change the link back to a relative path.  Users are warned, however, that this does not conform to WC3 standards and may result in broken links on standards compliant servers and clients. If you suspect the problem lies with the $_SERVER['HTTP_HOST'] variable (as seen in the redirect function), you may try hard coding the value.


// Redirect
function udb_redirect($target)
{
   header('Location: http://www.mysite.com'. IB_WEB_PATH . $target);
   exit;
}


or even


// Redirect
function udb_redirect($target)
{
   header('Location: http://www.mysite.com/forums/'. $target);
   exit;
}


I tried your third option for hard coding the redirect target and when I try to login from the gallery I am redirected to this page after logging in:

http://thespaceport.us/forum/index.php?http://www.thespaceport.us/gallery/

The page should simply be  http://thespaceport.us/gallery  so that I can view images in the gallery.

If I go directly the the gallery page:  http://thespaceport.us/gallery and click login from there it takes me to my IPB v1.3.1 login page and once I login in there I am redirected to the above code.

The Admin Tools fix worked perfectly though.  If I can get this login issue down I'll have a nice working version of Coppermine.  Still can't view a user lists though, it bring me to IPB's ACP login page, same thing with the member list link.

I would appreciate any help you could offer.  I'm really excited about this gallery though.  My members have been wanting a gallery for a long time and your's is the best I've seen!
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: mr9802 on July 29, 2004, 08:44:24 PM
I am having troubles to but after install and upgrade, The gallery is completely blank.  if i go back the the modinstaller and uninstall the gallery works fine by itself.  I have no clue waht to do.  Can someone help please?
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: mr9802 on July 29, 2004, 09:22:45 PM
Guess I should give more info!  ha
www.dsmcentral.com/photo/ is the gallery
www.dsmcentral.com/invision/ is the location of IPB 1.3

CPG works by itself just fine and was an upgrade from 1.2 as soon as I installed and followed the COMPLETE instructions from the HOW_TO i get a blank screen when trying to call up the CPG.  I am about ready to pull out my hair on this and thought I would ask for help now after like 5 days of hitting my head!
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: Joachim Müller on July 30, 2004, 08:35:58 AM
post your bridge file changes here (replace the password with asterisks).

GauGau
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: The Old Man on August 05, 2004, 11:20:55 AM
Hyperion, you're a genius!
I'm using v1.3.1 of Coppermine and the Invisionboard V2.0 bridge. I have seperate databases for the board and gallery.
The bridge works fine for me so far but I too was getting bad links for LOG OUT and REGISTER.
They were taking me to non-existant pages.

I checked my webpath in the invisionboard.inc.php and there was no / at the end. I fixed it and uploaded but no difference.
I then opened my invisionboard.inc.php file as opposed to download your updated version because my board is V2.0 PF2.
I edited the line
header('Location: http://' . $_SERVER['HTTP_HOST'] . IB_WEB_PATH . $target);
to
header('Location: ' . IB_WEB_PATH . $target);

and the links now work fine.
I still get
QuoteNotice: Constant !f already defined in /home/legion/public_html/gallery/include/config.inc.php on line 4
though. I suspect whoever created the V2.0 bridge will have to build in your changes to fix it.

Thanks again!
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: tombmaster on August 05, 2004, 08:45:54 PM
Can we use the same for IPB version 2.0 PF2??
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: The Old Man on August 06, 2004, 09:37:54 AM
Hi,
I'm using v2.0.0 PF 2 the latest release. It fixed the bad links (Register & Log Out) for me. Remember to check your Groups in the Gallery after installing the bridge as they can differ as you are now using the Invisionboard Groups.
I still have errors with the E-Card and Admin Tools which I think you have too. If they aren't fixed soon I'll have to abandon the bridge idea, damn useful as it was.
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: tombmaster on August 06, 2004, 09:09:42 PM
Quote from: The Old Man on August 06, 2004, 09:37:54 AMI still have errors with the E-Card and Admin Tools which I think you have too. If they aren't fixed soon I'll have to abandon the bridge idea, damn useful as it was.

You bet I am having the same problems. And after going through 2 weeks of headach of post-integeration, I am thinking the same.

Sad thing is that there are lots of post-integration issues of Invision board with coppermine gallery and not enough support from either IPB or coppermine people. They don't provide instructions in easy-to-understand language for those who don't know much about PHP.

Not to mention even mod authors don't seem to know enough and after a bit of support they also end up refering to coppermine or IPB forums to ask for support.

I wonder if it would be even worth it.  :o

Was much better off without integeration. In my opinion now, we are better off with letting our users be registered on two places but at least both stand alone application would work fine without any problem and users won't have to go through the rough ride as a result of our efforts to make it better for them.

I am getting so many e-mail complaints everyday. My users are getting too frustrated with 'post-integration' issues. I will give it some more time and if I can't find help. I am going back to stand alone versions of both.

After so much of effort and lots of hours to make it all work, is nothing but frustration at the end of the day.

In such circumstances who would want to bother with integeration??  ::)

Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: Casper on August 06, 2004, 09:44:26 PM
Quote from: tombmaster on August 06, 2004, 09:09:42 PM
Sad thing is that there are lots of post-integration issues of Invision board with coppermine gallery and not enough support from either IPB or coppermine people.

Actually, I think you have had a lot of support here.

But as far as I can see, you are using a bridge that was not supplied by us, and therefore we don't know the code, or how it affects coppermine. 

So how are we supposed to help.

Try getting support from microsoft when your use of another makers application causes problems with theirs.
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: tombmaster on August 07, 2004, 05:15:13 AM
Quote from: Casper on August 06, 2004, 09:44:26 PMBut as far as I can see, you are using a bridge that was not supplied by us, and therefore we don't know the code, or how it affects coppermine.

Well to be  honest, Yes, you are right. I am using a mod made by someone name 'b6" and I thought his MOD was based on your own system and since then I am having problems with lots of issues.

Please give me the link to your own bridge so I and other using other mods can try to fix our coppermine gallery and see if i can get it going this time

Thanks for the assistance.
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: Joachim Müller on August 07, 2004, 09:25:58 AM
the bridge files come with coppermine. There are threads that deal with last-minute fixes of bridge files that are not in the coppermine package, please search the board.

GauGau
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: Buzz on August 09, 2004, 08:03:19 AM
Im having the same problem as well, Im usingIPB 1.3Final  I cant login at all with bridge I followed all the steps of the doc. i followed all the admin steps in here but  0+0=0.
Bad thing is that I REALLY LOVE Cop. and I really want to start uploading pictures, BUT its no use, I will wait a bit more because it is worth the try these guys are giving all the help they can.
By the way If someone has their cop. installed and running smoothely can you please type us your address so we can check it out, and seccond can you please type us your (invisionboard.inc.php)
Thnx
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: Joachim Müller on August 09, 2004, 09:28:00 AM
Buzz,

post a link and test user account, plus the lines you changed in your bridge file (replace the password with asterisks).

GauGau
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: Buzz on August 09, 2004, 06:46:29 PM
The site is www.hondaclub.gr/forum and hondaclub.gr/gallery user test and pass test

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


// Redirect
function udb_redirect($target)
{
   header('Location: http://www.hondaclub.gr/forum/'. IB_WEB_PATH . $target);
   exit;
}

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

define('COPPERMINE_VERSION', '1.3.1');
// 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');
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);
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: Nibbler on August 09, 2004, 07:33:36 PM
OK, lets take a look at this:


define('IB_WEB_PATH', '/forum/');

and

header('Location: http://www.hondaclub.gr/forum/'. IB_WEB_PATH . $target);


You are telling coppermine to redirect to http://www.hondaclub.gr/forum//forum/index.php
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: Buzz on August 09, 2004, 11:00:51 PM
Ok changed but...   Here is the new code

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


// Redirect
function udb_redirect($target)
{
    header('Location: http://' . $_SERVER['HTTP_HOST'] . IB_WEB_PATH . $target);
    exit;
}




I keep on looking and looking at it again, cant find a way out, what I saw Is this :

// ------------------------------------------------------------------------- //
// Invision Power Board v1.1 Integration for Coppermine                     
// ------------------------------------------------------------------------- //


Im using Invision Power Board v1.3.Final so I assume this could be it?
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: Buzz on August 10, 2004, 12:37:07 AM
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"
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: Zeitgeist on September 28, 2004, 08:25:08 PM
You got it to redirect to the image gallery with Invision board? how?
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: dpdenterprises on October 24, 2004, 06:07:22 AM
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!
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: 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.
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: dpdenterprises on October 24, 2004, 05:12:44 PM
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/ (http://www.boxerdogplanet.com/cpg132/)

test account is:  coppermine
Password is:       test

My IPB board is at this URL: www.boxerdogplanet.com (http://www.boxerdogplanet.com)

Thanks for your assistance!
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: dpdenterprises on October 25, 2004, 04:03:46 AM
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.

Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: Joachim Müller 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
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: dpdenterprises on October 26, 2004, 03:06:33 AM
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. :-[
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: Joachim Müller 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
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: dpdenterprises on October 26, 2004, 06:27:07 PM
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]
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: dpdenterprises on October 26, 2004, 06:32:36 PM
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.
Title: Re: (SOLVED)Problems once integrated with Invision Board
Post by: Joachim Müller on October 27, 2004, 07:28:57 AM
@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
Title: Re: Problems once integrated with Invision Board
Post by: Darth Unrivaled on February 24, 2005, 11:38:24 PM
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.
Title: Re: Problems once integrated with Invision Board
Post by: catbegemot on March 20, 2005, 08:32:32 AM
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
Title: Re: Problems once integrated with Invision Board
Post by: Joachim Müller on March 20, 2005, 11:45:42 AM
Quote from: catbegemot on March 20, 2005, 08:32:32 AM
Coppermine and IPB are in DIFFERENT databases. [...]
What's my problem? What did I do wrong?
http://coppermine.sourceforge.net/manual.php#integrating_database_start

Joachim
Title: Re: Problems once integrated with Invision Board
Post by: catbegemot on March 20, 2005, 05:05:31 PM
GauGau,

moved into same database as forum. Same problem, nothing had changed.
Title: Re: Problems once integrated with Invision Board
Post by: Joachim Müller on March 21, 2005, 07:19:10 AM
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
Title: Re: Problems once integrated with Invision Board
Post by: catbegemot on March 21, 2005, 02:28:33 PM
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.
Title: Re: Problems once integrated with Invision Board
Post by: catbegemot on March 21, 2005, 08:55:16 PM
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.