Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: specifically, what do i need to edit in smf.inc.php for smf integration?  (Read 5918 times)

0 Members and 1 Guest are viewing this topic.

robino

  • Coppermine newbie
  • Offline Offline
  • Posts: 19

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 :) 

Code: [Select]
<?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');
« Last Edit: June 04, 2005, 05:51:18 pm by robino »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website

Code: [Select]
// 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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 19

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 :)


Logged

robino

  • Coppermine newbie
  • Offline Offline
  • Posts: 19

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. 
« Last Edit: June 04, 2005, 08:14:38 pm by robino »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website

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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 19

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 :)
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149

Yes, searching for the error code is a good way to start.
Logged

robino

  • Coppermine newbie
  • Offline Offline
  • Posts: 19

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...

Quote
the 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


Code: [Select]
<!-- 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]

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

fine then, can we mark this thread as "solved"?
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 16 queries.