coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: FernFerret on April 16, 2005, 02:38:44 AM

Title: Help with PHPBB Integration 2.0.14
Post by: FernFerret on April 16, 2005, 02:38:44 AM
QuoteIf you are using phpBB 2, go to the admin control panel and check that "Cookie domain" corresponds to your domain, "Cookie name" is "phpbb2mysql" and "Cookie path" is "/".
the part about the cookie domain, Mine is blank and was blank.  What goes there?

Eric
Title: Re: Help with PHPBB Integration 2.0.14
Post by: Nibbler on April 16, 2005, 03:00:08 AM
It should be your domain name. If it is blank and works then you can leave it blank.
Title: Re: Help with PHPBB Integration 2.0.14
Post by: FernFerret on April 16, 2005, 03:13:32 AM
Ok installed, yet does not work...
link to phpbb:  http://www.homesteadwrestlingclub.com/forums/
link to coppermine:  http://www.homesteadwrestlingclub.com/photos/

yet it sort of does, and this could be an issue with the new update of phpbb, released today.

Loging in from phpbb and out from their works fine
its loging in from coppermine, it does, but does not go to the right place.
To save anyone from haveing to create an account, i have created one
usrname: Test1
pass:12345

Hmm as updating this very post (i'm a slow poster) I have figured something out, but it does not solve my prob.
When logging in from coppermine, you click submit, then a 404 comes.  simply click in the address bar, hit return, and bingo.  But that should not be neccessary.

Could it be the domain name thing?
Title: Re: Help with PHPBB Integration 2.0.14
Post by: Nibbler on April 16, 2005, 03:19:34 AM
You need to modify your cpg_redir file -change 'gallery' to 'photos'. Looks like you need to do a similar thing in the bridge file itself.
Title: Re: Help with PHPBB Integration 2.0.14
Post by: FernFerret on April 16, 2005, 03:23:40 AM
WOW that was it!  Thank you so much.  I guess I missed that in the manual.

Thanks again (and I do mean again, you've helped me before ;))
Eric
Title: Re: Help with PHPBB Integration 2.0.14
Post by: FernFerret on April 16, 2005, 03:26:27 AM
arg take it back, but not all of it.  Because when I test it in the frames page, when I log in from coppermine, the coppermine window pops out of the origonal frame. try it yourself
www.homesteadwrestlingclub.com (http://www.homesteadwrestlingclub.com)
ps username: Test1
pass: 12345
Title: Re: Help with PHPBB Integration 2.0.14
Post by: Nibbler on April 16, 2005, 03:29:37 AM
Then maybe change the redirection to take you to the main frame, try setting it to just '/' in both places mentioned previously. I'm not all that keen on frames so I can't help much.
Title: Re: Help with PHPBB Integration 2.0.14
Post by: FernFerret on April 16, 2005, 03:41:16 AM
$cpg_path='/photos';
header("Location: http://".$cpg_host.$cpg_path);


I need to tell it that the location is in the target frame: main, or _self
here is the html:
target="_self"
But i am still learning php, how would i put that there
(ps learning php for about a month now so really just touching)
Title: Re: Help with PHPBB Integration 2.0.14
Post by: FernFerret on April 16, 2005, 04:04:39 AM
Ok, when I LOG OFF from PHPBB the window goes out of the frame, but when I LOG IN From Coppermine, it goes out of the frame. all else is good
Title: Re: Help with PHPBB Integration 2.0.14
Post by: Nibbler on April 16, 2005, 02:57:01 PM
You can't set a target in a location header.
Title: Re: Help with PHPBB Integration 2.0.14
Post by: FernFerret on April 16, 2005, 11:45:56 PM
so where would I do this?
Title: Re: Help with PHPBB Integration 2.0.14
Post by: FernFerret on April 17, 2005, 03:59:43 AM
yes yes yes!!!!! problem found, but not yet solved.  it has nothing to do with coppermine.  (duh coppermine is perfect!)  it was phpbb.  while browsing source code, I found the following!
<form action="login.php" method="post" [b]target="_top">[/b]

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
  <tr>
<td align="left" class="nav"><a href="index.php" class="nav">Homestead Wrestling Club Forum Index</a></td>
  </tr>

</table>

<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
  <tr>
<th height="25" class="thHead" nowrap="nowrap">Please enter your username and password to log in.</th>
  </tr>
  <tr>
<td class="row1"><table border="0" cellpadding="3" cellspacing="1" width="100%">
  <tr>
<td colspan="2" align="center">&nbsp;</td>

  </tr>
  <tr>
<td width="45%" align="right"><span class="gen">Username:</span></td>
<td>
  <input type="text" class="post" name="username" size="25" maxlength="40" value="" />
</td>
  </tr>
  <tr>


Now just to find where that is in the php file, ugh
Title: Re: Help with PHPBB Integration 2.0.14
Post by: FernFerret on April 17, 2005, 04:23:11 AM
YES IT IS TRUE, I FOUND IT!!!!! after going through 6 docs searching for "_top" and finding POST_TOPIC! I decided that it couldent hurt to find whole word only, and sure enough, in login_body.tpl i found it!

Thank you guys sooo much.  Now both pieces of software work beautifly together!
Eric