Auto Login to Gallery2 after user clicks on link from another web site
elzorro
Joined: 2006-06-28
Posts: 14 |
Posted: Tue, 2007-05-15 16:08 |
Hello Currently I have a site at "http://www.somedomain.com/" at that domain I have virtual directory that points to an instance of G2, which is located at "http://www.somedomain.com/imagegallery/" I know there is a link URL you can use for this but it displays the username and password in the URL which we cant have. Right now all of the albums are viewable to registered users only. I want visitors coming to the gallery to be able to view the albums without "having to login" if and only if they came in through the link from the other site. If they are not coming from the other site then they would just get the login form as normal. ======================================================== Note: continued from http://gallery.menalto.com/node/36918?page=1#comment-234442 Thanks for your help. |
|
Posts: 32509
This has been discussed before.
Please give the forum search function a try, limiting your search to the integration forum.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 352
You are going to have to write your own simple integration script.
Modify your em_access.php file and change from
to
If this doesn't work, you might have to play around with it some but it should give you a good start.
Steve Lineberry
Posts: 14
Okay I finally got it to work. I had already looked into integration but was missing one mayor part; Mapping the g2 user to the external app in the [prefix_externalidmap] table.
This is what I ended up with. Thanks for all your help.
Posts: 74
Can you explain this at a more elementary level for me? I have a Drupal 6.15 configuration with G2.3 imbedded, but off another directory of webroot. I have a simlink from that other directory off webroot that is defined at www.xyz.com/gallery2.
In other words:
(webroot)/mydrupal DNSed as www.xyz.com
(webroot)/mygallery DNSed as gallery.xyz.com
I created /mydrupal/gallery2 simlink that is a mirror image link to actually (webroot)/mygallery
The miracle is, that this all works. What I would like to do now is display some photos from my gallery on my drupal home page that can be seen without someone having to log in. Is this what this script is for? If so, how is it implemented and any suggestions on how to modify for my particular domain + subdomain configuration.
Thank you!
Posts: 74
Well I am starting over on this project. My original failed Gallery 2.3 to Drupal 6(newest) integration has been reconfigured and Gallery2 is no longer in a separate sub-domain where I could never get all the features to work. Gallery2 has been moved a /PhotoGallery sub-directory off my main Drupal site. Good news and minor miracle is that I have the Gallery integrated into my Drupal site with shared passwords and all, plus everything working I can see.
I am looking for code that I can add as a Drupal URL link that will open Gallery2 stand-alone without having to re-enter the password in the stand-alone Gallery2. What do I do? Is the above something I need to experiment with or is this the right track?
THanks!