phpBB 2.0.10 with 1.3 phpBB 2.0.10 with 1.3
 

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

phpBB 2.0.10 with 1.3

Started by MAcheTT3, September 06, 2004, 07:38:43 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

MAcheTT3

Hi, I'm trying to integrate the two and it seems to work great. Sort of.

I click 'Log In' in Coppermine, it takes me to phpBB Log In screen, I log in and press enter and it takes me back to Coppermine. Perfect! Except I'm still not logged in...

If I click on 'Log In' again it takes me back to my phpBB Board and I'm still logged in there, but if I click the link back to Coppermine again, I'm still not logged in.

Any ideas? Thanks.

Casper

Sounds like coppermine is not reading the boards cookies.

please post what your cookie settings are, in both apps, and the changes you made to your bridge file.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

better still: post links to both your coppermine page and your forum page, together with a non-admin test account.

Joachim

tanfwc

I su
Quote from: MAcheTT3 on September 06, 2004, 07:38:43 PM
Hi, I'm trying to integrate the two and it seems to work great. Sort of.

I click 'Log In' in Coppermine, it takes me to phpBB Log In screen, I log in and press enter and it takes me back to Coppermine. Perfect! Except I'm still not logged in...

If I click on 'Log In' again it takes me back to my phpBB Board and I'm still logged in there, but if I click the link back to Coppermine again, I'm still not logged in.

Any ideas? Thanks.

I suspect that your phpBB cookies is not the correct value. Post your cookies setting and let us take a look ;)
tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

MAcheTT3

#4
Thanks for all the replys! :)



Board address: www.portsville.com/community
Gallery address: www.portsville.com/eve/graphic

Board Cookies:
Cookie Domain -   .portsville.com
Cookie Name -   pvcommunity
Cookie Path -   /community/

Board Test Account:
User -   test
Password -   123

Edited Section of phpbb.inc.php (in Bridge folder):
// database configuration
define('PHPBB_DB_NAME', 'portsvi_community'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'portsvi_MAcheTT3'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', 'XXXXXXXXX'); // 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', '/community/');
// 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);
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', '/community/'); // The prefix used for board cookies   <<<<<<<<I ALSO TRIED .PORTSVILLE.COM AND PVCOMMUNITY


// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'portsvi_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'sessions'); // The session table
define('PHPBB_GROUP_TABLE', 'groups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'user_group'); // The group/user table




Thanks for all your help!

Joachim Müller

you seem to use sessions as only means of authorization / user tracking within your bbs. Go to your bbs' setup and change it (make it use cookies), as coppermine can only read cookies, it was not designed to use sessions.
This is the cookie info I get after logging in with the above account (using the "Cookie Information" gadget from Firefox/Mozilla):
QuoteCookie Information - http://www.portsville.com/community/index.php?sid=233ec131aab500b00d56f0216af7ae0e
http://www.portsville.com/community/index.php?sid=233ec131aab500b00d56f0216af7ae0e
Name   pvcommunity_sid
Value   233ec131aab500b00d56f0216af7ae0e
Host   portsville.com
Path   /community/
Expires   At End Of Session

Name   pvcommunity_data
Value   a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bs%3A1%3A%224%22%3B%7D
Host   portsville.com
Path   /community/
Expires   Donnerstag, 8. September 2005 07:40:03

Joachim

MAcheTT3

The only options the board gives me for cookies are as follows:

Cookie domain -   .portsville.com
Cookie name -   pvcommunity
Cookie path -   /community/
Cookie secure -   DISABLED
If your server is running via SSL, set this to enabled, else leave as disabled
Session length [ seconds ] -   3600

Is any of this wrong? If so, what should I change it to?

Joachim Müller

you're not using ssl (obviously), so you shouldn't enable "Session length [ seconds ]", as suggested by your bbs app (it says "If your server is running via SSL, set this to enabled, else leave as disabled". If you don't know what ssl is, you should leave it disabled as well of course). Clear this field in your bbs setup, then try again.

Joachim

Joachim Müller

you're not using ssl (obviously), so you shouldn't enable "Session length [ seconds ]", as suggested by your bbs app (it says "If your server is running via SSL, set this to enabled, else leave as disabled". If you don't know what ssl is, you should leave it disabled as well of course). Clear this field in your bbs setup, then try again.

Joachim

MAcheTT3

I do have the SSL bit disabled already, but I tried clearing the session length, like you said, but is still doesn't work. I also cleared my cookies, hoping this would help, but it didn't...  :(

Joachim Müller

QuoteHPBB_COOKIE_PREFIX', '/community/'); // The prefix used for board cookies   <<<<<<<<I ALSO TRIED .PORTSVILLE.COM AND PVCOMMUNITY
Try pvcommunity_

Joachim

tanfwc

Quote from: MAcheTT3 on September 08, 2004, 10:23:02 AM
The only options the board gives me for cookies are as follows:

Cookie domain - .portsville.com
Cookie name - pvcommunity
Cookie path - /community/
Cookie secure - DISABLED
If your server is running via SSL, set this to enabled, else leave as disabled
Session length [ seconds ] - 3600

Is any of this wrong? If so, what should I change it to?

change your cookies path to this.

Cookie path - /community

and change the path in the PHPBB_COOKIE_PREFIX also.

You have a invaild cookies setting in the phpBB itself. ;)
tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

MAcheTT3

Tried both those two things and still not working, sob...

Just checked my cookie settings in Firefox and noticed that my www.portsville.com/community cookie has a cookie domain as:  .portsville.com, but my www.portsville.com/eve/graphic has a cookie host of www.portsville.com. Full details are here:



Cookie from phpBB:

Site: portsville.com

Name: pvcommunity_data
Content: a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A32%3A%2248e2fd51dc1a9d37113a9926e276f59a%22%3Bs%3A6%3A%22userid%22%3Bs%3A1%3A%222%22%3B%7D
Host: .portsville.com
Path: /community
Send for: Any type of connection
Expires: 08 September 2005 18:27:16



Cookie from Coppermine:

Site: www.portsville.com

Name: cpg132_data
Content: YToyOntzOjI6IklEIjtzOjMyOiJjMDY1ZDJmOGUzZTE4ZGY2Zjc2ODYyNGE2YjNjMmU0ZSI7czoyOiJhbSI7aToxO30%3D
Host: www.portsville.com
Path: /
Send for: Any type of connection
Expires: 08 October 2004 18:27:17

MAcheTT3

One more thing: In MySQL Manager, I checked phpMyAdmin and my board uses prefix portsvi_ for it's tables, where Coppermine uses prefix copper_ for it's tables. I had to use different prefixes as the tables would have been in conflict, or something like that, the installer said do...  :P

Would that make any difference?

Joachim Müller

mySQL prefixes are not related. Leave them as they are.

Joachim

MAcheTT3

That's good, but did you look at my post above that post? ;)

Nibbler

You cannot set your board's cookie path to /community - coppermine will not be able to read it. Set it to /

MAcheTT3

Set my cookie to / in phpBB and it's still not working *sigh* I'm starting to think I'm NEVER going to get it working...

I checked my cookies again and now the paths are both the same ( / ) but the domain for the board is still just .portsville.com and coppermine is still www.portsville.com.

Could this be affecting it?

MAcheTT3

Well... Anyway, I got it working now. I must have skipped the part in the install text which says that the cookie name HAS to be set to default... Thanks to everyonr for your help.  :)