Hi

I have just embedded G2 in a fresh Drupal 4.7 site. Everything else seems to be running fine, but even users registered in Drupal are unable to post pictures to G2.

Should I create manually the group (Drupal's default group for new users) in G2, and then assign post permissions to it? Or should I create a specific group for posters (either in drupal, in G2 or both)?

I have searched for some documentation in the Codex, but I couldn't find anything.

Thank you in advance
--
Albert

Comments

kiz_0987’s picture

Drupal users will be in the "registered users" group of gallery2. The problem you have is that you have not set up your gallery2 main album to allow registered users to add albums/photos. Often this is done by using the "User Albums" module, but you could just change the user rights in Gallery2. No changes to drupal roles is needed unless you want to get more complicated.

albertc’s picture

Thanks for your reply. However, I'm not sure of what you mean. There is an 'authenticated user' group in Drupal, and also in Gallery2. This group has 'Add comment' permissions from the top album down. However, no sidebar appears so the user can do so. This also applies to other operations, such as adding pictures and so on. So my problem is there is no sidebar at all...

kiz_0987’s picture

You may need to enable the "gallery navigation" block in your drupal blocks.

albertc’s picture

Bingo!!!

I was under the impression that the block would appear everywhere, but obviously I was missing that. it only shows up when a picture is displayed. Now I'll try to find out where the settings are supposed to be.

Thank you very much...
--
Albert

cbutera’s picture

Going back to the original problem - how do you get the drupal groups to sync with the gallery groups. I actually have seen the groups come in to gallery from drupal - but the membership to those groups doesn't come in. The groups are all empty.

Should this be a feature request or am I doing something wrong?
We have students that have drupal accounts - that I would like to have limited access to gallery while faculty have full access to gallery.

Thanks,
Chris

kiz_0987’s picture

The roles/groups are synced when you add a user to role. But this is on a per-user basis and there is no global sync (it's a feature I would like too).

Everytime a user is modified the roles/group names and presence is synced, but which users are in which group is only done when the user is modified in drupal. This was originally fine for what I wanted as I started with a fresh install of drupal/gallery2 and then added roles in drupal and only then could I add users to those roles (which would then go through to Gallery2). The problem comes in though when you already have the roles defined in drupal and users in the roles and *then* add Gallery2 -- they will not sync automatically (only when each user is modified).

alexandreracine’s picture

Status: Active » Fixed

This work well on my 4.7 website.

------------
Feel free to reopen.
Please look at the latest version first!

http://drupal.org/project/gallery

Closing (cleanup)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.