drupal + G2: Navigation menu

simon_hui

Joined: 2005-08-10
Posts: 39
Posted: Thu, 2005-11-03 00:29

Please go to http://www.artistscolony.net and sign in id=christa pw=christa. Click on gallery and christa's album - it shows no navigation menu to G2

Now go to http://www.artistscolony.net/gallery2/ and sign in id=christa pw=christa. Click on christa's album - here it shows navigation menu to G2

why is that?

Also note in http://www.artistscolony.net/gallery2/ only Christa's album has the Album's Action and not the others. Why?

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Thu, 2005-11-03 01:11

I wonder if somehow there are 2 users called Christa. One reason I think this is that there are 2 user albums "christa" and "christa_001". Perhaps looking at the users in G2 will tell you.

I would recommend creating a new user through Drupal and seeing what happens. Note that once you have embedded G2 in Drupal you should always go through Drupal to login/add users/make user changes etc. You still need to go through G2 to make permissions changes. Check which blocks are activated for the sidebar in the G2 site admin.

Also, which version of gallery.module are you using?

 
simon_hui

Joined: 2005-08-10
Posts: 39
Posted: Thu, 2005-11-03 01:46

there is only one user named christa.

I do not know how it happened but there were two christa's albums so I deleted one. Although I still don't know why it should make a difference if both had christa as owner.

Because I do not want users to be able to mess with someone else's album, I have added User Albums module to G2 and disabled add album in the edit permissions. Would this make any difference?

How do I check which blocks are activated for the sidebar? I cannot see any options re sidebar or menu.

gallery.module is the latest dated 15/Sep/2005

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Thu, 2005-11-03 02:10

The currently released version of gallery.module does have issues, although nobody has reported this issue. You may want to use the CVS version (http://drupal.org/project/Modules/cvs -- look for gallery) but this still has some problems for which patches are available in http://drupal.org/project/issues/gallery . I would not bother changing the version until all your user issues are resolved though.

To see the sidebar blocks go to Site Admin->Themes->ThemeName and you'll see "Blocks to show in the sidebar".

There are still 2 Christa albums. I am now seeing a navigation menu in all cases. Perhaps it is a permissions issue -- if there are insufficient permissions for anything to be added to the sidebar then nothing will get added.

 
simon_hui

Joined: 2005-08-10
Posts: 39
Posted: Thu, 2005-11-03 03:01

how odd that there are two christa's albums again. I am going to delete all the albums and start again using only drupal as suggested. may be one of them was created before I installed User Albums and so now whenever christa login an album is created.

Will let you hear what I find. Thanks for your help.

 
simon_hui

Joined: 2005-08-10
Posts: 39
Posted: Thu, 2005-11-03 03:21

I deleted all albums and all users.
christa created a new account. Now login does not create new album although User Albums module is activated and set to create an album for each user upon access.
Any idea?

 
simon_hui

Joined: 2005-08-10
Posts: 39
Posted: Thu, 2005-11-03 04:15

Now when I went to http://www.artistscolony.net/gallery2/ and sign in id=christa pw=christa, a new album is created for christa.
It proves that User Albums is not working with gallery.module either!

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Thu, 2005-11-03 11:52

Not sure. Would you be able to give me Site Admin priviledge for Drupal and G2 and I can try to take a look (you can Private Message me the info)?

Now when I try to login to Drupal I get a Duplicate Id error. I've seen this before when I was developing the gallery.module extensions for group support and it was due to my new code causing a problem in the Drupal database for user 0 (anonymous). I do not know why you should be getting the issue -- you can see http://drupal.org/node/21120 for details of this.

User albums can definitely work with gallery.module, I've been using them for weeks without any issues.

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Thu, 2005-11-03 17:14

Thanks for the admin privileges. I created a new user 'test' and it worked OK, but your settings for User Albums were not perfect. If you look at Site Admin->User Albums you will see options for "Create Albums" and "Link to User Album". With the settings you had used, no user album would be created until the user went to the user album, but without the link the user could not do so. This is what caused some of your issues. I have changed it so that the link is shown, and the album is created when the user is created. I created a new user 'test2' and you can see that it worked perfectly.

I deleted the 'test' user, but the user album remains with the owner changed to "Gallery Administrator". This is standard G2 operation. You can delete the user 'test2' (IN DRUPAL) and the user albums for 'test' and 'test2' when you like.

 
simon_hui

Joined: 2005-08-10
Posts: 39
Posted: Thu, 2005-11-03 17:36

Many thanks.

Now one thing irritates me. There are two columns of menus when in gallery. Is there any way the gallery menu can be integrated into that of drupal as a sub menu?

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Thu, 2005-11-03 17:41

Yes -- look at the enhanced gallery.module version I made in http://drupal.org/node/32393 . Note that this does not work to remove admin menus in G2, but does for the normal sidebar.

 
simon_hui

Joined: 2005-08-10
Posts: 39
Posted: Thu, 2005-11-03 17:53

Good. At least it is an improvement for all but the owner. I will install it later today.

 
simon_hui

Joined: 2005-08-10
Posts: 39
Posted: Thu, 2005-11-03 21:29

It looks great. Thanks again.

 
simon_hui

Joined: 2005-08-10
Posts: 39
Posted: Fri, 2005-11-04 01:10

Went to drupal admin to have a look at modules and got this message:

Fatal error: Cannot redeclare gallery_help() (previously declared in /home/artistsc/public_html/modules/gallery.module:18) in /home/artistsc/public_html/modules/galleryO.module on line 7

Any ideas? When I install your modified gallery.module, I renamed the old one as galleryO.module.

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Fri, 2005-11-04 04:13

Remove or move the old galleryO.module out of the modules directory -- Drupal is getting confused with the 2 versions.