Need help with bridge for smf and coppermine... Need help with bridge for smf and coppermine...
 

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

Need help with bridge for smf and coppermine...

Started by tealpony, September 30, 2005, 04:23:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tealpony

OK, I changed smf.inc.php to include the following:

} else { // the vars from the bridgemgr
       $path = $BRIDGE['relative_path_to_config_file'];
       define('USE_POST_GROUPS', $BRIDGE['use_post_based_groups']);
}

// Set the names of implied groups here
define('CM_ADMIN_GROUP_NAME', 'Administrators');
define('CM_MEMBERS_GROUP_NAME', 'Registered');
define('CM_GUEST_GROUP_NAME', 'Anonymous');
define('CM_BANNED_GROUP_NAME', 'Banned');
define('CM_GMOD_GROUP_NAME', 'Global Moderators');

// 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($possible_paths[$correct] . '/SSI.php');

// database configuration
define('SMF_DB_NAME', $db_name); // The name of the database used by the board
define('SMF_DB_HOST', $db_server); // The name of the database server
define('SMF_DB_USERNAME', $db_user); // The username to use to connect to the database
define('SMF_DB_PASSWORD', $db_passwd); // The password to use to connect to the database

// The web path to your SMF Board directory
define('SMF_WEB_PATH', "$boardurl/");

Then I changed include/init.inc.php to include:

define('COPPERMINE_VERSION', '1.3.5');
// User database integration
// Uncomment the applicable line if you want to use it
// define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
// define('UDB_INTEGRATION', 'vbulletin23');
// define('UDB_INTEGRATION', 'vbulletin30');
// define('UDB_INTEGRATION', 'yabbse');
define('UDB_INTEGRATION', 'smf');
// define('UDB_INTEGRATION', 'woltlab21');
// define('UDB_INTEGRATION', 'punbb');
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');
// Start output buffering
ob_start();
// Report all errors except E_NOTICE
// This is the default value set in php.ini
// error_reporting (E_ALL ^ E_NOTICE);
error_reporting(E_ALL);

and now I am getting:
Notice: Undefined variable: BRIDGE in /home/fullthro/public_html/gallery/bridge/smf.inc.php on line 82

Notice: Undefined variable: BRIDGE in /home/fullthro/public_html/gallery/bridge/smf.inc.php on line 83

Fatal error: Cannot redeclare db_query() (previously declared in /home/fullthro/public_html/gallery/include/functions.inc.php:71) in /home/fullthro/public_html/forum/Sources/Subs.php on line 216

Yeah I'm a newbie. But I could sure use some help here. Just trying to integrate and link this to the posts under the avatar. I've changed that part but can't tell if it will work. I just want the users of the forum to be able to click to their own gallery where they are logged in with their username and password from the site.
I've looked all over here and peiced together what to do but I am still screwing it up. Please help. :)

Joachim Müller

it seems like you're trying to use a bridge file designed for cpg1.4.x with a coppermine install v1.3.x. This will not work. Use the bridge file from the package that came with your version of cpg1.3.x.
If you're using cpg1.4.x, you're on your own with this, as cpg1.4.x currently goes unsupported.

tealpony

Thank you so much. I'm using v1.3.3 :)

Let me keep working on it. I'm in over my little pin head.  ;D

~Wendy

tealpony

#3
OK I put this in: http://cvs.sourceforge.net/viewcvs.py/*checkout*/coppermine/devel/bridge/Attic/smf.inc.php?rev=1.18
At least now the gallery is being shown again, no errors. YAAAAY! :)

Here's what happened next. I clicked logon in the gallery and thought, I'll use my username (not admin) and see if the gallery can see it. Well it did!  when it logged me in with my regular user id, it took me to the forum but then took me to my last post. I think that's weird but at least it could see my username!!!!!

Next to try to link from under the avatar!

Edit:  OK I can't get the avatar thing to work and now I've changed profile.php.   However, my main concern is I can't link back to the user's gallery and when I type it in, I am not logged in there. So I click on login and it always sends me back to the forum! AAARRRGGHH!!! How can I fix this?

Nibbler

Stop using the development version of the bridge file. Use the one that came with the coppermine package you downloaded.

tealpony

OK so let's say I delete the entire gallery and start over. I download a new version.  How do I get it to integrate to the forum?  How do I get the link under the avatar (text only)?

(I know, I'm sounding dense but I'm losing patience. lol)  Explain it like you would to your 80 year old grandmother. lol

Stramm

1. download CPG 1.3.5
2. read the documentation, espcially the part where it comes to bridging http://coppermine-gallery.net/demo/cpg13x/docs/index.htm#integrating
3. that's all... just make sure you don't mess around with coppermine files as long as it isn't working smooth. Trying to add the BBs avatar to the CPG profile page is nice. However it can wait and to be honest... it's redundant cause the CPG profile doesn't have a function anymore when you've bridged it. Bridging only makes sense if only one system is doing the user management. In your case that's SMF. And if you hack your version it's hard to help you. How should I know what you've done?

Joachim Müller