Hello,

I have followed the instructions at http://www.lullabot.com/articles/photo-galleries-views-attach to create a photo gallery. The instructions work perfectly, and I am really happy with the gallery. However, I am trying to make two types of photo galleries. I am trying to create a site-wide photo gallery (which I have accomplished with these instructions), and user photo galleries.

I want the user to be able to upload photos, in the same way that the lullabot instructions work, and then have a view that allows anyone who is a friend of that user (I am using User Relationships) to be able to see those photos (probably in a block when they visit the users profile).

I have tried everything I can think of, I have searched using every combination of user, photo, gallery, album, and some other keywords on both google and drupal.org. I have read every post I have come across. I have even purchased several books: "Drupal 6 Attachment Views", and the rough cut of "Drupal's Building Blocks: Quickly Building Websites with CCK, Views, and Panels" by Earl Miles...but I can't seem to figure out how to make this view work!

I am completely stuck...can anyone provide help? Any ideas?

Thanks,

Jeremiah

P.S. I am using Views 6.x-2.8, CCK 6.x-2.6, ImageField 6.x-3.2, and Node Reference URL Widget 6.x-1.6. I'm running Drupal 6.16 on PHP 5.2.12 and MySQL 5.1.40, on a Windows Server 2003 IIS 6.0 machine with Ionic ReWriter (I'm not a fan of Windows, but that's what the client required...)

Comments

WorldFallz’s picture

What access control module are you using?

otisjs01’s picture

I am using the Content Permissions that ships with CCK.

WorldFallz’s picture

That's only for field level permissions. if you want to control access to nodes, which is what galleries and photos are with the gallery method you use, then you need to use one of the node level access control modules. I've not used user_relationships, i usually do this with nodeaccess_userreference, but i believe ur has a node access module you might want to try out. Once you have node access setup the way you want, fixing the view (if necessary), should be relatively simple.

glitz’s picture

i was wondering if this configuration worked, or if you could provide me the modules/config needed for this (other then the vid tutorial). I am looking to accomplish the same byh having user photo galleries that are only visible by friends of a that user.

thanks
chris