Advanced search  

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

Pages: [1] 2   Go Down

Author Topic: Single signon Coppermine & Drupal  (Read 62913 times)

0 Members and 1 Guest are viewing this topic.

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Single signon Coppermine & Drupal
« on: November 24, 2005, 10:33:55 pm »

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
« Last Edit: December 16, 2006, 12:22:54 pm by casNuy »
Logged

dahlgren

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Single signon Coppermine & Drupal
« Reply #1 on: March 17, 2006, 06:43:30 pm »

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

Nibbler

  • Guest
Re: Single signon Coppermine & Drupal
« Reply #2 on: March 17, 2006, 10:11:02 pm »

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

dahlgren

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Single signon Coppermine & Drupal
« Reply #3 on: March 17, 2006, 10:16:11 pm »

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.

Code: [Select]
<?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>";
?>
Logged

gatesession

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Single signon Coppermine & Drupal
« Reply #4 on: May 24, 2006, 10:57:26 am »

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.
« Last Edit: May 24, 2006, 11:46:46 am by gatesession »
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: Single signon Coppermine & Drupal
« Reply #5 on: May 25, 2006, 03:24:46 pm »

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
Logged

wenxin

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Single signon Coppermine & Drupal
« Reply #6 on: August 16, 2006, 01:26:51 am »

Fantastic, works very well on my sites. Thanks.
Logged

supafloh

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Single signon Coppermine & Drupal
« Reply #7 on: October 11, 2006, 06:20:23 pm »

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
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: Single signon Coppermine & Drupal
« Reply #8 on: October 19, 2006, 09:46:09 pm »

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
Logged

supafloh

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Single signon Coppermine & Drupal
« Reply #9 on: October 20, 2006, 07:34:55 am »

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
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: Single signon Coppermine & Drupal
« Reply #10 on: October 21, 2006, 11:25:10 am »

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
Logged

supafloh

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Single signon Coppermine & Drupal
« Reply #11 on: October 23, 2006, 09:05:13 am »

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
Logged

supafloh

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Single signon Coppermine & Drupal
« Reply #12 on: October 23, 2006, 03:19:16 pm »

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

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: Single signon Coppermine & Drupal
« Reply #13 on: October 28, 2006, 11:04:17 am »

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
Logged

supafloh

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Single signon Coppermine & Drupal
« Reply #14 on: October 29, 2006, 11:00:03 am »

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
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: Single signon Coppermine & Drupal
« Reply #15 on: October 29, 2006, 12:22:35 pm »

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

Cas
Logged

mike15

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Single signon Coppermine & Drupal
« Reply #16 on: October 31, 2006, 08:20:15 am »

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
Logged

kdrewnj

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Single signon Coppermine & Drupal
« Reply #17 on: March 01, 2007, 04:48:12 am »

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

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: Single signon Coppermine & Drupal
« Reply #18 on: March 01, 2007, 09:39:03 pm »

go to Administer, Site configuration & cpg module settings

The above is valkid for Drupal 5.

Cas
Logged

kdrewnj

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Single signon Coppermine & Drupal
« Reply #19 on: March 02, 2007, 12:16:50 am »

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.
Logged
Pages: [1] 2   Go Up
 

Page created in 0.029 seconds with 19 queries.