CPG 1.2/PhpBB2 - Page 4 CPG 1.2/PhpBB2 - Page 4
 

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

CPG 1.2/PhpBB2

Started by antoined, October 31, 2003, 01:37:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

shutiri

I think I know what I f***ed up.

I have just read this:

Cookie settings for CPG/phpBB integration

for phpBB2
Cookie domain: www.yoursite.com
Cookie name: phpbb2mysql
Cookie path: /

for Coppermine
cookie name: cpg11d
cookie path: /

But in the readme from the package, on the integration topic, I misunderstood this info:

If 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 "/". and I change the "cookie name" on CPG, not in phpBB.

Now, I can't get into the admin of CPG to change it, because even if I get correctly logged to the admin panel, when I click on config I get this "You don't have permission to access this page".

How do I change the cookie name on the code ?

thank you.
shutiri

Casper

Please post lines 30 - 32 of your phpbb.inc.php here.
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

Casper

You can change your cookie name back using your database tool, such as phpMyAdmin, and going to the cpg_config table.
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

shutiri

Hi, Casper.  I'll try on the db.

these are the lines 30-33 (I've included 1 more, because of the change I did on 33):
// The web path to your phpBB directory
// In this example http://yoursite_name.com/phpBB2/
define('PHPBB_WEB_PATH', '/foro/');
define('PHPBB_LOGOUT_GET', TRUE);

thank you.
shutiri.

shutiri

nop... 
I think it is working a little better (inside), but I get a lot of blank pages.  when I type the URL after doing some tasks, it tries to work.  Could somebody check it out, please ?

user: test
pass: test.

thank you, you're great.
shutiri.

shutiri

I understand a little bit better the symptoms now.  It's simple: the complete login/logout tasks in CPG is not working.

To login in CPG, I need to login first in phpBB.  If not, when I try to login in CPG, I get a blank page.
When logged in phpBB, I go to CPG, totally logged (that's the good difference after changing the cookie name in the db  ;)).  But if I try to logout from CPG, I get a blank page too.

Can somebody help ?  I think I could just take away the login/logout buttons form the CPG panel, but that's not the ideal solution.  I would like people to log directly in the pictures gallery without having to log in the forums.

Thank you for all your help.
Shutiri.

shutiri

Sorry about all separate posts.  I think the process is working, but I can't see it (that's what I meant about "inside").

- When I log in CPG (it does this through the phpBB login page, I think this is normal), it takes me to a blank page, but I'm actually logged in:  if I write the URL to my CPG (after login >> blank page), it takes to the CPG panel, apparently not logged in, but when I click on login,  it says "You are already logged in !" and everything works fine.
- When I logout from CPG, it takes to a blank page BUT not logged in anymore:  If I write the URL to my phpBB, it takes me to the login page (not logged in) and if I write the URL to my CPG, it takes me to the cpanel, apparently logged in, but when I click on anything, I see this "You don't have permission to access this page".  So, I'm not really logged in.

That's it...  It seems a little complicated but the inside process is working (login/logout), it's just that the redirection takes to blank pages in the middle.  How do I take away these blank pages ?

thank you,
shutiri.


mscrw

I installed CPG 1.2.0 last year and it works great!  I currently have over 200 users and almost 4000 photos.  Yesterday I finished installing PHPBB 2.0.8 and it is also working fine.  I want to integrate the two, but it seems that the normal procedure is to install PHPBB first and then CPG.

Can I integrate them without losing any photos or user info?  Will the CPG user's info (username/password) apply to PHPBB or will they need to register again?

Is there a special integration procedure for this, or should I just follow the steps in the readme file?

Thanks.

shutiri

Hi. 

I just have integrated CPG with SMF board (the one on this page).  Trying to integrate phpBB and CPG for days, but it was not possible (a real PITA).  I would strongly recommend you to reconsider your forum choice.

shutiri.

MichaelWhi

Quote from: antoined on November 03, 2003, 07:37:48 PM


Thanks again,
the cookie names of both is phpbb2mysql, when cookie domain name is blank in phpbb.

is it right?
Thank you
Antoine

Hi! Set your PHPBB2-Cookiedomain to your Webserverdomain (without leading http:// ).
e.g.: Board and Gallery run at http://www.yourdomain.com/phpb22/ and http://www.yourdomain.com/cpg/ set your cookiedomain to "www.yourdomain.com".

This should solve the problem, that users get logged out although they didn't hit the Logout-Button....

Does it work now?

Casper

The cookie names MUST be different.
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