Click through on Embedded Random Image Block and/or Album redirects to homepage url; does not happen when G2.3rc is standalone

jjoves

Joined: 2008-08-23
Posts: 49
Posted: Fri, 2008-09-05 06:51

Hi folks,

I've recently incorporated G2.3rc1 into my drupal site (www.seaandsnow.org). Creating and editing albums via Drupal embed or G2 standalone is fine. If I click on a random image via image block on the drupal site or try to view an album, the site just redirects to the homepage even when I can see the path on the browser frame. However, when I log into G2 stand alone, everything works fine.

Is this issue have to do with the URL rewrites?

Thanks,
James


in G2 Show item:


gallery2/v/%path%


in Drupal Gallery Settings>Install:


There is a writable .htaccess file in your defined Drupal directory (/hermes/web02/b2962/jovestec/seaandsnow/main/). Your 'Show Item' rule should start with 'gallery2/'. Make sure to change the URL Rewrite rule(s) accordingly. (which I did. See above)

Gallery2 location settings - Auto Configuration
Overview of your Gallery2 location settings as specified or autodetected during install.
Gallery2 URL or URI: /main/gallery2/
Gallery2 filesystem path: /hermes/web02/b2962/jovestec/seaandsnow/main/gallery2/
Embed URI: /main/index.php?q=gallery2
Gallery base: gallery2

Clean URLs / URL Rewrite settings
Overview of your URL Rewrite settings as specified during install.
Public path to your .htaccess file: /main/
Filesystem path to your .htaccess file: /hermes/web02/b2962/jovestec/seaandsnow/main/

 
jjoves

Joined: 2008-08-23
Posts: 49
Posted: Sat, 2008-09-06 01:26


UPDATE:

Took the "gallery2" out of the G2 URL Rewrite
in G2 Show item:
gallery2/v/%path%

Now the click through on the album, Your Album, and Image Block work. However, Blocks, Primary and Secondary Links are gone (As reported in other issues).

Foliage Theme is used on Drupal

James

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2008-09-06 01:53

modules/imageblock/classes/ImageBlockHelper.class line ~199 $ImageBlockData['forceFullUrl'] = 0;
change to 1.
Not sure why this is hardcoded.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
jjoves

Joined: 2008-08-23
Posts: 49
Posted: Sat, 2008-09-06 19:31
suprsidr wrote:
modules/imageblock/classes/ImageBlockHelper.class line ~199 $ImageBlockData['forceFullUrl'] = 0;
change to 1.
Not sure why this is hardcoded.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

Thanks, suprsidr. I made the change but there is not anything apparently happening. What should or is the expected outcome w/ 0 and with 1.

Regards,
James

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2008-09-06 19:44

if forces gallery to produce a fullUrl instead of a relative one.
for imageblock only.

-s

FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
jjoves

Joined: 2008-08-23
Posts: 49
Posted: Sat, 2008-09-06 19:56

Suprsidr,

Got it. Which is correct on my image block #2 for keywords. Thank you.

However, (not sure if you seen the G2 module on Drupal) primary, secondary, and navigation links disappear when a user is in an album or viewing a picture. Is there a fix on the Gallery end?

Likewise, I'm trying to work with combining the Drupal Tagadelic module with Keywords from Gallery to form a cross platform module. Is there one in progress? (see http://gallery.menalto.com/node/81339)

Regards,
James

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2008-09-06 20:04

In your Drupal admin can you add/edit the settings for embedUri and g2Uri to full urls?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
jjoves

Joined: 2008-08-23
Posts: 49
Posted: Sat, 2008-09-06 20:20

I'm looking at the module, I don't see it. (there's a rewrite issue w/ the module) I wonder if that is playing a role. I'll look at this tonight.

Regards,
James

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2008-09-06 21:09

then whats this from?

Quote:
Gallery2 location settings - Auto Configuration
Overview of your Gallery2 location settings as specified or autodetected during install.
Gallery2 URL or URI: /main/gallery2/
Gallery2 filesystem path: /hermes/web02/b2962/jovestec/seaandsnow/main/gallery2/
Embed URI: /main/index.php?q=gallery2
Gallery base: gallery2

Clean URLs / URL Rewrite settings
Overview of your URL Rewrite settings as specified during install.
Public path to your .htaccess file: /main/
Filesystem path to your .htaccess file: /hermes/web02/b2962/jovestec/seaandsnow/main/

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
jjoves

Joined: 2008-08-23
Posts: 49
Posted: Tue, 2008-09-09 03:15

Suprsidr,

I see what you mean. There's issues surrounding the functioning of this Drupal module (Not Gallery) in Drupal (http://drupal.org/node/288660).

Regards,
James