Modify OG Galleries View to show all public images

pyroman - August 21, 2007 - 20:13
Project:OG Galleries
Version:5.x-1.7
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hey

My site has several groups and the subscribers should be able to upload images to galleries in their group. But the images should be public and visible for anonymous users. This works almost fine with OG Galleries, it is possible to view the image nodes by typing the direct URL and you can get a list of a groups galleries by typing eg. ".../galleries/1". But if I go to the root galleries page: ".../galleries" I get nothing but a "No items found for this gallery", where I wanted a list of the groups...

I think I've found the problem, which is situated deeply in the source code of the module. It seems that OG Galleries will only show the public group (group id=0) if the user is anonymous - whether or not there is public images in the other groups (see the file og_galleries.module about line 1080).

I can't believe I'm the first to have this problem. Anyone know how to make it work - either by Drupal or by hacking the source code?

Thank you in advance!!!

Filip

 
 

Drupal is a registered trademark of Dries Buytaert.