specifically, what do i need to edit in smf.inc.php for smf integration? specifically, what do i need to edit in smf.inc.php for smf integration?
 

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

specifically, what do i need to edit in smf.inc.php for smf integration?

Started by robino, June 04, 2005, 05:41:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

robino

Hello,

After reading the coppermine documentation, i am still having some difficulties figuring out what i should be editing in the smf.inc.php file. 

All that is above the "Nothing to edit below this line" section is copied below, could someone point out what areas need to be modified and how.  TIA :)

PS I noted the warning below:  "WARNING : Do not activate this bridge if you already have pictures or usergroups in your gallery".  However isnt this an unavoidable process if you want to integrate coppermine with smf?  If not, could someone tell me what the work around is.  Thanks :) 

<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2005 Coppermine Dev Team
  v1.1 originaly written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.3.3
  $Source: /cvsroot/coppermine/stable/bridge/smf.inc.php,v $
  $Revision: 1.8 $
  $Author: gaugau $
  $Date: 2005/04/19 03:17:13 $
**********************************************/

// ------------------------------------------------------------------------- //
// As a special exception, the copyright holders of Coppermine Photo Gallery //
// give you permission to link Coppermine Photo Gallery with independent     //
// modules that communicate with SimpleMachines Forum solely through this    //
// 'bridge file' interface, regardless of the license terms of these         //
// independent modules, and to copy and distribute the resulting combined    //
// work under terms of your choice, provided that every copy of the combined //
// work is accompanied by a complete copy of the source code of Coppermine   //
// Photo Gallery (the version of Coppermine Photo Gallery used to produce    //
// the combined work), being distributed under the terms of the GNU General  //
// Public License plus this exception.  An independent module is a module    //
// which is not derived from or based on Coppermine Photo Gallery.           //
//                                                                           //
// Note that people who make modified versions of Coppermine Photo Gallery   //
// are not obligated to grant this special exception for their modified      //
// versions; it is their choice whether to do so.  The GNU General Public    //
// License gives permission to release a modified version without this       //
// exception; this exception also makes it possible to release a modified    //
// version which carries forward this exception.                             //
// ------------------------------------------------------------------------- //
// Simple Machines Forum Integration for Coppermine                          //
// V0.5 Public Beta                                                          //
// ------------------------------------------------------------------------- //
// Modify the value below according to your Board installation               //
//                                                                           //
// WARNING : Do not activate this bridge if you already have pictures or     //
//           usergroups in your gallery.                                     //
// ------------------------------------------------------------------------- //

// Set this to the location of your Settings file:
$path '../smf';

// Comment this out if you want to default user's group to 'Registered'
// rather than using Post Count based groups.
define('USE_POST_GROUPS'1);

// 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');


kegobeer

// Set this to the location of your Settings file:
$path = '../smf';


Relative to where your Coppermine root is.  If your structure is this:

/cpg133
/smf

Then $path = '../smf';

or

/gallery/cpg133
/forum/smf

Then $path = '../../forum/smf';

If you have users in your Coppermine gallery and they have personal galleries, when you bridge them they won't have access to their personal galleries anymore.  In that event, you'll use phpMyAdmin to manually edit the database to straighten everything out.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

robino

thankyou. 

my structure is:

/gallery (being the directory for coppermine)
and
/forum (being the directory for smf)

so i entered:

$path = '../forum';

then i:

1.  uploaded both smf.inc and init.inc
2.  when to my gallery page
3.  Clicked 'login' and ended up at a smf login page (not wrapped by mambo)
4.  Logged in with smf admin username and was taken to the main smf page (not wrapped by mambo)

My questions are:

- Should this have happened ie being taken to the smf login and main page?
- Can i somehow keep all coppermine pages wrapped in mambo?

Thankyou :)



robino

update:

additonally, after going to 'groups' to synchronise and then logging out, i got this message, displayed on my board page:

An Error Has Occurred!
Session verification failed. Please try logging out and back in again, and then try again.

NOTE:  above post and related issues are still pending resolution also. 

kegobeer

I have no idea about Mambo.  There is no redirect for the SMF login to return to Coppermine.  You have to put a link on your SMF to go to the gallery.  I recommend removing the logout link in Coppermine.  The session verification issue is a known problem.  Remove the logout link and you won't have to worry about it anymore.  There are posts about all of these - please search.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

robino

thanks for the reply.

i often do search but when the wording seems too ambiguous then i post.  i wouldnt post unless i really needed to. 

reflecting on this after your comments however, in regards to searching before posting, perhaps the best way to find a topic is search for the error code itself rather than trying to formulate the the correct search terms. 

do you have any other suggestions?

thanks :)

Tranz


robino

Quote from: robino on June 04, 2005, 07:22:49 PM
update:

additonally, after going to 'groups' to synchronise and then logging out, i got this message, displayed on my board page:

An Error Has Occurred!
Session verification failed. Please try logging out and back in again, and then try again.



in regards to the logout problem, here is something i found after searching...

Quotethe logout link not working for cpg1.3.x bridged with smf (any version) is a know issue, sorry. It is being addressed in the devel version of coppermine (cpg1.4.x). For cpg1.3.x, there's no known fix. As a workaround, remove the logout link from your coppermine theme (edit themes/yourtheme/theme.php, find


<!-- BEGIN logout -->
                        <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a>
<!-- END logout -->
and replace with
Code:
<!-- BEGIN logout -->
                        <!--<a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a>-->
<!-- END logout -->[/quote]



Joachim Müller