Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: More groups for an album  (Read 8530 times)

0 Members and 1 Guest are viewing this topic.

Cheffu

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
    • http://www.cheffu.de
More groups for an album
« 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
Logged
Schreibfehler sind beabsichtigt und dienen der allgemeinen Belustigung.

gromeck

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: More groups for an album
« Reply #1 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
Logged

Cheffu

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
    • http://www.cheffu.de
More groups for an album
« Reply #2 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.
Logged
Schreibfehler sind beabsichtigt und dienen der allgemeinen Belustigung.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
More groups for an album
« Reply #3 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
Logged

Cheffu

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
    • http://www.cheffu.de
More groups for an album
« Reply #4 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.
Logged
Schreibfehler sind beabsichtigt und dienen der allgemeinen Belustigung.

Cheffu

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
    • http://www.cheffu.de
More groups for an album
« Reply #5 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.
Logged
Schreibfehler sind beabsichtigt und dienen der allgemeinen Belustigung.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
More groups for an album
« Reply #6 on: October 27, 2003, 05:59:56 pm »

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

GauGau
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
More groups for an album
« Reply #7 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.
Logged
"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

(http://www.mozilla.org/products/firefox/buttons/getfirefox_small.png)

Cheffu

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
    • http://www.cheffu.de
More groups for an album
« Reply #8 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?
Logged
Schreibfehler sind beabsichtigt und dienen der allgemeinen Belustigung.

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
More groups for an album
« Reply #9 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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
hack
« Reply #10 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.
Logged

Cheffu

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
    • http://www.cheffu.de
Re: hack
« Reply #11 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?
Logged
Schreibfehler sind beabsichtigt und dienen der allgemeinen Belustigung.

moulari

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
searching..
« Reply #12 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".
Logged

moorey

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 404
More groups for an album
« Reply #13 on: October 30, 2003, 03:05:57 am »

It was on the news of the frontpage.. but anyway: http://coppermine.sourceforge.net/oldboard/
Logged

djschaap

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Simplification & PATCH for 1.2 show_private confusion
« Reply #14 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'];
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.