[SOLVED] Problem trying to embed all images are main.php

Arnoldjw
Arnoldjw's picture

Joined: 2004-05-16
Posts: 54
Posted: Tue, 2005-03-15 05:40

I''m playing with embedding. I created a page that looks just like the code in the doc/EMBEDDING/ . With that I get a page with style sheets that looks like my main gallery page, but the images are broken.

This is all my local test box, so my URL is localhost/gallery2 for gallery, and localhost/wordpress/wp-gallery.php for my embedded app page.

The image urls for the embedded page are:
http://localhost/gallery2/main.php/d/16-1/P2260037.JPG

When I pull up gallery by itself (not embedded) the same image URL is
http://localhost/gallery2/d/16-1/P2260037.JPG

If I past the URI for images from the embedded page I get the full gallery html, not binary images.

What am I doing wrong? should the embeddedurl have main.php included? Is there a URL setting or rewrite setting I've got wrong?

I've tried the beta 1 and updateing with cvs.

----

Gallery URL :
Gallery version: both beta 1 and CVS from 3/14/2005
Webserver (with version): Apache 2
Datatabase (with version): MySQL
PHP version (eg 4.2.1): 5
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:
Web browser/version:
G1 version (for migration bugs):

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-03-15 07:04

disable short urls and the url rewrite module and delete the corresponding .htaccess in your gallery2 folder.
short urls have changed from alpha 4 to beta 1 and we have to find a new way to support short urls in embedded applications.

 
Arnoldjw
Arnoldjw's picture

Joined: 2004-05-16
Posts: 54
Posted: Thu, 2005-03-17 21:34

That worked perfectly thank you.

So while Gallery is in Beta keep an eye on the embed.php and short urls.

Thanks

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-03-17 22:05

short urls worked perfectly in pre beta 1 G2, but in beta 1, the short url technology used changed. it will take a while before short urls are fixed in embedded G2.