coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: dukhunter99 on April 05, 2005, 04:52:02 AM

Title: Problem with SMF bridging
Post by: dukhunter99 on April 05, 2005, 04:52:02 AM
Hello,

I attempted to bridge my smf board to coppermine. I believe that I followed the directions according to the manual but I'm getting errors. This is what it said:

Notice: Undefined offset: 7 in /home/bestd2/public_html/photogallery/bridge/smf.inc.php on line 73

Notice: Undefined offset: 7 in /home/bestd2/public_html/photogallery/bridge/smf.inc.php on line 77

Warning: main(/Settings.php): failed to open stream: No such file or directory in /home/bestd2/public_html/photogallery/bridge/smf.inc.php on line 77

Fatal error: main(): Failed opening required '/Settings.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bestd2/public_html/photogallery/bridge/smf.inc.php on line 77

This is how I modified the code in smf.inc.php:
// database configuration
define('SMF_DB_NAME','bestd2_smf'); // The name of the database used by the board
define('SMF_DB_HOST','localhost'); // The name of the database server
define('SMF_DB_USERNAME','XXXXXX'); // The username to use to connect to the database
define('SMF_DB_PASSWORD','XXXXXX'); // The password to use to connect to the database

// The web path to your SMF Board directory
define('SMF_WEB_PATH', "http://www.best-guns.com/sportsmansforum");

// The Name of the Cookie used for SMF logon
define('SMF_COOKIE_NAME','SMFCookie10');

// Prefix for the database tables
define('SMF_TABLE_PREFIX','smf_'); // Table Prefix

// Names for the database tables
define('SMF_USER_TABLE', 'members'); // The members table
define('SMF_GROUP_TABLE', 'membergroups'); // The groups table


Can someone tell me what I did wrong?
Title: Re: Problem with SMF bridging
Post by: CapriSkye on April 05, 2005, 10:13:16 AM
did you chmod everything correctly?
Title: Re: Problem with SMF bridging
Post by: kegobeer on April 05, 2005, 02:39:41 PM
What version of Coppermine are you using?
Title: Re: Problem with SMF bridging
Post by: dukhunter99 on April 05, 2005, 02:45:34 PM
I'm using version 1.3
Title: Re: Problem with SMF bridging
Post by: kegobeer on April 05, 2005, 02:48:40 PM
Have you considered upgrading to 1.3.2?  Depending on how your server is configured, you may not be able to include/require a file if you use a url instead of a relative path.  The 1.3.2 version uses a relative path, which is why I recommend upgrading.
Title: Re: Problem with SMF bridging
Post by: dukhunter99 on April 05, 2005, 07:04:34 PM
O.K.,

I've decided to completely start over. I've removed my old version of coppermine and smf and am installing clean versions. I'm installing coppermine 1.3.2 as KegoBeer suggested. Now it says in order to inegrate the two, you need to have them both in the same database. Should I create a database in Cpanel first and then install both cpg and smf in the database or let smf create the database for me and them configure coppermine to that database?
Or is there a better way. i'm definetly open for suggestions ;)
Title: Re: Problem with SMF bridging
Post by: Nibbler on April 05, 2005, 07:08:48 PM
Doesn't make any difference. Be sure to specify an actual path as SMF_WEB_PATH.
Title: Re: Problem with SMF bridging
Post by: dukhunter99 on April 05, 2005, 10:03:22 PM
When you say specify right path, do you mean the database name. I've set the database name.

Would this work O.K.

bestd2_smfcopp