Single signon Coppermine & Drupal Single signon Coppermine & Drupal
 

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

Single signon Coppermine & Drupal

Started by casNuy, November 24, 2005, 10:33:55 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

casNuy

Have been playing with Drupal and really like the CMS. The available galleries are not offering all I would like to see.
So i created a single signon method for Drupal. This is very basic, it just enables single signon.

For those who were looking for it...............

Cas

dahlgren

Great! It's just one thing I can't understand how to do. When I load my coppermine album no pictures are visible, I have to press album list first. Anyone know what I done wrong?

Nibbler

Post a link. Is this even related to the thread you are replying to ?

dahlgren

I have solved the problem already. I had edit the code in the drupal page a bit to get it to work but now everthing is fine.

<?php
Global $user;
$url="http://www.mycoppermine.com/index.php";
echo 
"<iframe src='$url' align='center' width='100%' height='800px' space=0 vspace=0 marginwidth=0 marginheight=0 frameborder=0 scrolling=auto name='pnCPG' onload='parent.scrollTo(0,0);' ></iframe>";
?>

gatesession

#4
Hmm,

For me everything works out nice except for that I need to login separatly into Coppermine gallery.
Bridging is not working out fine.

I used the dahlgrens php-code.

casNuy

I have always been surprised that the Dahlgrens code worked.
I have created a module for Drupal in the past, have attached it to this posting.

Cas

wenxin

Fantastic, works very well on my sites. Thanks.

supafloh

works fine on my setp as well.

just wondering how could i make the coppermine gallery to open in a new browser window instead of inside the drupal frame?


thanks,
flo

casNuy

That feature is now available in an updated version for 4.7.
You can download it at :
http://nuy.info/downloads/index.php?dir=Developments/Coppermine/Drupal/

Cas

supafloh

Thanks!

maybe it's just too early for me today:-) but:

1, does the description in INSTALL.TXT miss something?
2, actually what do i do with "cpg.module"?
3, ...or i just have to replace the existing "index_dr.php" in my cpg install folder (no changes in drupal required)?


Flo

casNuy

You need to install the module within Drupal as you would do with any other module. Index_dr.php indeed goes into the Coppermine directory.
Cas

supafloh

Cas,

thanks so far! :)

Unfortunately clicking on the new "Coppermine" menuitem throws the following error:

"user warning: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND uid = 1' at line 1 query: SELECT value FROM profile_values WHERE fid = AND uid = 1 in /srv/www/...../htdocs/drupal/includes/database.mysql.inc on line 120."

Do you know what's wrong here?


Thx,
Flo

supafloh

...even though i get this error mentioned above, cpg opens either in the same frame or in a new window. so to me it actually seems to work just fine. just the error message is irritating...

...running cpg1.4.9 out-of-the-box setup.

Flo

casNuy

Looks like I did not include the correct install.txt
Within Drupal you go to the Module Profiles (Administer, Settings, Profiles)
Add a single line text field with the following criteria :
Category : Passwords
Title : Your Coppermine Password
Formname : profile_cpg_pwd
Explanation : The password you use to access the Coppermine photo gallery
Check  option : Private field, content only available to privileged users
Click Save the field

Now if you go to your account, you will notice a new Tab called passwords.
Here you can enter your Coppermine password. This allows you to also use Coppermine outside Drupal

Cas

supafloh

Cas

Pretty cool! Thanks for your work! Works like charming!

just one quesiton remaining: the username for drupal and coppermine have to be the same?


Thanks again,

Flo

casNuy

Users will be automatically added to Coppermine if they access it thru Drupal.

Cas

mike15

I had to download "Advanced User" module from drupal.org and follow the directions at which point all my problems went away.

Thanks for putting this together.  Nice work!
Mike

kdrewnj

where do I define the path to the coppermine gallery? thank you

casNuy

go to Administer, Site configuration & cpg module settings

The above is valkid for Drupal 5.

Cas

kdrewnj

casNuy....THANK YOU!!!! I could not find that on my own after much searching...it works perfectly....the integration is exactly what I wanted....great code...thanks again.