integration between my bb and my gallery has not gone as planned integration between my bb and my gallery has not gone as planned
 

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

integration between my bb and my gallery has not gone as planned

Started by zebraplayer, October 09, 2004, 03:06:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zebraplayer

What else is new, you ask. I know. I have read through as many posts with this issue as I could find. I have made changes based on them and most of them have made matters worse. My problem is simple and common. When I click the Log In button on my gallery, it takes me to the log in for my bb. When I put in my username and password, it logs me in the bb but not the gallery.

I have read enough of these posts to know that it is some sort of cookie issue. What that issues is, I need someone out there to help me figure out.

Please go to http://group101clt.netfirms.com/Group101Actors/nfpicturepro and tell me what you figure out
user: test
password: test

Here's the code from my cpg_redir.php file

Quote<?php
if (!$_SERVER['HTTP_HOST']) {
  $cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  $cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/Group101Actors/nfpicturepro';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>

Here's the code for my phpbb.inc.php file:

Quotedefine('PHPBB_DB_NAME', 'mydb'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'MYSQLHOST'); // The name of the database server
define('PHPBB_DB_USERNAME', 'myusername'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', '********'); // The password to use to connect to the database

// The web path to your phpBB directory
// If your URL to your board is for example 'http://yoursite_name.com/phpBB2/',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/msgboard/nfphpbb/');


// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', TRUE);

Here is my bb's cookies settings:

Cookie domain             .group101clt.com
Cookie name                group101cookie
Cookie path                      /
Cookie secure               Disabled
Session length              3600

Here is my gallery's cookies settings: This I got from the gallery's db, since I cannot log in to it and go to its administration panel.

Cookie name                cpg11d
Cookie path                      /

kegobeer

According to your gallery, you're running Netfirms Picture Pro Photo Gallery 1.2.1.  Sounds like you're trying to use bridge files from the 1.3.2 package available from this site with a modified older version of Coppermine.

Is this correct?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

zebraplayer

Ahh! I guess that is correct. Is there a fix for that?

Thanks!

Joachim Müller

yes: remove the netfirms stuff (wannabe-hack) and upload an original cpg1.3.2 coppermine package. Backup everything first, in case anything goes wrong.

Joachim

zebraplayer

Wouldn't I need acess to the server side for that?

Perhaps I should have mentioned earlier that I'm a newbie, at best.

Isn't there some other way to just bridge correctly the older version of coppermine and the board without complete overhaul? Anyone?


kegobeer

No.  The bridge files are deisgned to be used with 1.3.2.

If you have webspace, you have access to your files, and we have to assume you have at least some knowledge of how your webserver works (FTP, control panel, MySQL, etc).  This isn't the best place to learn how to run your site - your host should have some sort of documentation on how your site works.  We just don't have the time to teach people how to administer their sites, sorry.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

zebraplayer

Okay. So I have upgraded to v1.3.

I have also gone back and followed all the steps in the bridging section of the manual. The new info is all the same as my first post above. However, I am still having the same problem. What am I doing wrong here, for crying out loud?

Can someone please log in to my site using u: test p:test and give me a hand? I am going nuts here.

Thanks!

Joachim Müller

the bbs cookie is not readible by coppermine, make sure you have specified a cookie path within your bbs settings that allows coppermine to read it. Similar thing with cookie domain, if applicable.

Joachim

zebraplayer

Hey GauGau,

First off, thanks for your continued support and replies. Like I said earlier, I have open these files, read, and re-read them so many times that I am about to start pulling off my hair.

Anyhow, I have changed the cookie name to: phpbb2mysql

The cookie domain I have had as everything under the sun I could think off. I have also had it blank. Considering that my domain is http://www.group101clt.com, what should my cookie domain name be?

I'm sorry for the dumb question, but I have just seen posts where people call it all kind of different things.

Thanks again.

-zp

Joachim Müller

  • cookie name doesn't matter as long as they differ for coppermine and bbs cookie
  • cookie domain should be ".group101clt.com" (without the quotes, mind the dot at the beginning!) or blank
  • cookie path should be "/" (without the quotes) for both apps
Joachim

zebraplayer

Yeah, if you look at my first post, that's what I got. I wonder if the fact that they are in sub folders would cause it not to work?

On all the examples I have seen on this site, people have www.theirsitename.com/coppermine then www.theirsitename.com/phpbb

I have www.group101clt.com/group101Actors/nfpicturepro then www.group101clt.com/msgboard/nfphpbb.

Could this additional folder on both sides be part of the problem?

Do I need to bring things back to the root somewhere with a "../" thingy?

Thanks for your time. I had given up getting a response on this topic.

zebraplayer

Issue solved it. I never checked if other users, aside from my Admin self, were able to log in; which they could.

It turned out to be an issue of conflict caused by my User ID being set to 0 in the phpbb db. Changed to 1 and now everything works.

Thanks to those that replied and took the time to help.