From G2Image
[edit] Embedded Mode Definition
- If you use a program/plugin/bridge to make it look like your Gallery2 pages are wrapped or "embedded" in a parent program, then you are in "embedded mode" and have to configure config.php correctly.
- Some programs handle this configuration automatically and do not require changes to config.php. Known programs are
- WPG2 = WordPress - Gallery2 integration
- Drupal gallery.module for Drupal 4.7 = Drupal - Gallery2 integration
- The most important point in configuring embedded mode operations is setting the URLs/paths in the g2image/config.php variables with the matching URLs/paths in your Gallery2 embedding software.
[edit] G2Image version 3.0
- Set the following variables in /g2image/config.php
[edit] $g2ic_embedded_mode
- Set $g2ic_embedded_mode to TRUE to enable embedded mode operations.
$g2ic_embedded_mode = TRUE;
[edit] $g2ic_use_full_path
- If your Gallery2 main.php is in a different subdomain than G2Image, you must set $g2ic_use_full_path to TRUE, and enter the full directory path to Gallery2 in $g2ic_gallery2_path.
- However, G2Image by itself does not support Gallery2 being in a different subdomain. You must use another program with Gallery2 in embedded mode (like Drupal or Joomla) with Gallery2 URL rewrite rules properly configured to redirect the resulting link to Gallery2 in the other subdomain. That is why this setting is located in the EMBEDDED MODE OPERATIONS section.
- Note: If $g2ic_embedded_mode is set to FALSE, $g2ic_use_full_path must also be set to false and the proper path must be entered into $g2ic_gallery2_path.
$g2ic_use_full_path = FALSE;
[edit] $g2ic_gallery2_uri
- $g2ic_gallery2_uri is the URL of your Gallery2 main page.
$g2ic_gallery2_uri = 'http://www.domain.com/gallery2/main.php';
[edit] $g2ic_embed_uri
- $g2ic_embed_uri is the URL of your embedded page.
$g2ic_embed_uri = 'http://www.domain.com/wordpress/wpg2';