Struggling to get integrated
DaFoot
Joined: 2007-04-30
Posts: 15 |
Posted: Tue, 2007-05-01 19:48 |
First off, I'm new to G2 so if I 'm missing any basics let me know.Or if there is a man page I might have missed please do point it out ;) I am trying to create a site with a simple menu bar at the top of the page that links to several pages, one of those links is to g2. My index.php in my site root: Now then, at the url www.frozenbanana.co.uk/ you will see the index page. Click the gallery link to start the gallery - so far so good. I have tried resetting the .htaccess/mod_rewrite. I can get the login form fine if I go direct to www.frozenbanana.co.uk/gallery2/ In my /gallery2/gallery2embedded.php I have the following: I have found docs that tell me what to change these to, but simingly no explanation as to what they are/what they do. given that the site index page lives at: I suspect it is something in the .htaccess or these mysterious variables, but if someone can help me pin it down a bit more it would be much appreciated! Long post, thankyou if you made it to the bottom! |
|
Posts: 15
In case anyone else is struggling...
My gallery2/gallery2embedded.php uri variables ended up like this:
//http://codex.gallery2.org/Gallery2:Integration_Howto#Writing_New_Integration_Code
//$g2_Config['embedPath'] = 'http://www.frozenbanana.co.uk/';
//$g2_Config['loginRedirect'] = '/index.php?task=gal2';
$g2_Config['g2Uri'] = 'http://www.frozenbanana.co.uk/gallery2/';
$g2_Config['embedUri'] = 'http://www.frozenbanana.co.uk/index.php?task=gal2';
Which seems to work.
For what I was after I only needed to configure the g2Uri and embedUri where g2Url is the absolute URL for the installed gallery2 app and embedUri is the URL needed to call/that includes the galleryembedded.php script.
Posts: 352
I've updated the wiki to hopefully help those that are having issues with understanding what the paths are supposed to be.
http://codex.gallery2.org/Gallery2:How_to_visually_embed_G2_in_your_own_website_using_embedded_mode
Steve Lineberry