Help with PHPBB Integration 2.0.14 Help with PHPBB Integration 2.0.14
 

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

Help with PHPBB Integration 2.0.14

Started by FernFerret, April 16, 2005, 02:38:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

FernFerret

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
Ferret

Nibbler

It should be your domain name. If it is blank and works then you can leave it blank.

FernFerret

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?
Ferret

Nibbler

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.

FernFerret

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
Ferret

FernFerret

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
ps username: Test1
pass: 12345
Ferret

Nibbler

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.

FernFerret

$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)
Ferret

FernFerret

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
Ferret

Nibbler

You can't set a target in a location header.

FernFerret

Ferret

FernFerret

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
Ferret

FernFerret

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
Ferret