Hey,

Maybe im just crazy or blind but I can't seem to find the gallery profile settings. I have gallery2 set up and enabled standalone, as in http://www.example.com/gallery2, and I have the embedded gallery up and running as well, but I am having some issue getting the gallery albums into blocks into a user's profile. I'm using panels2 with advanced profile, and I can get the gallery grid block and image blocks working fine, but I can't seem to filter them based on username. I.E. If im viewing user 1's profile, have only user 1's image albums show up in the block, and if im viewing user 20's profile, have user 20's image albums show up.

In views I can select this with arguments, I.E. User: User is UID, but I can't seem to figure out how to do this. I read http://drupal.org/node/185251 which would allow me to this with theming but its outdated and leads me to believe that the 5x-2.2 version has this included. I am just a little lost on how to make this happen.

Any suggestions you can toss my way would be really appreciated.

Thank you very much for your time AND this module.

Comments

rc2020’s picture

Hey,

Please dont take this as being rude I know the support que is filled with entries and you're busy with other things, but is this request not going to be answered? (I.E. its been read by anyone who could know the answer and just has been decided its not going to be answered, ive been on many forums and it happens all the time). I posted first on the forums and its been a week and a half with no responses, and its been 3 days here. I would love to use gallery and help support it but the documentation isn't written and there seems to be no information anywhere on how to use gallery_profile or have ONLY the user's albums show up in the grid block when viewing their specific profile page. So as awesome as this module is, I still have to answer to my development team and if this module isn't going to work then I would appreciate someone telling me so I can research other options.

Thank you very much, and please dont take this as rude, I just cant wait another week and a half to find answers.

Thanks.

P.S. I read the discussion earlier when gallery was in beta, none of the php code worked that profix wrote.

profix898’s picture

Sometimes I feel lost in the queue as well, but for me its (almost) nobody else helping with documentation and support! ...

To answer your question:

1. Not sure you got the difference between albums created by a certain user and the useralbum feature/plugin in Gallery2!? GalleryProfile integrates the useralbum feature with profile pages. The same result can in principle be achieved with a few lines of custom code (see the page you linked above). However, for filtering all albums by user a custom query against the G2 database is needed (because G2 does not support "fetchAllImagesByUser") and some extra processing on the Drupal side of things. Can you describe more precisely what solution you expect?

2. The settings for GalleryProfile can be found at "User management > Gallery users > User settings > Gallery profile". But please note that Gallery module currently does not integrate with Panels2 (and therefore not with advanced_profile).

rc2020’s picture

Hey,

thanks for getting back to me. @2, thanks.

As for #1, the solution I would like is exactly the solution you described. With the gallery grid block, the ability for me to specify, if I could literally speak it to drupal: "when on the profile page of user x, show only user x's gallery2 albums in the gallery grid block."

I get the sense that I'm not the only one who would like to see how this could be implemented to complement an already great module.

Thanks alot for your help.

If I see anything that catches my eye I'll try to write a response for it if I know the answer.

maedi’s picture

This code could be what you're looking for:
http://drupal.org/node/300336#comment-1097637