Sidebar, Shutterfly problems (Drupal 4.6 + G2 CVS)

dschuetz

Joined: 2005-07-19
Posts: 8
Posted: Wed, 2005-07-20 12:06

I've been trying to get the Drupal gallery.module working just right, and there have been some issues. So I upgraded to the latest G2 CVS, and of course that just made things worse. :(

In both B3 and CVS (as of morning on 7/19), with Drupal 4.6, there's a problem with the Shutterfly printing. You get redirected to the outside cart, and it even knows the dimensions of your photo, but the thumbnail showing the photo to be printed is broken. Looking at the SRC tag on that thumbnail, it has no hostname -- so it's looking on the Shuttefly site for the image. When using G2 standalone, it works just fine. Has anyone run into this on another embedding project? I'm guessing there's some kind of init parameter that's missing or incorrect.

Also, the sidebar menus aren't working properly. First, I had to change the flag to hide the sidebar within the embedded G2 view (ShowSidebar -> ShowSidebarBlocks). [btw, how do you get rid of the G2 header / path in the embedded window?] However, the Drupal module had been receiving the sidebar menus as an array, so they could be natively rebuilt within Drupal. That's apparently changed recently, so that the array returned by the embedded G2 doesn't contain a URL, and the menu isn't getting built. I can't pretend to fully understand this, but it's explained pretty well here: http://drupal.org/node/24531 Again, has anyone run into this on another project? I've hacked together a simple fix ( http://drupal.org/node/25207 ), whereby it simply takes G2's raw sidebar content and displays it in Drupal's sidebar, but that's not the most elegant or flexible method, I think...

I realize that G2 is a moving target (especially on CVS), but I'd like to be able to keep at least my own copy of the Drupal module somewhat up-to-date, if for no other reason than to make final release of that module easier for everyone else. :)

Thanks!

david.

 
muergano
muergano's picture

Joined: 2005-07-22
Posts: 3
Posted: Fri, 2005-07-22 16:44

David,

I have EXACTLY the same problem. I have desperatly tried to find a solution but so far have not been successful. Please DO let me know if you find a solution.

 
Cahir

Joined: 2005-04-22
Posts: 11
Posted: Sat, 2005-07-23 18:55

I've had the same exact problem with the Shutterfly thumbnails (Photoaccess, too, if you try it), but unfortunately have had no luck in solving the problem. I was going to try upgrading to the newest G2 beta, but it doesnt sound like it will solve the problem. :( I wish I knew if it was a G2 bug or a gallery.module bug. (I posted on Drupal's site without any response) I've really wanted to move away from Gallery1...hopefully someone will address this problem soon.

 
dschuetz

Joined: 2005-07-19
Posts: 8
Posted: Thu, 2005-08-04 13:41

I've got the Shutterfly printing bit to work, I think. I haven't put this through really extensive paces, so I'd appreciate it if folks could give it a shot and see if it doesn't break anything else.

In the Drupal gallery.module, under function _gallery_init(), I added 'embedPath' => '/' to the $parms list.

That is, the array starts like this:

  $params = array('embedUri' => $embedUri,
                  'embedPath' => '/',  // djs
                  'relativeG2Path' => $relativeG2Path,

Like I said, it seems to work, at least so far. Can anyone please confirm?

Thanks!

 
muergano
muergano's picture

Joined: 2005-07-22
Posts: 3
Posted: Fri, 2005-08-05 13:56

dschuetz,

As soon as I get home I will be testing your solution (I don't have access from work). I really hope it works for me as well. I will keep you posted =)

Thanks

 
muergano
muergano's picture

Joined: 2005-07-22
Posts: 3
Posted: Sat, 2005-08-06 16:20

You are the man dschuetz! I have been looking for a solution to this problem forever! I can now print via shutterfly at least ;)

Thanks again.

P.D. I will keep you posted with my testing experience, although I don't think your mod is going to break anything else.

Regards

 
yaus831

Joined: 2004-10-20
Posts: 11
Posted: Thu, 2005-08-11 15:00

Regarding the navigation bar and the breadcrumb trail... see my early post:

http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=33278

See if this solve your problem