When WPG2 Output is set to "via Wordpress Page," Wordpress users with the "Gallery2 User"/"Gallery2 Admin" capability are automatically logged into Gallery (as expected).
However, when set to "via Standalone Gallery2 Page", no matter how I access Gallery2, the logged in Wordpress user is not logged into Gallery.
Is this the intended behavior? Is there anyway around it? I'd like to keep my standalone Gallery exactly as is, except that logged in Wordpress users will also be logged into gallery...
Posts: 492
I can replicate this on my development box. I hadn't seen it during testing, because I was always logged into G2 anyway. But if I switch to "via Standalone Gallery2 Page" then logout on the G2 main page, switch back to WP verify still logged into WP, and then go back to G2, I'm logged out of G2.
The "via Standalone Gallery2 Page" is new to WPG2 3.0. Since we're not wrapping the G2 page with WP headers and footers, WPG2 never gets a chance to log into G2 for the standalone G2 instance. The links WPG2 are generating are just straight links to G2, there is no embedding of G2 in WP, so the login is not currently shared.
We'll have to look at the code to see if there is a way to force the login, even without the WP wrapper.
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website
Posts: 1378
Hmmm I can see how this is happening, WP will pass control directly over to Gallery2 main.php since access is not via the WPG2 Output page. The only way to stop this is to render a WP Page minus it's any of the Wordpress theme info (Header + Footer + CSS) and generate the Gallery2 output directly into that (rather than passing control to Gallery2 main.php).. I am not sure technically if this is possible but this would be the solution..
I have opened a bug ticket on this
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, WPG2 Downloads, WPG2 Documentation
Posts: 7
Great, thanks a bunch - I'll keep my eye on it...as this is pretty much the #1 reason I wanted to use WPG2!