News:

Wondering if this will always be free?  See why free is better.

Main Menu

Coppermine Integratio through differant servers

Started by kevin_smithers, February 19, 2008, 08:39:19 PM

Previous topic - Next topic

kevin_smithers

This one is a little tricky so you may want to hold your hat on  ;)

UK server - I have a domain with a SMF installation Http://www.domain.com/forum

I have a sub-domain of this domain Http://gallery.domain.com and I have changed the A record to point to a server in the USA

USA Server - I have a Coppermine Gallery installation which I would like to bridge with SMF

The bridge tool in CM admin panel will not work as it askes for relative links, if the two locations were on the same server then yeah no problem but they are not, so does anybody know if this is possible or know of a working integration mod??

And yeah I have been over to CM forum and chatted to an Administrator and he has no clue about his own script lol so I thought I would ask the experts, hence I am here.

rsw686

There is no way your scenario will work unless the server hosting coppermine can access the smf server's mysql database. Even then you will have to work out the relative links issue. Take a look in the bridge directory and see if you can just hard code them into the smf bridge.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

kevin_smithers

The USA server which is hostign the Coppermine Gallery can access the mySQL on the UK server.

I setup remote mySQL on the UK server and allowed the USA servers IP address's quite easy really I do stuff like this all the time fro colocation backups of large forums and stuff for my corporate clients.

But yeah the problem is the relative links, it is the way the bridge for CM has been programmed.

rsw686

You'll need a subset of the SMF files to make it work. The Coppermine integration uses the SSI.php file from SMF. Might copy over files until you can get ssi_examples.php to work (it calls SSI.php). Make sure to configure SMF's Settings.php file. Then give it those relative links in the bridge setup.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

kevin_smithers

Nope that didn't work either, I got loads of errors!!!

There has to be a better way, all I want to do is login to a remote SQL catch the users table and let the gallery use it for member logins!!!

rsw686

You need all the files required by SSI.php. There is not a better way unless you write your own integration. The Gallery uses SSI.php to tie into the existing SMF php session so it knows if you are logged in or not. When you click login or logout in the gallery you are redirected to the forum login / logout page.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

kevin_smithers

I had all of the required files and they loaded after I changed the root path to them in the SSI.php file but hten I started to get php config errors, to be honest I don't think it is going to be possible over two servers.

Usualy the subdomains would not be a problem as they are only /directorys off of the main domain anyway so cross site cookies / sessions and relative paths are easy to deal with.

Anyways I am giving up for tonight :) thanks for you advice.

rsw686

I made a MediaWiki integration for SMF that doesn't require the SMF files. It just uses the values from the Settings.php file. You should be able to take the code for the login / logout auth, modify it, and use it instead of the code in the Coppermine bridge that requires SSI.php.

http://www.simplemachines.org/community/index.php?topic=221622.0
http://www.mediawiki.org/wiki/Extension:SMF_Auth_Integration
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Advertisement: