News:

Wondering if this will always be free?  See why free is better.

Main Menu

Coppermine integration

Started by charlottezweb, November 07, 2003, 06:42:23 PM

Previous topic - Next topic

yohanesine

thanks, but yes...I am aware of that problem in the forum.  however, my problem is that when I go back to the gallery, I'm "really" not logged in.  If I were, it would bring up the admin button, and it doesn't.

Here the url for the forum.  You can login with "test" and "test" (username and passwords).  Then click on gallery, and you'll see what I mean...it doesn't keep you logged-in...

http://216.120.251.3/~traumer/forum/ [nofollow]

fyi, I found the "gallery.gif" button.


yohanesine

#161
GOT IT!  Thanks, Babylonking.

It's in this thread...
http://www.simplemachines.org/community/index.php?topic=23358.msg224260#msg224260


O.k. this may be a dumb question, but here goes...

so now how can I get coppermine to show up "within" my forum page (under the header, so that it appears a part of the forum, instead of a different site?

Joachim Müller

#162
Quote from: yohanesine on March 04, 2005, 12:33:23 AM
so now how can I get coppermine to show up "within" my forum page (under the header, so that it appears a part of the forum, instead of a different site?
Not at all, sorry. The integration between coppermine and smf doesn't get that close: once bridged, coppermine will use the users/groups from SMF, that's all - visual integration isn't that easy: you can not just integrate it using a php include (as coppermine comes with a template engine of it's own that differs from smf's engine). You have to create a coppermine theme that closely matches the look of your smf pages (there is a coppermine theme that resembles SMF's default theme [nofollow]), and you might want to modify both coppermine's and smf's menu to have links from one of them pointing to the other.
Anyway, SMF doesn't take full control of coppermine (nor vice versa), this is the big plus of the integration scheme we currently use: neither the code of coppermine nor the code of smf has to be modified to bridge the two of them (with the benefit that you can easily do upgrades of one app or the other without impact on bridging). The drawback is: there's no close visual integration (that's what the coppermine ports for CMS portals like nuke, e107 or PragmaMX do).
Another workaround would be the use of an iframe to display coppermine content on an smf page (not recommended though, because of all the drawbacks iframes/frames have by design).

Joachim
Integrate your SMF install with a picture/multimedia gallery: Coppermine Photo Gallery [nofollow]

Robert Frost

so for instance, i can bridge my forum and gallery (they already use a similar theme) without any modifications in both of them?

cool, eventhough i will lose all users and galleries :)


but tell me this: does the fact that my smf is an upgrade from YaBBSE 1.5.5 mean something? I mean, will it still work eventhough some table names or stuff still have "yabb" in them?

ping

My forum has yabb in the tablenames, and I was able to get it to work fine. I followed the instructions to bridge an SMF forum, and it worked perfectly.
One Ping Only

Robert Frost

i think i will do it now :) thanks, that's all the info i needed.

Owdy

Quote from: ping on March 09, 2005, 02:02:46 PM
I followed the instructions to bridge an SMF forum, and it worked perfectly.
I have integration also, but it wont work pwerfectly. Logging out wont work from coppermine. Other than that, no big issues.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

ping

Ah, guess I should amend it. It works as perfectly as it can now. They're working on the logging out issue--should have it fixed on the next CM release. :)
One Ping Only

Robert Frost

well, i sincerely doubt that is such a big issue :P my members do everything through the forum, so...

ping

That was my reaction. I told them they couldn't do it from there, and no one's complained. Most of them probably don't really log out anyway. :)
One Ping Only

Robert Frost

#170
weird ;D

i set up the bridge...and it kept all my albums and comments and all. And it's working :D eventhough it was written in the bridge file it will all go away. Strange, but i'm not complainin at all :D :D :D

one issue though. when i try to login at coppermine, it takes me to the forum login page. that's ok. when i log in - why don't it take me to the coppermine page? is that a bug or a feature? ;D

ping

Good question. I think it has something with whether or not redirects are allowed in SMF. I didn't investigate it much, though I'm tempted to just remove the login/logout buttons from the theme until the next release. :)
One Ping Only

Robert Frost

i lost almost an hour with implementing a gallery button, no way i'm removin anything now :D

well, we'll have to wait for the big bosses to come down and tell us the answer ;)

Joachim Müller

  • SMF currently doesn't support redirection back to coppermine after a user has logged in who came from the coppermine page afaik (this is actually a feature of SMF to prevent XSS attacks), I'm not sure if this will be changed in the future. As a workaround, place a link back to your coppermine gallery into your board's navigation.
  • The "logout issue" will be fixed in the next release of coppermine (hopefully). Meanwhile (as a workaround), just remove the "logout" link from the coppermine theme you're using (edit coppermine_folder/themes/yourtheme/theme.php and comment out the the whole logout enchilada by putting <!-- and --> around it - do not remove the section completely!)
  • It doesn't matter if your SMF board is actually an upgraded version of YaBB SE, nor does it matter what table prefix you chose for SMF. In the coppermine bridge file, you just specify the location of SMF's "Settings.php" (this is where all the database info is stored), so whatever db settings you have specified for your SMF install will be taken into account by coppermine when bridged.
  • When bridging coppermine with SMF after you already have been running coppermine for a while, you don't lose pics, ratings or comments, you just lose the relation between the files uploaded, ratings given, comments posted and the "new" SMF users. You have to think in terms of user IDs: coppermine used to "link" a user album and the corresponding user with the use of an ID number. As you disable the user-management that comes with coppermine in favour of the user-management of SMF when you bridge, the correlation between those IDs is gone (SMF has a different user numbering scheme). As a result, all pics uploaded by your members remain in the coppermine gallery, but the users who originally uploaded them don't "own" them anymore (similar thing applies to ratings and comments).
GauGau (aka Joachim)

P.S. For more detailed coppermine-related support I recommend the use of the coppermine board [nofollow] instead of this one - you will easily find your way around, as the coppermine site uses SMF as board app as well...
Integrate your SMF install with a picture/multimedia gallery: Coppermine Photo Gallery [nofollow]

[Unknown]

Quote from: GauGau on March 10, 2005, 10:46:36 AM
SMF currently doesn't support redirection back to coppermine after a user has logged in who came from the coppermine page afaik (this is actually a feature of SMF to prevent XSS attacks), I'm not sure if this will be changed in the future. As a workaround, place a link back to your coppermine gallery into your board's navigation.

Actually, it can as long as you set it in SMF's session data:

smf_loadSession();
$_SESSION['login_url'] = 'http://www.google.com/';


This is related to the logout problem, however, so should be fixed at the same time (they're both caused by SMF and Coppermine looking different places for the session data.)

-[Unknown]

Owdy

Can you talk n00bish and tell us where to put that code :P
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

NukeWorker.com

Quote from: Owdy on March 14, 2005, 06:15:42 AM
Can you talk n00bish and tell us where to put that code :P

Only a guess, but I's say the coppermine theme.php

Owdy

Fatal error: Call to undefined function: smf_loadsession()
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

NukeWorker.com

How about putting that coad in the theme where the smf_welcome is, then calling it form the template.html with a {smf_loadsession}    ???

I have to warn you Owdy, this is the blind leading the blind, I could be wasting your time.

Owdy

#179
LOL. I test that. :D

edit: nah, same error
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Advertisement: