News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

[OBSOLETE] How to Integrate Coppermine with SMF

Started by dtm.exe, July 09, 2005, 04:59:26 PM

Previous topic - Next topic

dtm.exe

This tutorial is no longer needed as Coppermine includes a bridge wizard which makes things simple. For more information see the documentation, specifically the section on bridges. If you still have problems please start a new post in Portals, Bridges, and Integrations

Coppermine is an easily setup, fast, feature-rich photo gallery script with MySQL database, user management, private galleries, automatic thumbnail creation, ecard feature and a template system for easy customization to match the rest of a site.

To start, you'll need to download Coppermine.  Once downloaded, follow these instructions to properly integrate Coppermine with your SMF forum.

In /include/init.inc.php, find:
// define('UDB_INTEGRATION', 'smf');

Replace with:
define('UDB_INTEGRATION', 'smf');

In /bridge/smf.inc.php, find:
$path = '../smf';

Replace /smf with the directory you have your SMF forum installed in.  If SMF is installed in your root directory, remove smf leaving you with $path = '../';.

Once all necessary changes have been made, upload Coppermine to its own directory (examples: /coppermine, /gallery, /album).  Once uploaded, run install.php.  Make sure you install Coppermine on the same database as that of your SMF forum.  Once installed, your new Coppermine gallery will be up and ready for use :).

IamV

Will these steps work with a coppermine site that is already uploaded and ready to use?

dtm.exe

Quote from: IamV on July 10, 2005, 03:31:39 PM
Will these steps work with a coppermine site that is already uploaded and ready to use?

It should.

-Dan The Man

IamV


dtm.exe


forumite

Quote from: OIDanTheManIO on July 10, 2005, 03:42:23 PM
Quote from: IamV on July 10, 2005, 03:31:39 PM
Will these steps work with a coppermine site that is already uploaded and ready to use?
It should.
-Dan The Man

Dan, the bridge/smf.inc.php file has the following warning near the top:

WARNING : Do not activate this bridge if you already have pictures or usergroups in your gallery.     

Does this mean that existing pictures will be erased?

dtm.exe

Quote from: rvforumite on July 10, 2005, 11:44:17 PM
Dan, the bridge/smf.inc.php file has the following warning near the top:

WARNING : Do not activate this bridge if you already have pictures or usergroups in your gallery.     

Does this mean that existing pictures will be erased?

Oh, I didn't catch that.  I guess you have to bridge Coppermine with SMF using a fresh install :-\.

-Dan The Man

forumite

Quote from: OIDanTheManIO on July 10, 2005, 11:57:14 PM
Oh, I didn't catch that.  I guess you have to bridge Coppermine with SMF using a fresh install

I wonder why that is ?  Does that mean I'd have to delete and re-upload all my photos in Coppermine? Sounds like a real PITA.

dtm.exe

Quote from: rvforumite on July 11, 2005, 12:14:53 AM
I wonder why that is ?  Does that mean I'd have to delete and re-upload all my photos in Coppermine? Sounds like a real PITA.

It probably would be.  It's probably not worth it.  Keep what you've got now.

-Dan The Man

forumite

Thanks Dan. Too bad, I was really hoping to do the integration.

dtm.exe

Quote from: rvforumite on July 11, 2005, 01:44:09 AM
Thanks Dan. Too bad, I was really hoping to do the integration.

It *might* still be possible though.  You may wish to check the Coppermine forums and ask if anyone knows a way to bridge it *after* it was created.

http://coppermine.sourceforge.net/board/

-Dan The Man

taz

I am running CPG 1.4.1  and I had Pix in it when I Bridged it over I did not loose any of them nor did I loose any of my Members. 

forumite

Dan FYI a topic in the Coppermine support forum stated that the only issue with integrating with an existing Coppermine installation would be the loss of association between existing photos and the name of the uploader. I went ahead and implemented your code for the integration. It appears that my association with (aka ownership of) the photos I'd previously uploaded is intact.

Haven't yet given it a full workout, but the only "issue" I see so far is if I log out from Coppermine, it takes me to SMF and I get the following (SMF) message:

An Error Has Occurred!
Session verification failed. Please try logging out and back in again, and then try again.

If I follow the instruction in the above message, I'm logged into SMF cleanly. Is this expected behavior?

forumite


dtm.exe

Quote from: taz on July 11, 2005, 10:42:36 AM
I am running CPG 1.4.1  and I had Pix in it when I Bridged it over I did not loose any of them nor did I loose any of my Members. 

Glad to hear it :).

Quote from: rvforumite on July 11, 2005, 11:33:09 AM
Dan FYI a topic in the Coppermine support forum stated that the only issue with integrating with an existing Coppermine installation would be the loss of association between existing photos and the name of the uploader. I went ahead and implemented your code for the integration. It appears that my association with (aka ownership of) the photos I'd previously uploaded is intact.

Haven't yet given it a full workout, but the only "issue" I see so far is if I log out from Coppermine, it takes me to SMF and I get the following (SMF) message:

An Error Has Occurred!
Session verification failed. Please try logging out and back in again, and then try again.

If I follow the instruction in the above message, I'm logged into SMF cleanly. Is this expected behavior?

That error message you're receiving should be of normal behavior.  It still logs you out, just with an error message.  It's happened to me ever since I first used Coppermine with SMF.

-Dan The Man

Kindred

the issue would be:   When you bridge coppermine, it now uses the SMF user table and the coppermine user number becomes associated with the SMF user number (10000+SMF user number)



RV...   you should remove the login/logout buttons from Coppermine and only use the SMF login/logout...
(note: Coppermine MAY have issues with the change in password functions in SMF 1.1b3)

And last....   just FYI, in the basic setup, it is better to use your absolute path than the relative path... (instead of ../smf, use /home/user/public_html/smf)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

forumite

Quote from: OIDanTheManIO on July 11, 2005, 11:47:31 AMThat error message you're receiving should be of normal behavior.

Thanks for confirmation Dan.

forumite

Thanks Kindred.

Quote from: Kindred on July 11, 2005, 12:01:43 PMyou should remove the login/logout buttons from Coppermine and only use the SMF login/logout...

Which Coppermine file has the login/logout buttons code?

[/quote]

Kindred

not sure, I have not actually played with any of the coppermine template files myself....  but it looks like it would be theme.php in the themes/themename directory.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

forumite

Quote from: Kindred on July 11, 2005, 02:05:36 PMit looks like it would be theme.php in the themes/themename directory.

That's where they were. Thanks. I also took out the Register and Profile buttons.

Advertisement: