Having a bad time with embedded g2 paths and drupal 5.7

Ellenm1

Joined: 2003-04-14
Posts: 2
Posted: Sat, 2008-04-19 22:35

Hi,

I have a fish-fancier's site running on Drupal 5.7. I've had a standalone G2 gallery which I'm trying to integrate into the drupal site. The problem is paths.
Standalone gallery is at http://parrotcichlid.com/gallery/

My G2 files are in /gallery/
embed.php is at /gallery/embed.php

The "Embed URI" from the drupal Gallery Settings Install tab is
/index.php?q=gallery

To test the problem, go to http://parrotcichlid.com

In the left menu is a link "Gallery", which is the only link that works correctly so far. http://parrotcichlid.com/?q=gallery brings up the embedded gallery.

If you click any of the album links, though, it opens http://parrotcichlid.com/gallery/main.php?g2_itemId=[itemid]

which is the correct page but it jumps out of the embedded state to standalone.

Or, if you click the main Gallery link in the left menu, then click any of the album icon images in the middle of the page, you will go to http://parrotcichlid.com/gallery/[album_name] which is a blank page. I have tried all sorts of things in the gallery URL rewrite module and have been unsuccessful at figuring out the correct path.

Please help - I'm at my wit's end!

Thank you!

Ellen

Here is the .htaccess code from /gallery

# BEGIN Url Rewrite section
# (Automatically generated.  Do not edit this section)
<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteBase /gallery/

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
    RewriteCond %{REQUEST_URI} !/gallery/main\.php$
    RewriteRule .   -   [L]

    RewriteCond %{HTTP:Authorization} (.+)
    RewriteCond %{QUERY_STRING} !g2_authorization=
    RewriteRule .   %{REQUEST_URI}?g2_authorization=%1   [QSA]
    RewriteCond %{THE_REQUEST} /gallery/d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/gallery/main\.php$
    RewriteRule .   /gallery/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3   [QSA,L]
    RewriteCond %{THE_REQUEST} /gallery/gallery/v/([^?]+)/([0-9]*)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/gallery/main\.php$
    RewriteRule .   /gallery/main.php?g2_path=%1&g2_page=%2   [QSA,L]
    RewriteCond %{THE_REQUEST} /gallery/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/gallery/main\.php$
    RewriteRule .   /gallery/main.php?g2_controller=migrate.Redirect&g2_path=%1   [QSA,L]
</IfModule>

# END Url Rewrite section

 <Files ~ "\.(inc|class)$">
   Deny from all
 </Files>

http://parrotcichlid.com
http://thedesignspace.net

 
jjuhl

Joined: 2006-12-03
Posts: 5
Posted: Mon, 2008-04-21 02:06

Is your gallery2 installation installed in /drupaldir/gallery? Installing Gallery 2 in the drupal subdirectory /gallery doesn't work. See http://codex.gallery2.org/Integration:Drupal:Installation

I have never been able to get gallery2 url rewrite working with D5. It's not activated in Gallery2 but I do have the path module activated in D5 and that seems to work if you can tolerate the cryptic urls.

example:

http://myhreseniors.com/index.php?q=gallery&g2_itemId=14

Jim

 
lucoweb

Joined: 2008-06-09
Posts: 2
Posted: Mon, 2008-06-09 22:26

hey jjuhl,

how did you do this? I'd like to get more detail on integrating Drupal's path module with Gallery2, since G2's URL rewrite plugin doesn't work.

as far as I know, Menalto uses Drupal for its CMS - and it seems they got the URL rewrite running pretty well. why can't they simply document that? :/

anyway thanks for the help.
cheers!

 
jjuhl

Joined: 2006-12-03
Posts: 5
Posted: Fri, 2008-06-27 11:35

Sorry about the delay in replying. June is busy photographing seniors.

I use drupal's path module but I don't use the Gallery2 URL rewrite. I could never get it to work right and I find it easier to reference gallery2 items by using itemID=

Jim