1
I'm an amateur at this, so I thought I'd tap your collective infinite wisdom.
What I'm trying to do is have select photo's show up on a page/block/module/whatever, depending on the XOOPS group permissions.
I've used image manager and set up 4 categories of photos (i.e. 1,2,3 & 4).
I would like the photo's to be displayed per the user group permissions that exist in xoops.
So, in other words, an Anonymous user sees all photo's in Category 1.
A Registered user see's all photo's in Category 1 & 2.
A 3rd User Group could see all photo's in Category 1,2 & 3.
I see the tables in phpmyadmin, but I can't figure out the relationship of the user table and the groups table. I think the key has to be in the groups_users_link table, but thus far it has eluded me. Perhaps _group_permission table is involved too?
I guess what I'm looking for is an "if" statement that says...
if uname belongs to groupid 1
then run the sql statement and spit out Category 1 photos.
Am I trying to recreate the wheel here? Is anyone aware of a photo module that can do this?
Many thanks in advance for your input.