Integrating CPG 1.2 with phpBB2 Plus package Integrating CPG 1.2 with phpBB2 Plus package
 

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

Integrating CPG 1.2 with phpBB2 Plus package

Started by SirRubberduck, January 25, 2004, 04:28:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SirRubberduck

Hi there!

Excuse a newbee for asking, but I have this problem that's keeping me awake at night:

How do I replace the "onboard" Smartor Album with CGP (latest version) This because I need a separate login for the gallery.

I have no knowledge of php-programming what so ever, so what I need is a 1-on-1 instruction on how to go about this change.

Hopefully someone out there will have the solution for me... Please

TIA
SirRubberduck

Joachim Müller

sorry, I don't know that other application you're currently using. Step-by-step information on how to set up coppermine can be found within the current package (unzip it and take a look into the docs folder). There's no convertor script available from "Smartor Album" to Coppermine (in fact I have never heard of this app before).

GauGau

SirRubberduck

Quote from: "gaugau"There's no convertor script available from "Smartor Album" to Coppermine (in fact I have never heard of this app before).
GauGau

That's an Album included with the phpBB2 Plus package. I'm not interested in converting this Album module to CGP. I would like to replace the intire module... Using CGP instead of Album. This because CGP offers a separate login for users. A feature I greatly need!

Setting up CGP was the easy part!  :)

Cheers,
SirRubberduck

SirRubberduck

Hi!

As I mentioned earlier, both phpBB2Plus and CGP are installed and running smoothly.

See http://www.poser-siden.dk for GCP (Gallery)
See http://www.poser-siden.dk/phpBB2 (Portal)

I have done the code editing according to the readme file included with CGP so that the two of them may cooperate....

However this brings brings out the question of weather editing was really that good idea, since I STILL need people to use a special MEMBERS ONLY login given to them by yours truely, for the non-public part of the gallery.

By editing the two CGP files I'm actually allowing access to the whole gallery using the cookies from the board. Meaning that everybody will have access to the MEMBERS ONLY section...   :!:  :evil:  

Did I just answer my own question???  :roll:

Cheers,
SirRubberduck

Joachim Müller

I'm not sure what you did, but try to undo the changes in coppermine and start with phpbb and coppermine not integrated. Make sure both apps work standalone as expected. Then edit your bridge file (coppermine/bridge/phpbb.in.php) according to the documentation (no code changes, only the vars at the beginning should be fixed).
Go to coppermine config and make sure that your coppermine cookie name is not the same as the cookie name of your phpbb (they must be different - the default settings are fine)!
So far, nothing should have changed. Both apps should still be running as standalone. Create a test user account within coppermine and make sure you can login and logout to coppermine both with the admin user and the test user account.
Then, switch integration of the two apps on by editing coppermine/include/init.inc.php as stated in the readme. Do not apply any other modifications yet! First test, wether the basic integration works: log in to phpbb (using phpbb's login page). Manually enter the coppermine url into the adress bar (hit force-refresh to make sure not to see some cached page) and check if the navigation in coppermine says "logout[phpbb_test_user_name]".
If this works as expected there are still some issues left: the login/logout of coppermine will probably not redirect you properly - apply the fixes mentioned in http://forum.coppermine-gallery.net/index.php?topic=2972
Test again, everything should be dandy now!

GauGau