Hello,
I want to redirect people who click on a thumbnail create with wpg2id to the login page of wordpress if they are not logged.
For this I want to insert a test just before the creation of the "wpg2id link" and change it to http://blogname/wp-login.php if the user is not connect.
Thank you very much for your help.
Posts: 1378
bigs,
This actually is standard functionality controlled by Gallery2.
# loginRedirect affects the URL of the login link in G2
* If omitted, G2's login link will still point to G2's login form, thus a user would not be automatically logged in into the emApp
* If specified, G2's login link points to the given URL thus ensuring that all users login through the emApp
* NOTE: Whether a login link is shown or not depends on GalleryCapabilities::set('login', true|false); which is set to true (show login link) in G2 standalone and is set to false in GalleryEmbed::init(); You can change it back to true after the GalleryEmbed::init() call if you want.
WPG2 will detect a login redirect and bounce back to the Wordpress Login Page
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 20
Hi ozgreg,
I don't find where I can change the value between true or false. I want to try what you explain at first and in a second time I want to try to change the link as I describe in my first post to see which is better for my configuration, if you have any ideas ?
Thanks
Posts: 1
Hello,
Yes i have the same probleme of bigs. If someone have any solution I shall be very grateful.
Thanks
Posts: 20
hello,
does someone know in witch file and witch line if it's possible, I can change the link of the thumbnail generate by the wpg2id.
bigs
Posts: 1378
Bigs Sorry you cannot change the URL. That URL is automatically determined. Can you please start a new thread if you have an issue with the URL, thanks..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo