[OBSOLETE] How to Integrate Coppermine with SMF

Started by dtm.exe, July 09, 2005, 04:59:26 PM

Previous topic - Next topic

Aravot

Quote from: YahMan on July 26, 2005, 07:29:15 PM
Simple question, how do I add a 'gallery' button in the default theme?


// The [gallery] button
echo '
<a href="http://www.replace_with_your_damin.com/cpg_folder">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="' . 'Gallery' . '" style="margin: 2px 0;" border="0" />' : 'Gallery'), '</a>', $context['menu_separator'];

Seta Soujiro


Kindred

what version(s) are you installing?  SMF? CPG?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Seta Soujiro


Kindred

that's why...   look at some of the other messages in this and the other thread.  In order to get it working with SMF1.1b3, you need to download the newest CVS, not the distributable beta...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

taz

#65
Quote from: Kindred on July 28, 2005, 05:56:11 PMIn order to get it working with SMF1.1b3, you need to download the newest CVS, not the distributable beta...

or you can use 1.3.3 CPG and it will work that way also

and do this
Quote from: OIDanTheManIO on July 09, 2005, 04:59:26 PM

In /include/init.inc.php, find:
// define('UDB_INTEGRATION', 'smf');

Replace with:
define('UDB_INTEGRATION', 'smf');

In /bridge/smf.inc.php, find:
$path = '../smf';

Replace /smf with the directory you have your SMF forum installed in.  If SMF is installed in your root directory, remove smf leaving you with $path = '../';.

Once all necessary changes have been made, upload Coppermine to its own directory (examples: /coppermine, /gallery, /album).  Once uploaded, run install.php.  Make sure you install Coppermine on the same database as that of your SMF forum.  Once installed, your new Coppermine gallery will be up and ready for use :).

-Dan The Man

mirigoyen

#66
I am kinda confused about this.   I have coppermine already installed and being used same with smf.   Can it still be done? 
Also I really do not understand this:

QuoteReplace /smf with the directory you have your SMF forum installed in.  If SMF is installed in your root directory, remove smf leaving you with $path = '../';.

I am running smf 1.05  and coppermine 1.3.2  and they are on seperate databases

Michelle

mirigoyen

#67
Help,  I thought I understood and went ahead and tried what I thought and now I have a parse error:

Parse error: parse error, unexpected T_STRING in /home/scrap4/public_html/gallery/include/init.inc.php on line 7

 

what can I do?

taz

Quote from: mirigoyen on July 29, 2005, 03:57:16 PM

QuoteReplace /smf with the directory you have your SMF forum installed in.  If SMF is installed in your root directory, remove smf leaving you with $path = '../';.

Michelle

Yes, it can still be done, but you need them in the same database.
For this $path = '../smf'; all I did to mine was put my forum name in where smf is  ex:     $path = '../Hunt';  Hunt is my forum name Http:www.Icducks.com/Hunt

mirigoyen

how do I do that, they are on seperate databases?   


taz

Do you have any post on your forum yet?
Open up your Setting.php in you SMF  and change the
$db_server = 'localhost';
$db_name = 'smf';
$db_user = 'root';
$db_passwd = '';
$db_prefix = 'smf_';

to the same as your CPG Settings  But make sure you keep the $db_prefix = 'smf_';  as is you do not want it the same as your CPG
and then reupload it

mirigoyen

yeah I already have posts in my forum and pics in my gallery.

mirigoyen

ok, so I went back and changed it all back to the original and now I can't open my gallery it is a fatal error  :'(

Fatal error: Call to undefined function: breadcrumb() in /home/scrap4/public_html/gallery/index.php on line 159


Help what do I do? :'(

mirigoyen


taz

Good to hear that.  Did you get them into one Database.  Make sure you back-up your forum first

codenaught

Quote from: [Unknown] on July 23, 2005, 05:57:29 PM
Do you have cache_enable on?  I'd guess that as the cause.  I'm afraid the latest cvs versions cause a potential problem.  I'll change it.
I just updated my test forums to the latest CVS and the error message went away on coppermine. I guess the potential problem has been fixed.  ;)

Dev Consultant
Former SMF Doc Coordinator

gerrymore

I finally managed to get mine working (SMF 1.1B3 and CPG 1.3.3). I used [Unknown]'s smf_api.php, and changed the cookie settings in Admin. It now works pretty much as it should. The only problem I am left with is when I log in through the Gallery. I am taken to the Forum log in as I should, however, once logged in I am taken to the forum, not redirected back to the Gallery.

Any ideas on how to fix this? It is not a major problem, just very irritating.
SMF RC1, Tiny Portal 0.75, Coppermine 1.3.3, Flashchat.

IamV

In the first post on page 2 of this thread it is recommended that you remove your login & logout buttons from coppermine & only login & logout through your forum  ;)

erockza

Bugger... well I installed coppermine a few days ago before I read that you could actually intergrate it lol :) Before I go to the effort of trying to intergrate it etc... Could someone please show me a link or screenshot of what it looks like to be "intergrated" I wanna see if its really worth it haha because i was thinking of just adding a button to the user menu of smf to go to the gallery.. but if this all fully intergrates everything that would be cool.
So please links people  :D

dtm.exe

Quote from: erockza on August 01, 2005, 08:22:55 PM
Bugger... well I installed coppermine a few days ago before I read that you could actually intergrate it lol :) Before I go to the effort of trying to intergrate it etc... Could someone please show me a link or screenshot of what it looks like to be "intergrated" I wanna see if its really worth it haha because i was thinking of just adding a button to the user menu of smf to go to the gallery.. but if this all fully intergrates everything that would be cool.
So please links people  :D

It will look the same as your gallery looks now, except bridged.  If you're the only registered gallery user, it's not too late to bridge the two.

-Dan The Man

Advertisement: