Drupal 4.63: How Do I Use or Link to Embedded Gallery2?

StephenW
StephenW's picture

Joined: 2005-12-23
Posts: 25
Posted: Mon, 2006-02-20 02:54

Gallery2 Not Fully Embedded In Drupal
Hi,
I'm having a problem. I have Gallery2 imbedded (installed inside of Drupal 4.63) and have installed activated the Drupal Gallery.module. Gallery2 shows to be embedded within Drupal, see here: Winters Sewing: Picture Gallery. However, when I click on any picture in the Gallery, it takes me to out of Drupal to the unembedded Gallery2 installation. Also, if I click on the Random picture block in the upper left corner of my Drupal webpage, it does the same thing; it also takes me out of Drupal to my unembedded Gallery2 installation. This is not what I want it to do. When users click on the pictures, I want them go to the imbedded gallery albums. I want the uses to be able to navigate to different pictures in Gallery2 while staying in Drupal. How do correct this?

Basically what I want to accomplish is to just keep Gallery2 embedded within Drupal, so that when visitors navigate to Winters Sewing Picture Gallery, and then click on the albums and pictures, they will be able to navigate through Gallery2 while remaining within Drupal.

I've read through different message threads on Drupal.org, and haven't been able to figure out how to do this yet. Thanks for any help you can give.

PS. I don' t know if this is a related issue, but when I originally embedded G2, this Gallery2 icon [img]http://winterssewing.com/drupal/gallery2/gallery2/images/galleryLogo_sm.gif[/img] at the top of the page did not show. All that showed was an empty icon blank box. I had to manually link it. (I forget exactly how I did that now.) Also, if you look near the bottom of this page Winters Sewing: Picture Gallery (under the Gallery2 username login boxes) you will see other empty boxes where icons for "Unpossible" and "Gallery.sourceforge.net" should be. It doesn't matter to me if these icons don't show or not, but I just wondered it this was somehow related to the above problem.

Also: Admin Error
Also, When I'm logged into Drupal as the administrator and I'm at this webpage: Winters Sewing: Picture Gallery, At the top of the embedded Gallery2 main page is this icon and text:
[img]http://winterssewing.com/drupal/gallery2/gallery2/images/galleryLogo_sm.gif[/img]
Site Admin

However, when I click on on the "Site Admin" text, instead of going to the Gallery2 Administration pages, I go to an error page:

Error Detail -
Error (ERROR_PERMISSION_DENIED) : 
in modules/core/classes/helpers/GalleryUserHelper_medium.class at line 209 (gallerystatus::error) 
in modules/core/classes/GalleryCoreApi.class at line 518 (galleryuserhelper_medium::assertsiteadministrator) 
in modules/core/SiteAdmin.inc at line 46 (gallerycoreapi::assertuserissiteadministrator) 
in modules/core/classes/GalleryTheme.class at line 688 (siteadminview::loadtemplate) 
in modules/core/classes/GalleryView.class at line 285 (matrixtheme::loadtemplate) 
in main.php at line 287 (siteadminview::doloadtemplate) 
in main.php at line 87
in main.php at line 80

However, when I click on one of the pictures, it will take me to the Gallery2 albums (although it is the NOT imbedded Gallery 2 installation)

Could the above error messages be part of the problem Gallery2 not quite being fully imbedded in Drupal? Does anyone know what I can do to fix this and to fully embed Gallery2 within Drupal? Thanks.

Best Wishes,
StephenW

Winters Sewing: Upholstery Information Website
Winters Sewing: Home Website

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Mon, 2006-02-20 14:54

You have URL rewrite configured incorrectly for embedded Gallery2. See http://codex.gallery2.org/index.php/Gallery2:How_to_Embed_Gallery2_in_Drupal#URL_Rewrite