[SOLVED] Is Anyone still here (I hope so!!)

rstrich

Joined: 2013-05-22
Posts: 5
Posted: Wed, 2013-05-22 07:58

Boys & Girls, hoping someone can help here, I've got a phpbb3 site setup, using gallery2 and g2image integration for the most part it's working fine, except when using the g2 image chooser, in short here's what happens, the popup opens and defualts to the gallery root, I can see files and select them in the root only, I can expand subfolders, however as soon I select one (for example, my own album / subfolder), I get returned that there are no images available. I'm pretty sure this is permissions within the gallery part of things but I'm not sure what / where to apply - is there anyone left that can help (I've scoured the 'net and tried to resolve this myself, but come to a stump, I've managed to get this far - I've inherited the site, and it was in a state, so I've started clean and done all of the db importing etc) ANY help would be gratefully appreciated!!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-05-22 12:18

how are you authenticating your G2 user? through a G2<->PHPbb3 bridge?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
rstrich

Joined: 2013-05-22
Posts: 5
Posted: Wed, 2013-05-22 13:03

yep :)

 
rstrich

Joined: 2013-05-22
Posts: 5
Posted: Wed, 2013-05-22 13:06

gallery2 Integration (if that makes sense) and g2 is running in embedded mode... I can send you url and demo user / pass if it would help?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-05-22 23:16

g2image needs to initialize gallery via the phpbb3 bridge. I've never used phpbb3 or the integration package, but looking through the files seems it would be something like:

define('IN_PHPBB', true);
$phpbb_root_path = './'; // this should be the absolute path to phpbb3 root
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include ($phpbb_root_path . 'common.' . $phpEx);

$user->session_begin();
$auth->acl($user->data);
$user->setup();

$validG2User = (!empty($user->data['user_gallery']) || $auth->acl_get('a_gallery2') > 0) ? true : false;

require($phpbb_root_path . 'g2helper.' . $phpEx);
$g2h = new g2helper();
$g2h->init($validG2User);

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
rstrich

Joined: 2013-05-22
Posts: 5
Posted: Thu, 2013-05-23 08:00

where would this need to go suprsidr? (And many thanks for the assistance!)

 
rstrich

Joined: 2013-05-22
Posts: 5
Posted: Thu, 2013-05-23 07:59

init.php, works a treat, many thanks :)