Setting Gallery2 embedded mode?

Basje

Joined: 2005-11-23
Posts: 7
Posted: Wed, 2005-11-23 03:08

Hi there,

I have recently installed Gallery2 1.0.1 and all works like a charm! Well, almost... I want to integrate Gallery2 with WordPress, for which I've used WPG2. No problems so far...

But now I want to use Gallery in embedded mode, but I seem to remember that I dit not activate that option during Gallery2 setup. Is there any way to activate Gallery2 embedded mode with a working installation of Gallery2? I was hoping I did not have to go through the whole installation procedure again, after which I'll probably have to upload all my images again...

Any help would be greatly appreciated, since Google hasn't brought me a solution yet.

Thanks,

Basje.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-11-23 04:20

if you're using WPG2 already, you already use G2 in embedded mode.

if you want to stop users from accessing g2 directly, open config.php and change mode.embed.only to true.

 
Basje

Joined: 2005-11-23
Posts: 7
Posted: Wed, 2005-11-23 12:21

That's not entirely true... The user-integration works, but that's it. For the rest to work I need to configure some stuff in Gallery2 in embedded mode. How do I access that? When I log in to the Site Admin now, the embedded options are missing.

Maybe I'm missing something, but I really can't get it working (yet).

Basje.

Edit: just to clear something up; when accessing http://mysite.com/gallery2.php nothing happens. I know the URL is correct and the file has been uploaded correctly. Still, the browser can't seem to load anything and I end up with a blanco page.

Edit2: after hours of reading all kinds of documentation I finally found the problem and a solution to it as well! From the WPG2 FAQ

Quote:
Q:How come the embedded page just returns blank?

Most common cause of this problem is you do not have enough php memory allocated. Gallery2 requires 16MB to run and you can increase the memory allocation by adding the following line to your .htaccess in your wordpress directory

php_value memory_limit 16M

I really hate myself for missing this one the first time around... I did this for my Gallery2 install as well, so it should've been logical to me.

Oh well, thank you for helping me!

 
beekay

Joined: 2008-09-17
Posts: 3
Posted: Wed, 2008-09-17 16:48

I have a blank admin page problem trying to embedd gallery2 into my website. But when i load the gallery not embedded i can see everything when i login as admin. Ive done everything the FAQ tells me to do when i embedd gallery2 into my website... but no luck.

I need help and i dont know where to start looking because its the first time i use gallery2 AND im also very novice at php in general.

Thanx!
//Billy