Help Embedding into Homebrew Site

kkinderen
kkinderen's picture

Joined: 2004-08-22
Posts: 10
Posted: Fri, 2006-11-24 07:06

I've read but I'm lost.

I'm trying to figure out how to embed G2 into my site. The site is located at:

http://k4vd.net/testing/k4vd/

Clicking the TEST GALLERY link on the left initially brings up the gallery inside the web page. I know I've got some additional work so it looks better but I'll try to figure it out.

The problem comes in when I click on one of the albums. G2 pops out of my web page so the integration is lost.

Here's some of the code that may help you point me in the right direction...

In my web page I have added:

Quote:
<?php
include("/home/k4vd/public_html/gallery2/gallery2embedded.php");
?>

In gallery2embedded.php I modified the top few lines best I could figure out:

Quote:
$g2_Config['path'] = dirname(__FILE__) . '/';

$g2_Config['embedPath'] = 'xxx/xxx'; // no clue again. damn!
$g2_Config['g2Uri'] = '/gallery2/'; // must be /gallery2/
$g2_Config['loginredirect'] = '/'; // no clue what this does. nothing changes
$g2_Config['embedUri'] = '/gallery2/gallery2embedded.php'; // this points to gallery2embedded.php

Obviously, there's a few things there that I can't figure out. But I changed them around to try different things and they didn't seem to have an effect.

I also turned off the rewrite module, set the cookie path to / and cleared my cookies.

How bad off am I? I'd appreciate if someone could take a peek at the site and let me know what they think I've done wrong.

Regards,
Kevin