coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Bulgaricus on September 12, 2004, 12:36:32 AM

Title: Problem with integrating CPG and PunBB
Post by: Bulgaricus on September 12, 2004, 12:36:32 AM
I tried to integrate the Gallery with my PunBB Forum and it did not worked. I think I did everything according to the instruction but when I tried to log in the Gallery after the Integration I got a blank screen with a bit of my header. The browser pointed at http://bulgaricus.com/galeria/login.php?referer=%2Fgaleria%2F so I added www. to the adres and then an error message appeared that I am already logged.

I entered groups which was supposed to synchronize the users from my forum, but nothing changed in the database.

May be this problem is connected with my customization troubles: http://forum.coppermine-gallery.net/index.php?topic=9863.0?
Title: Re: Problem with integrating CPG and PunBB
Post by: Nibbler on September 12, 2004, 12:39:16 AM
It is looking for www.bulgaricus.com.com so you must have typed your url in wrongly somewhere.
Title: Re: Problem with integrating CPG and PunBB
Post by: Bulgaricus on September 12, 2004, 02:08:47 PM
Do you have any idea where?
Title: Re: Problem with integrating CPG and PunBB
Post by: Joachim Müller on September 12, 2004, 02:16:39 PM
use your operating system's built-in search to find out (e.g. Windows Explorer): browse to the local copy of your coppermine folder, expand the search tab, search for files *.*, containing the string "com.com"

Joachim
Title: Re: Problem with integrating CPG and PunBB
Post by: Bulgaricus on September 12, 2004, 04:03:08 PM
Thanks, the mistake was in punbb.inc.php :)
Title: Re: Problem with integrating CPG and PunBB
Post by: Bulgaricus on September 12, 2004, 05:25:20 PM
I tried to log myself in the gallery. It redirected nicely me to the forum where I filled my login and password. Then it redirected me back to the gallery, but I was not logged there :( I suppose I have done again sth wrong but I don't have idea what :(

I tried to clear the cookies files but it didn't help.
Title: Re: Problem with integrating CPG and PunBB
Post by: Nibbler on September 12, 2004, 05:31:36 PM
Use the debug bridge file attached to this (http://forum.coppermine-gallery.net/index.php?topic=7767.msg43134#msg43134) post and see what it says.
Title: Re: Problem with integrating CPG and PunBB
Post by: Bulgaricus on September 12, 2004, 06:01:10 PM
I entered the gallery:

QuoteBridge file has been loaded
loaded punbb config file
Authenticate called
Cookie 'punbb_cookie' was NOT found
You are recognised as Guest

Clicked "Log in" and was redirected to login page at punbb. I logged in and was redirected to the gallery and the same text appeared:

QuoteBridge file has been loaded
loaded punbb config file
Authenticate called
Cookie 'punbb_cookie' was NOT found
You are recognised as Guest

Title: Re: Problem with integrating CPG and PunBB
Post by: Nibbler on September 12, 2004, 06:16:52 PM
Please post a test login to your forum.
Title: Re: Problem with integrating CPG and PunBB
Post by: Bulgaricus on September 12, 2004, 06:48:07 PM
Login: Test1
Password: pass
Title: Re: Problem with integrating CPG and PunBB
Post by: Nibbler on September 12, 2004, 06:53:58 PM
You need to change the punbb cookie domain to be bulgaricus.com without the www
Title: Re: Problem with integrating CPG and PunBB
Post by: Bulgaricus on September 12, 2004, 08:03:41 PM
Do you know, how can I do this?
Title: Re: Problem with integrating CPG and PunBB
Post by: Nibbler on September 12, 2004, 08:53:43 PM
I think you can modify punbb's config file. If you can't do that you will have to use the gallery with the www as http://www.bulgaricus.com/galeria but you seem to have a redirect on that.
Title: Re: Problem with integrating CPG and PunBB
Post by: Bulgaricus on September 12, 2004, 09:08:16 PM
The PunBB config.php looks like that:

Quote<?php

// This is just an example config. The install script will generate a correct
// version of this file when you install PunBB. This file is here merely as a
// backup if the working version is somehow lost or corrupted.

$db_type = 'mysql';
$db_host = 'sql.xxxxx';
$db_name = 'xxxxxx';
$db_username = 'xxxxx';
$db_password = 'xxxxx';
$db_prefix = 'xxxx';
$p_connect = true;

$cookie_name = 'punbb_cookie';
$cookie_domain = '';
$cookie_path = '/';
$cookie_secure = 0;

$language = 'pl';

define('PUN', 1);

?>

I do not know how to configure the upper file to have www in the cookies :(

Do you have any idea why when I enter http://www.bulgaricus.com/galeria it changes to http:/bulgaricus.com/galeria?
Title: Re: Problem with integrating CPG and PunBB
Post by: Nibbler on September 12, 2004, 09:17:11 PM
The server sends a '301 Moved permanently' response when I access http://www.bulgaricus.com/galeria so I suspect you have a redirection setup in your .htaccess file.

You could try changing $cookie_domain = ''; to $cookie_domain = 'bulgaricus.com';
Title: Re: Problem with integrating CPG and PunBB
Post by: Bulgaricus on September 12, 2004, 09:23:43 PM
Thanks, now it works! :)