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
get the most recent smf bridge file from the web cvs: http://cvs.sourceforge.net/viewcvs.py/coppermine/devel/bridge/smf.inc.php
GauGau
I have seen this mentioned before. BD is crrect, do not change it to DB.
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
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";
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.