Here is how to make g2image start in a users specific album instead of the root album. Thanks to schwim for working with me on this for the phpBB2 integration!
Code: › #
#-----[ OPEN ]------------------------------------------
#
g2image/init.php
#
#-----[ FIND ]------------------------------------------
#
$g2h->init($user);
#
#-----[ AFTER, ADD ]------------------------------------------
#
if (empty($_SESSION['g2ic_last_album_visited'])) {
$sql = 'SELECT user_gallery FROM ' . USERS_TABLE . ' WHERE user_id = ' . $user->data['user_id'];
$row = $db->sql_fetchrow($db->sql_query_limit($sql, 1));
if (!empty($row['user_gallery'])) {
$_REQUEST['current_album'] = $row['user_gallery'];
}
}
#
#-----[ OPEN ]------------------------------------------
#
g2image/g2image.php
#
#-----[ FIND ]------------------------------------------
#
require_once('init.php');
session_start();
#
#-----[ REPLACE WITH ]------------------------------------
#
session_start();
require_once('init.php');