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

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.

psychowolfman

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.

hyperion

This will be due to the use of two separate databases. Give me some time to come up with a solution for this. 

"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)

psychowolfman

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.

Filigree

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.

thespaceport

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!

mr9802

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?

mr9802

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!

Joachim Müller

post your bridge file changes here (replace the password with asterisks).

GauGau

The Old Man

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!


The Old Man

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.

tombmaster

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??  ::)


Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

tombmaster

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.

Joachim Müller

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

Buzz

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

Joachim Müller

Buzz,

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

GauGau

Buzz

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

Nibbler

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

Buzz

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?