forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: Cheffu on October 19, 2003, 09:20:48 pm

Title: More groups for an album
Post by: Cheffu on October 19, 2003, 09:20:48 pm
Hi
I have a YabbSE integration and so all my old Membergroups and I will allow not only one mebergroup an album, but so far I see, only one Mebergroup can be choose or havn't I seen anything yet?

Edit: I have not search befor that post in the board. I request the mods to delete this thread when there is on any other site the answer for my question
Title: Re: More groups for an album
Post by: gromeck on October 20, 2003, 04:29:25 pm
Quote from: "Cheffu"
Hi
I have a YabbSE integration and so all my old Membergroups and I will allow not only one mebergroup an album, but so far I see, only one Mebergroup can be choose or havn't I seen anything yet?

I have not search befor that post in the board. I request the mods to delete this thread when there is on any other site the answer for my question


Hmm, you're right. I have the same need.

A possible work-around:

1. add a group with the name corresponding to the album
2. grant the new group access to the album
3. add users to this group

gromeck
Title: More groups for an album
Post by: Cheffu on October 20, 2003, 07:19:56 pm
Yes, that can I do, but thats a very fifficult way. It would be much easyer when you can set access for each album for more mebergroups than one.
Title: More groups for an album
Post by: Joachim Müller on October 20, 2003, 11:48:52 pm
@Cheffu (aka Benny): even though you know that you are requested to search first before posting, you blatantly don't and even post this? Your posting is definitely a feature request and should have been posted there (I'll move it). Consider yourself warned, you're starting the same behaviour that got you into troubles on other boards!

@gromeck: I admit that membership in multiple groups would solve a lot of problems, but it'd result in more queries and require a radical code change in the whole software. I guess this will be in a (very) future version of coppermine only.

Feature request noted.

GauGau
Title: More groups for an album
Post by: Cheffu on October 21, 2003, 01:00:03 pm
My first question was, if it give any way to solve that problem in a easy way. I though hat this can be do yet, but i haven't seen it yet in coppermine. That's why i write this questtion in support. The edit bold letters in the first messege have I edit after you tolf me to search before I post anything. I wanted to delete this thread and search before, but I can't it seems.
Title: More groups for an album
Post by: Cheffu on October 27, 2003, 03:07:25 pm
I have foun another poblem with the groups in the Galerie. When I make a new mebergroup. for example "friends" and then I gave them the rights to see an album, than they see the album, but I, as admin don't see the album.
Title: More groups for an album
Post by: Joachim Müller on October 27, 2003, 05:59:56 pm
this has been asked (and answered) before, search the board.

GauGau
Title: More groups for an album
Post by: hyperion on October 27, 2003, 07:35:24 pm
You must select show private albums to unlogged users to see an album when you restrict it like that.
Title: More groups for an album
Post by: Cheffu on October 27, 2003, 08:48:53 pm
Quote from: "gaugau"
this has been asked (and answered) before, search the board.

GauGau

Hi GauGau
I have search but, i don't know after what words I must search. There are alwaya more than 200 matches found and I have been looked in "CPG 1.2.X Support","Modifications/Add-Ons/Hacks" and "Feature requests" before. Either the Topic of that Thread is unclear, so that it can be million things (i haven't look in each thread that can mean million things) or I have overlook the thread (when it was so, than sorry).

Quote from: "hyperion"
You must select show private albums to unlogged users to see an album when you restrict it like that.

But than everybody can see the private albums or?
Title: More groups for an album
Post by: Casper on October 27, 2003, 09:17:29 pm
Quote
But than everybody can see the private albums or?


No, anyone other than the group allowed will see the 'Private' icon.  So will the admin, but admin (when in admin mode) can follow the link and get to see the pic to edit/delete.
This is something I discovered yesterday, after having a similar problem.
Title: hack
Post by: moulari on October 27, 2003, 10:15:32 pm
there was a nice hack on the old board, wich assigned viewing rights to groups according to their hirachy. -> e.g. Admin would see all -> Family would see all down from Family -> Friends sees all down from Family.

Not the best solution but with a little work you can quite get nice usergroups an restrictions.
Title: Re: hack
Post by: Cheffu on October 29, 2003, 08:04:04 pm
Quote from: "moulari"
there was a nice hack on the old board, wich assigned viewing rights to groups according to their hirachy. -> e.g. Admin would see all -> Family would see all down from Family -> Friends sees all down from Family.

Not the best solution but with a little work you can quite get nice usergroups an restrictions.

how can I get in the olf forum to search after that hack?
Title: searching..
Post by: moulari on October 29, 2003, 11:34:00 pm
Do a search on the forum for somehing like "old forum" or "old board" there was a thread some time ago in the "general discussion".
Title: More groups for an album
Post by: moorey on October 30, 2003, 03:05:57 am
It was on the news of the frontpage.. but anyway: http://coppermine.sourceforge.net/oldboard/
Title: Simplification & PATCH for 1.2 show_private confusion
Post by: djschaap on December 28, 2003, 05:59:47 am
Quote from: "casper"
Quote
But than everybody can see the private albums or?


No, anyone other than the group allowed will see the 'Private' icon.  So will the admin, but admin (when in admin mode) can follow the link and get to see the pic to edit/delete.
This is something I discovered yesterday, after having a similar problem.


I'm using version 1.2.  It seems messy to enable show_private (Show private album Icon to unlogged user) to allow users to see albums in groups other than their primary group.  I'd like to propose a one-line patch to index.php that will always show albums users have access to through their secondary groups, regardless of the show_private flag.  This can be done by adding the strstr(...) comparison on line 340 to line 360.

Very limited testing, but nothing's broken so far!

I've attempted to attach a diff -u patch below.

Doug

Code: [Select]

--- cpg1.2.1_standalone.orig/index.php  2003-12-13 21:10:38.000000000 -0600
+++ cpg1.2.1_standalone/index.php       2003-12-27 22:21:22.000000000 -0600
@@ -357,7 +357,7 @@
             $alb_list[$alb_idx]['thumb_pic'] = "<img src=\"images/nopic.jpg\" {$image_size['geom']} alt=\"\" border=\"0\" class=\"image\" />";
         }
         // Prepare everything
-        if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || $visibility == $USER_DATA['group_id']) {
+        if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || $visibility == $USER_DATA['group_id'] || strstr(USER_GROUP_SET, $visibility)) {
             $last_upload_date = $count ? localised_date($alb_stat['last_upload'], $lastup_date_fmt) : '';
             $alb_list[$alb_idx]['aid'] = $alb_thumb['aid'];
             $alb_list[$alb_idx]['album_title'] = $alb_thumb['title'];