Change URL create by wpg2id

bigs

Joined: 2006-10-25
Posts: 20
Posted: Sun, 2008-07-13 21:58

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.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2008-07-14 03:33

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

 
bigs

Joined: 2006-10-25
Posts: 20
Posted: Mon, 2008-07-14 09:57

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

 
emulick

Joined: 2008-07-15
Posts: 1
Posted: Tue, 2008-07-15 11:52

Hello,

Yes i have the same probleme of bigs. If someone have any solution I shall be very grateful.

Thanks

 
bigs

Joined: 2006-10-25
Posts: 20
Posted: Wed, 2008-07-16 13:16

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

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2008-07-17 01:29
bigs wrote:
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

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