Coppermine + SMF Coppermine + SMF
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Coppermine + SMF

Started by memememe, May 07, 2004, 03:28:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

memememe

hm, first, is the bridge file supplied on this site correct?, i seem to a error on line 447, it goes $UDB_DB_LINK_ID = @mysql_connect(SMF_BD_HOST, SMF_DB_USERNAME, SMF_DB_PASSWORD);

i change the SMF_BD_HOST to SMF_DB_HOST, anyway, now i'm getting this:
Fatal error :
There was an error while processing a database query

Joachim Müller


Casper

I have seen this mentioned before.  BD is crrect, do not change it to DB.
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

memememe

but if i don't change it, this is wat i get:
Coppermine critical error:
Unable to connect to SMF Board database !

MySQL said: Unknown MySQL Server Host 'SMF_BD_HOST' (1)


and yea, i just d/l the new bridge too....don't noe wat's happening

thnx

Casper

I am using the smf bridge on my site.  The line of code you have posted is line 523, and on my install, which works correctly, it is this;
$UDB_DB_LINK_ID = @mysql_connect(SMF_BD_HOST, SMF_DB_USERNAME, SMF_DB_PASSWORD);

This is the only time this code exists in the smf.inc.php.

Line 447 should be;

$sql = "SELECT ID_MEMBER as user_id, realName as user_name " . "FROM " . $UDB_DB_NAME_PREFIX . SMF_TABLE_PREFIX . SMF_USER_TABLE . " " . "WHERE ID_MEMBER IN $user_id_set";

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

2 things.

First, please in future post the original problem, not the subsequent problem you get when you have altered files.

It seems to me you have not changed line 45 correctly.  This is the only line you need to modify before uploading;
$path = '../smf';
The 'smf' should be changed to your actual directory name, so if your forum's directory is called '/forum/, this code should be;
$path = '../forum';

Second, the smf bridge is specific to version 1.3, which has no support yet. If you are using it with version 1.2x, there may be problems.

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