More groups for an album More groups for an album
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

More groups for an album

Started by Cheffu, October 19, 2003, 09:20:48 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

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?

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
Schreibfehler sind beabsichtigt und dienen der allgemeinen Belustigung.

gromeck

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

Cheffu

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.
Schreibfehler sind beabsichtigt und dienen der allgemeinen Belustigung.

Joachim Müller

@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

Cheffu

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.
Schreibfehler sind beabsichtigt und dienen der allgemeinen Belustigung.

Cheffu

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.
Schreibfehler sind beabsichtigt und dienen der allgemeinen Belustigung.

Joachim Müller

this has been asked (and answered) before, search the board.

GauGau

hyperion

You must select show private albums to unlogged users to see an album when you restrict it like that.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Cheffu

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?
Schreibfehler sind beabsichtigt und dienen der allgemeinen Belustigung.

Casper

QuoteBut 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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

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.

Cheffu

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?
Schreibfehler sind beabsichtigt und dienen der allgemeinen Belustigung.

moulari

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".

moorey


djschaap

Quote from: "casper"
QuoteBut 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


--- 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'];