News:

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

Main Menu

Coppermine integration

Started by charlottezweb, November 07, 2003, 06:42:23 PM

Previous topic - Next topic

Tom Veik

Quote from: GauGau on February 02, 2004, 04:39:15 AM
yes, Jack is currently working on a bridge file for SMF...
What exactly does the bridge do from the viewpoint of users?  Does it just cause login/logout to occur simultaneously on both YSE/SMF and Coppermine?  Or does it do more than that?

Tom

jack

Got it in one :).. if you are logged into SMF, your credentials 'carry over' into Coppermine. Also, SMF groups override the Coppermine groups. Install the YaBB SE one to have a play - it works in the same way :)

jack

Quote from: jack on March 04, 2004, 05:12:28 PMDon't worry, when SMF goes public, the bridge file will have been publicly available for quite a while :)

lo and behold! I've remembered how to log into Sourceforge CVS :o The bridge is now sitting in the 'devel' branch of Coppermine CVS :D

Going to start work on a converter from Spaceman-SPiff's Coppermine Mod for YaBB SE soon :)

Ben_S

Quote from: jack on March 11, 2004, 04:15:09 PM
Going to start work on a converter from Spaceman-SPiff's Coppermine Mod for YaBB SE soon :)

Yay, just what I need ;D ;D
Liverpool FC Forum with 14 million+ posts.

Joachim Müller

just for those "complaining" that the Coppermine support board is still running with phpBB: the phpBB -> SMF convertor is still hidden within the charter member section for me, and SMF still has beta status, that's why I won't convert now, but I surely will in the future.

Maybe meanwhile someone wants to build a coppermine theme that matches the look of the SMF default theme *hint* ;)

GauGau
Integrate your SMF install with a picture/multimedia gallery: Coppermine Photo Gallery [nofollow]

jack

Lol .. Can someone do me a phpBB styl;e theme so I can covert the board without GauGau noticing ;)

I suppose I should have remembered to keep this thread updated - The bridge file is working. I don't expect to see any changes to it other than minor bugfixes or unless [unknown] changes more bits of SMF it's reliant on ;)

The version I released today http://www.haxed.co.uk/~jack/smf-bridge-beta-0.5.zip now works properly with the public beta.

Go Play!

David

Quote from: jack on March 21, 2004, 07:27:18 PM
Lol .. Can someone do me a phpBB styl;e theme so I can covert the board without GauGau noticing ;)
Talk to Unknown, he already did one.
This space for rent.

Joachim Müller

just FYI: Coppermine support board has been migrated to SMF ;)
Great work, kudos to the SMF team! :)

The coppermine-SMF bridge is up-and-running (check the demo on the coppermine page).

GauGau
Integrate your SMF install with a picture/multimedia gallery: Coppermine Photo Gallery [nofollow]

Ben_S

Liverpool FC Forum with 14 million+ posts.

Anguz

Cristián Lávaque http://cristianlavaque.com

DaMysterious

Quote from: jack on March 21, 2004, 07:27:18 PM
Lol .. Can someone do me a phpBB styl;e theme so I can covert the board without GauGau noticing ;)

I suppose I should have remembered to keep this thread updated - The bridge file is working. I don't expect to see any changes to it other than minor bugfixes or unless [unknown] changes more bits of SMF it's reliant on ;)

The version I released today http://www.haxed.co.uk/~jack/smf-bridge-beta-0.5.zip [nofollow] now works properly with the public beta.

Go Play!

Hi jack,

I installed SMF properly. After enable the bridge (checked the settings first in smf.inc.php) for Smf in init.inc.php following errors apear.

Warning: fopen(./Sources/Load.php): failed to open stream: No such file or directory in C:\Inetpub\gallery\bridge\smf.inc.php on line 112

Warning: filesize(): Stat failed for ./Sources/Load.php (errno=2 - No such file or directory) in C:\Inetpub\gallery\bridge\smf.inc.php on line 113

Warning: fread(): supplied argument is not a valid stream resource in C:\Inetpub\gallery\bridge\smf.inc.php on line 115

Warning: fclose(): supplied argument is not a valid stream resource in C:\Inetpub\gallery\bridge\smf.inc.php on line 116

Warning: fopen(./Sources/Subs.php): failed to open stream: No such file or directory in C:\Inetpub\gallery\bridge\smf.inc.php on line 112

Warning: filesize(): Stat failed for ./Sources/Subs.php (errno=2 - No such file or directory) in C:\Inetpub\gallery\bridge\smf.inc.php on line 113

Warning: fread(): supplied argument is not a valid stream resource in C:\Inetpub\gallery\bridge\smf.inc.php on line 115

Warning: fclose(): supplied argument is not a valid stream resource in C:\Inetpub\gallery\bridge\smf.inc.php on line 116

Fatal error: Call to undefined function: reloadsettings() in C:\Inetpub\gallery\bridge\smf.inc.php on line 223


Anyone a sugestion?
Salve,
DaMysterious.

Ben_S

edit your smf Settings.php and change the sources dir path from ./Sources to the real path
Liverpool FC Forum with 14 million+ posts.

DaMysterious

Quote from: Ben_S on April 25, 2004, 06:28:46 PM
edit your smf Settings.php and change the sources dir path from ./Sources to the real path

I tryed that with the result below


Fatal error :
There was an error while processing a database query


My settings.php

# Note: these settings must be properly changed for SMF to work

$maintenance = 0; # Set to 1 to enable Maintenance mode, 2 to make the forum untouchable (you'll have to make it 0 again)
$mtitle = 'Maintenance Mode'; # Subject for display
$mmessage = 'Ok faithful users...we\'re attempting to restore an older backup of the database...news will be posted once we\'re back!'; # Message Description for display

$language = 'english'; # Change to language pack you want to use
$mbname = 'DaMysterious'; # The name of your forum
$boardurl = 'C:\Inetpub\smf'; # SMF of your forum's folder (without trailing '/')

$cookiename = 'SMFCookie10'; # Name of the cookie

$webmaster_email = '[email protected]'; # Your email address.

########## Database Info ##########
$db_name = 'smf';
$db_user = 'root';
$db_passwd = '';
$db_server = 'localhost';
$db_prefix = 'smf_';
$db_persist = 0;
$db_error_send = 1;

########## Directories/Files ##########
# Note: directories do not have to be changed unless you move things

$boarddir = 'C:\Inetpub\smf'; # The absolute path to the forum's folder (usually can be left as '.')
$sourcedir = 'C:\Inetpub\smf\Sources'; # Directory with source files

########## Error-Catching ##########
# Note: You shouldn't touch these settings.
$db_last_error = 0;


Salve,
DaMysterious.

Ben_S

$boardurl needs to stay as the actual url.
Liverpool FC Forum with 14 million+ posts.

madandy007

This is looking good.

I can't wait to move my live forum across to both SMF and the latest Coppermine!

Just out of interest, on my current YaBBSE and Coppermine installation I changed the Coppermine menu from saying "Logout [user]" to "Forum [user]" which links back to the YaBBSE forum instead of logging out.

Makes it feel it more "integrated".

A.

www.ghostsofnottingham.co.uk

Andy

DaMysterious

Quote from: Ben_S on April 25, 2004, 07:54:19 PM
$boardurl needs to stay as the actual url.

Did that already as I could'nt login before. The error stil remanes 'Fatal error :
There was an error while processing a database query'
Salve,
DaMysterious.

[Unknown]

Does SMF still work, but Coppermine not?

-[Unknown]

Shadowc

I had the same problems and solved it this way.

Don't edit in /SMF/Settings.php

Edit the bridge file with realpaths instead, it solved the problem for me.

Quote
// ------------------------------------------------------------------------- //
// Nothing to edit below this line
// ------------------------------------------------------------------------- //

// Otherwise, try to autodetect SMF path if not set:
if (substr($path, -1) == '/')
        $path = substr($path, 0, -1);
       
$possible_paths = array($path, '..', '../forum', '../forums',
'../community', '../yabbse', '../smf');

$correct = 0;
while (!file_exists($possible_paths[$correct] . '/Settings.php') &&
count($possible_paths) > $correct)
        $correct++;

require_once($possible_paths[$correct] . '/Settings.php');

define ('SMF', 1);

// other includes
cm_include_smf_funcs("/xxxxxxxx/xxxxxxx.com/www/forum/Sources/Load.php", array("reloadSettings", "md5_hmac", "loadUserSettings"));
cm_include_smf_funcs("/xxxxxxxx/xxxxxxx.com/www/forum/Sources/Security.php", array("updateMemberData", "updateStats", "updateSettings"));

// database configuration

DaMysterious

#78
Quote from: [Unknown] on April 25, 2004, 10:02:54 PM
Does SMF still work, but Coppermine not?

-[Unknown]

Both work standalone perfectly. The problem rises when I enable the coppermine bridge for Smf.
Salve,
DaMysterious.

DaMysterious

Quote from: Shadowc on April 25, 2004, 10:08:26 PM
I had the same problems and solved it this way.

Don't edit in /SMF/Settings.php

Edit the bridge file with realpaths instead, it solved the problem for me.


Ok my last try for today, i went totaly crazy from this. Remember both works wel standalone.

I placed back a fresh Settings.php and set it up.
Copyed your code into smf.inc.php and change it to my needs
Quote
// ------------------------------------------------------------------------- //
// Nothing to edit below this line
// ------------------------------------------------------------------------- //

// Otherwise, try to autodetect SMF path if not set:
if (substr($path, -1) == '/')
        $path = substr($path, 0, -1);
       
$possible_paths = array($path, '..', '../forum', '../forums',
'../community', '../yabbse', '../smf');

$correct = 0;
while (!file_exists($possible_paths[$correct] . '/Settings.php') &&
count($possible_paths) > $correct)
        $correct++;

require_once($possible_paths[$correct] . '/Settings.php');

define ('SMF', 1);

// other includes
cm_include_smf_funcs("http://damysterious.xs4all.nl/smf/Sources/Load.php [nofollow]", array("reloadSettings", "md5_hmac", "loadUserSettings"));
cm_include_smf_funcs("http://damysterious.xs4all.nl/smf/Sources/Security.php [nofollow]", array("updateMemberData", "updateStats", "updateSettings"));

Hereafter this errors came up

Warning: filesize(): Stat failed for http://damysterious.xs4all.nl/smf/Sources/Load.php (errno=2 - No such file or directory) in C:Inetpubgalleryridgesmf.inc.php on line 113

Warning: fread(): Length parameter must be greater than 0. in C:Inetpubgalleryridgesmf.inc.php on line 115

Warning: filesize(): Stat failed for http://damysterious.xs4all.nl/smf/Sources/Security.php (errno=2 - No such file or directory) in C:Inetpubgalleryridgesmf.inc.php on line 113

Warning: fread(): Length parameter must be greater than 0. in C:Inetpubgalleryridgesmf.inc.php on line 115

Fatal error: Call to undefined function: reloadsettings() in C:Inetpubgalleryridgesmf.inc.php on line 223


Could this be real a Windows server problem?
Salve,
DaMysterious.

Advertisement: