News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

[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: Elegant John on September 03, 2005, 01:34:18 PM
QuoteMake sure you install Coppermine on the same database as that of your SMF forum.

Can I get clarification on this statement please?

does this mean to list the db that CPG is to use as the SAME db that SMF uses? and not a separate db within the domain? In other words, permit CPG to build its tables wihin the SMF DB?

Brains not fucntioning today


Yes, same database as SMF

LaurieC

Aravot did you have to work anything special for the bridge in your setup? I have 1.1 Beta 4 and am installing CPG 1.4.1

I tried this a few days ago and it came back with a Fatal error and a blank page, no error was listed  :'(
Make someone smile today...

Aravot

Quote from: lace1215 on September 13, 2005, 09:50:01 AM
Aravot did you have to work anything special for the bridge in your setup? I have 1.1 Beta 4 and am installing CPG 1.4.1

I tried this a few days ago and it came back with a Fatal error and a blank page, no error was listed  :'(

No, but make sure CPG 1.4.1 is the latest download from CVS

LaurieC

Make someone smile today...


LaurieC

Absolutly wonderful!

Aravot thank you so much for the link. It worked flawlessly and the gallery is back up and running.
Make someone smile today...

anna.young

Just to say THANK YOU! for providing in this thread EVERYTHING needed to successfully integrate the Coppermine with SMF.  Could not have asked for better instructions...   ;D

Anna
Toronto German Shepherd Dog Rescue

"Here's to the crazy ones, the misfits, the rebels, the troublemakers, the round pegs in the square holes... the ones who see things differently -- they're not fond of rules... You can quote them, disagree with them, glorify or vilify them, but the only thing you can't do is ignore them because they change things... they push the human race forward, and while some may see them as the crazy ones, we see genius, because the ones who are crazy enough to think that they can change the world, are the ones who do." (SJ)

ddmscans

Quote from: taz on August 01, 2005, 10:58:28 PM
@erockza
my forums are http://www.icducks.com/Hunt [nofollow] and then just click on the galllery button.

OK. First of all I'm an idiot. :) Well not really but I'm still trying to get a handle on why you intergrate the two programs. Don't get me wrong I love and use both a lot. My forum [nofollow] is primarily a picture posting forum and I use Coppermine to host a TON of images so the idea of intergrating the two sounds great. From the link above it seems that all it really does is send you from SMF to the Coppermine gallery. Am I missing something? Like can a user upload a pic to Coppermine via SMF and then have the thumb posted on SMF and linked to the full sized pic on CPG making Coppermine and SMF a kind of internal ImageShack? Then using hotlink protection keep people from grabbing the code and posting it elsewhere? I've only been using SMF for about 3 weeks and absolutely love it and installing a new CPG setup wouldn't be a problem because it would be like adding a new feature to my board. I can deal with editing the code (I installed tons of mods on phpBB so I got used to it) I just am trying to figure out the advantages of doing the intergration.

So can someone with more brain power than me give me a kinda rundown of the advantages of intergrating the two programs?

Thank you most kindly.

JayBachatero

Ok the purpose if to have both programs use the same users table so you dont have to register for the forum and the gallery sepparately.  They will both be integrated.  Also SMF user groups will  replace copperminess usergroups.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

ddmscans

#149
Quote from: cheesenub on July 26, 2005, 05:15:18 PM
When I try logging out from CPG it takes me to SMF and I get this error:

Session verification failed. Please try logging out and back in again, and then try again.

When I try logging out from SMF it works fine.

Any ideas why this is happening?

http://www.floodplane.net/photos/ [nofollow]
http://www.floodplane.net/floodboard/ [nofollow]

OK. Well I installed new versions of both programs to check it out. SMF 1.1b and CPG 1.3.4. I'm using the "TechHead" theme and made a button. Downloaded the font used Photoshop and it looks perfect. At first I tried removing the login, register, and logout buttons from Coppermine but removed too much and got an error. :) So I used a copy of the template file I had on my HD and restored the menu. Everything worked fine. I then got the error you're talking about. I came back here because I remembered reading about it and came up with a different sort of fix...

At one point I was using Coppermine and had around 9000 images on it and 700 or so users so I decided to start a forum so they would have a place to go to ask questions, hear about downtimes, ect. I made a link to the forum in the menu bar. I used that same trick here and now when I hit the "logout" button on Coppermine it sends me right back to the SMF board. Here's what I did.

All I did was have to change the {LOGOUT_TGT} to the URL of my SMF board.

Original script

<!-- BEGIN logout -->
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" id="spacer" alt="" /></td>
                                        <td><img name="button1_r1_c1" src="themes/rainy_day/images/button1_r1_c1.gif" width="5" height="25" border="0" id="button1_r1_c1" alt="" /></td>
                                        <td background="themes/rainy_day/images/button1_r1_c2.gif">
                                                <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a>
                                        </td>
                                        <td><img name="button1_r1_c3" src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0" id="button1_r1_c3" alt="" /></td>
<!-- END logout -->


Changed Script


<!-- BEGIN logout -->
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" id="spacer" alt="" /></td>
                                        <td><img name="button1_r1_c1" src="themes/rainy_day/images/button1_r1_c1.gif" width="5" height="25" border="0" id="button1_r1_c1" alt="" /></td>
                                        <td background="themes/rainy_day/images/button1_r1_c2.gif">
                                                <a href="hxxp://www.*******.net/smfcpg/">{LOGOUT_LNK}</a>
                                        </td>
                                        <td><img name="button1_r1_c3" src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0" id="button1_r1_c3" alt="" /></td>
<!-- END logout -->

It should work on any theme. I removed the register and login buttons but left the logout one. I should also mention you can do the same with the [LOGIN_TGT} or any of the others you want to direct to somewhere else.

I'm a complete nOOb on SMF and board/gallery intergration so I may have missed something importent but it seems to work for me. :)  If someone sees a big flaw here, or tried this and it did work, or thinks this is not the way to go about it PLEASE let me know. I can only learn if someone corrects my errors. ;)

woodygap

Good Morning

Could someone share an example link of a bridged CMG and SMF. This sounds interesting and would like to make sure it's something I want/need to do before I delve in. If you don't wish to post the url publically I think my e-mail address is in profile.

Thanks a bunch

Aravot

I have a test site of Mambo + SMF + CPG if you are interested click on the globe below my avatar

Soulmaster

got this error

Notice: Undefined index: USER_AGENT in /home/httpd/vhosts/onweer-online.nl/httpdocs/medemblik/gallery/bridge/smf.inc.php(127) : eval()'d code on line 28

dunno what it means
check out my lightning site

anna.young

I think it means that you just upgraded to SMF 1.1 CR1 which does not support or is not supported by the SMF bridge.  I'm in exactly the same situation as you and probably numerous others.

Coppermine Forum says that the bridge supports only SMF 1.0.x and not SMF1.1.x http://coppermine-gallery.net/forum/index.php?topic=22015.0

I think it's too early to know the answers as to what to do next, revert to SMF 1.1 beta3 or 'unbridge'...  or...  ?

Anna
Toronto German Shepherd Dog Rescue

"Here's to the crazy ones, the misfits, the rebels, the troublemakers, the round pegs in the square holes... the ones who see things differently -- they're not fond of rules... You can quote them, disagree with them, glorify or vilify them, but the only thing you can't do is ignore them because they change things... they push the human race forward, and while some may see them as the crazy ones, we see genius, because the ones who are crazy enough to think that they can change the world, are the ones who do." (SJ)

anna.young

Orstio seems to have SMF 1.1b4, Coppermine and Mambo all integrated.  How different is CR1 from beta4?

Anna
Toronto German Shepherd Dog Rescue

"Here's to the crazy ones, the misfits, the rebels, the troublemakers, the round pegs in the square holes... the ones who see things differently -- they're not fond of rules... You can quote them, disagree with them, glorify or vilify them, but the only thing you can't do is ignore them because they change things... they push the human race forward, and while some may see them as the crazy ones, we see genius, because the ones who are crazy enough to think that they can change the world, are the ones who do." (SJ)

anna.young

Toronto German Shepherd Dog Rescue

"Here's to the crazy ones, the misfits, the rebels, the troublemakers, the round pegs in the square holes... the ones who see things differently -- they're not fond of rules... You can quote them, disagree with them, glorify or vilify them, but the only thing you can't do is ignore them because they change things... they push the human race forward, and while some may see them as the crazy ones, we see genius, because the ones who are crazy enough to think that they can change the world, are the ones who do." (SJ)

panter011

My question is:

After integration, which of the themes is beign loaded? --  I mean, I would like to have coppermine to use the smf theme not the coppermine theme, is that possbile? --  Or they have to load their own themes and I need to customize both to make them similar?


Thanks

thestian

I have this wierd problem with my bridge.. It works with IE but not with firefox. I just can get logged in with firefox. and the IE login is a little subborn, but it works.

To log in with IE i have to use the login link from the gallery, that uses the smf login and redirect me to the gallery logged in, and on the forum. But with firefox its inposseble to login at the gallery at all.

My forum and gallery:
hxxp:forum.bandofbrothers-guild.com [nonactive] (forum)
hxxp:forum.bandofbrothers-guild.com/gallery [nonactive] (gallery)

login:
uname: testuser
pword: testuser

thanks for all help :)

Aravot

It is working fine (FF 1.0.7), make sure you clean the cache and cookies

anna.young

Well, with FF I logged in through the Forum and had no problem with the Gallery, I was able in fact to create a user album.  I logged out through the Forum.

When I tried to login through the Gallery it transferred me to the Forum's login where I successfully logged in, but then I was not logged into the Gallery and no matter how many cookies I cleared and what I tried from then on I was not able to log in into the Gallery at all from anywhere.

Sorry, but I'm too new  to know why that is.

I have my Forum and Gallery bridged, but I removed the login button from the Gallery altogether so the only way to login into the gallery is through the Forum and I have no problems whatsoever.

Anna
Toronto German Shepherd Dog Rescue

"Here's to the crazy ones, the misfits, the rebels, the troublemakers, the round pegs in the square holes... the ones who see things differently -- they're not fond of rules... You can quote them, disagree with them, glorify or vilify them, but the only thing you can't do is ignore them because they change things... they push the human race forward, and while some may see them as the crazy ones, we see genius, because the ones who are crazy enough to think that they can change the world, are the ones who do." (SJ)

Advertisement: