Phpbb integration problem Phpbb integration problem
 

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

Phpbb integration problem

Started by Traxman, April 28, 2005, 07:20:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Traxman

I have tried integrating and to my knowledll the files are correct and I added a button into my forum header file which should redirect a user to the coppermine album but each time you click it it reloads the forum. I know I must have missed something in a file somewhere but I went back through the steps and re-edited the files and uploaded them again and still the same thing.

So I checked if I could just type the url in but still the same thing happened so any help here would be greatly appreciated.

Forum
http://www.gamingdynasty.com/forum2/index.php

Gallery
http://www.gamingdynasty.com/PhotoAlbum/index.php
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.gamingdynasty.com%2FTraxman%2FTraxman2.gif&hash=2cb5deaeb0053f78ba8c7ad7280b5c343bf3155e)

Joachim Müller

post a non-admin test user account, and what you changed in your bridge file (replacing the password with asterisks).

Joachim

Traxman

Well I can not even access the gallery right now because it simply redirects me to my forum each and everytime you either type in the url or when you click the link I put into my forum.

This is the cpg_redir.php file

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


Now just to make sure I did not screw it up this redir file goes in my forum directory right?

Ok assuming that is all correct.

Here is the bridge file.

// database configuration
define('PHPBB_DB_NAME', 'maddendy_Forums'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', '*********'); // 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', '/forum2/');
// 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);


Of course I know for sure the username and pass to my db are correct.

Does anyone see where i went wrong?
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.gamingdynasty.com%2FTraxman%2FTraxman2.gif&hash=2cb5deaeb0053f78ba8c7ad7280b5c343bf3155e)

Nibbler

That all looks fine, please post a test user account.

Traxman

Well like I said I can not access my gallery because it just redirects me to my homepage.

Now if I am not logged into my forum and I click the gallery it redirects me to my forum login like it should, but once I login I get a blank white screen. The url it redirected me to is: 

http://www.gamingdynasty.com/forum2/cpg_redir.php?sid=7a6be4b8ce4c5519dd928a0b9970bdc3

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.gamingdynasty.com%2FTraxman%2FTraxman2.gif&hash=2cb5deaeb0053f78ba8c7ad7280b5c343bf3155e)

Nibbler

Create a test account in your forum, and post the login and password for it.

As for the redirect, you seem to have changed this:

header("Location; http://".$cpg_host.$cpg_path);

the semicolon should be colon.

Traxman

Thank you for catching that, you would think with all the damn coding classes I am taking right now I would have looked for a simple syntax error.

Ok I created the test account

user: test1
pass: test1

You should see what i am talking about.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.gamingdynasty.com%2FTraxman%2FTraxman2.gif&hash=2cb5deaeb0053f78ba8c7ad7280b5c343bf3155e)

Nibbler

OK, so when you attempt to enter the gallery, you are not recognised as a user, so are redirected to the board's login page, which redirects you to the index as you are already logged in. So we need to find out why you are not recognised in coppermine. Double check your database details, and make sure coppermine and phpbb are located in the same database.

Traxman

They are. I installed a standalone version and checked everything out then decided to integrate everything. But of course i knew I would lose everything I had (no prob) but I also realized I had it on a seperate db so I did a fresh install on my forums db. So i know for sure that they are on the same db.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.gamingdynasty.com%2FTraxman%2FTraxman2.gif&hash=2cb5deaeb0053f78ba8c7ad7280b5c343bf3155e)

Traxman

Also I am heading to class but if you are still here I will talk to you from my comp in class.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.gamingdynasty.com%2FTraxman%2FTraxman2.gif&hash=2cb5deaeb0053f78ba8c7ad7280b5c343bf3155e)

Traxman

Just curious if you may have had any ideas on what it may be.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.gamingdynasty.com%2FTraxman%2FTraxman2.gif&hash=2cb5deaeb0053f78ba8c7ad7280b5c343bf3155e)

Nibbler

If you can PM me an ftp login I can take a look for you.

Traxman

Sent.

I created an ftp account for my forum and my gallery
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.gamingdynasty.com%2FTraxman%2FTraxman2.gif&hash=2cb5deaeb0053f78ba8c7ad7280b5c343bf3155e)

Traxman

Well that fixed the issue of not being able to get to the gallery. I have one more issue now.

When you first open a browser and type in my site url:

www.gamingdynasty.com/forum2/index.php

There is a test account.

user: test1
pass: test1

But before you login the forum if you click the gallery button at the top it redirects you to login the forum and then once you log in it redirects you again to the gallery.

Now the problem lies when you are already logged into the forum and you hit the gallery button. It just reloads the forum page.

Any thoughts?
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.gamingdynasty.com%2FTraxman%2FTraxman2.gif&hash=2cb5deaeb0053f78ba8c7ad7280b5c343bf3155e)

Traxman

Well I have seemed to fix the login issue but i have a display issue. Man I will get it soon.

It seems as a variable or something is showing at the top of my gallery index.

I have not changed anything other than the integration files tho so I am at a loss for this one.

http://www.gamingdynasty.com/PhotoAlbum/index.php

In the top left hand corner there is a bit of code:

int(2) string(0) ""

I don't know where it is but it throws things off and it is just simply annoying. Which file holds the these values?
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.gamingdynasty.com%2FTraxman%2FTraxman2.gif&hash=2cb5deaeb0053f78ba8c7ad7280b5c343bf3155e)

Joachim Müller

we have a "one issue per thread" policy. Your original issue has been solved. It'd be a nice gesture if you posted what was wrong, so others could benefit.

Nibbler

He was connecting to the wrong database. I accidently left some debug code in the bridge file, so look for 2 occurences of var_dump(something) and remove them.

Traxman

Thank you Nibbler. Also I apoligize for posting multiple issues in one thread.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.gamingdynasty.com%2FTraxman%2FTraxman2.gif&hash=2cb5deaeb0053f78ba8c7ad7280b5c343bf3155e)