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: PhpBB/Coppermine : fetch usergroup  (Read 9958 times)

0 Members and 1 Guest are viewing this topic.

mels

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 13
    • http://www.everlasting-star.net
PhpBB/Coppermine : fetch usergroup
« on: October 10, 2003, 01:54:35 pm »

Hey everyone !

I'm still investigating my problem regarding usergroups in Coppermine... For the ones who don't remember what my issue is here's a summary :

- I have a PhpBB board where I'm the only admin
- I've installed and integrated Coppermine to PhpBB (and I need the two of them to work together), so far so good, it all works like a charm
- Since I'm the only admin in PHPBB I'm the only one who can upload in coppermine
- Because I need *some* other PhpBB *members* (not admins or mods) to be able to upload in coppermine, I created a new usergroup in PHPBB that I called "uploaders" and added the members I needed to upload.
- Back in Coppermine, when I check my usergroups, it imported my usergroup "uploaders" perfectly well. Which means people from "uploaders" group should be able to upload. But they are not.

I've been trying to find a cause to that, but I'm no PHP expert (I'm even the contrary). After a lot of tweaks and all, I've came to the conclusion that MAYBE Coppermine does not fetch a user's usergroup when it checks the user info.
My question is quite simple for the php gurus out there : I would like to check that, in a very simple way : how do I display, in profile.php for example, my usergroup ?

Right now I have
Username
Joined
Location
Interests
Home page
Occupation
and the last comment posted.

I would like to display "Member of" with the list of groups I'm a member of. This should help me find out if the usergroups are correctly fetched or not, what do you think ?

I'd also like to check this is working on index.php (still in coppermine), where I have this link : "Logout [mels] ". How do I display "Logout [mels + usergroup] " instead ?


Thanks in advance for your help! I'm almost sure these questions are easy and might seem stupid... but I'm willing to get rid of this bug all phpbb users seem to have, and I don't have the necessary knowledge to do it on my own... so I guess I need your help !

Take care,

Mels
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
PhpBB/Coppermine : fetch usergroup
« Reply #1 on: October 10, 2003, 03:35:26 pm »

one reason this doesn't work that I could think of is the fact that phpBB is one of the few bbs that allows a user to be member in multiple groups.
Coppermine doesn't "know" membership in more than one group, so it finds the member in the first phpBB-group e.g. called "myusers" and doesn't care for the user also being member in "uploaders". Maybe a phpBB specialist could look after this? Or Jack (who's quite busily working on bbs support right now).
Try this: create a group "testgroup" in phpBB, create a testuser there who is only member in "testgroup" and no other group. Check the group setting in coppermine and the album properties - if the testuser can upload, then the multiple group membership is the reason for the strange behaviour...

GauGau
Logged

mels

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 13
    • http://www.everlasting-star.net
PhpBB/Coppermine : fetch usergroup
« Reply #2 on: October 10, 2003, 03:53:57 pm »

Oooh nice shot Gaugau !!! I thought this could be the problem so I immediatly tried what you suggested... with no success... :(

I've set all settings to "yes" (except upload approval) in my group config in Coppermine... But it hasn't changed a thing.

Now... When you said

Quote
Check the group setting in coppermine and the album properties


Does it mean I should see this group appear in my album properties ? Because I don't... I just see "visitors can upload", etc... (see screenshot)

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fsurefinewhatever.net%2Fcopp_2.gif&hash=bb6e2e9f269ef0deef81f5d5664baf38f2643c09)

Darn... And I thought this would be solved in a minute, I was sure that what you were refering to was the problem...  :evil:  :shock:

 :wink:
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
PhpBB/Coppermine : fetch usergroup
« Reply #3 on: October 10, 2003, 07:51:16 pm »

Quote from: "mels"
Quote
Check the group setting in coppermine and the album properties


Does it mean I should see this group appear in my album properties ? Because I don't... I just see "visitors can upload", etc... (see screenshot)
If the album properties only show "visitors can upload", then your group settings don't work. What does the "groups" screenshot look like? Can you see all the groups that are supposed to be there (all phpBB groups)?

GauGau
Logged

mels

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 13
    • http://www.everlasting-star.net
PhpBB/Coppermine : fetch usergroup
« Reply #4 on: October 11, 2003, 12:40:40 am »

Quote
If the album properties only show "visitors can upload", then your group settings don't work. What does the "groups" screenshot look like? Can you see all the groups that are supposed to be there (all phpBB groups)?


Yeah so I think we're getting close to something here !!! Because indeed, all my groups are okay and well listed under the "groups" menu, but it's the only place of Coppermine where I can actually see they exist. Nothing in the album properties refers to ANY of them. The only kind of users listed there is "visitor", like in the above capture...
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
PhpBB/Coppermine : fetch usergroup
« Reply #5 on: October 11, 2003, 09:29:27 am »

hm, I think at this point I messed this a little up with my previous posting - the "Visitors can upload pictures" is actually only a yes/no switch and means "users belonging to a group that is allowed to upload at all are allowed to upload into this album [yes/no]".
I got confused because what I missed from your screenshot was the dropdown box "Album can be viewed by [Everybody/me only/members of group 'foo1'/.../members of group 'foo10']" - that's were your groups actually should turn up...

Maybe it'd help if we started yelling Jack's name (he's the bridge file wiz), so he'll come to the rescue on this issue :wink: - I'll ask him to check this thread...

GauGau
Logged

jack

  • VIP
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 279
PhpBB/Coppermine : fetch usergroup
« Reply #6 on: October 12, 2003, 05:20:39 pm »

Sorry guys, work commitments are forcing me to be ~600 miles away from my keyboard till Friday .. I'll look into this as soon as I can.
Logged
Please do not contact me for support directly - instead: post on this board!

mels

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 13
    • http://www.everlasting-star.net
PhpBB/Coppermine : fetch usergroup
« Reply #7 on: October 21, 2003, 04:12:40 pm »

I'm sorry to pester like this but... any news Jack ?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
PhpBB/Coppermine : fetch usergroup
« Reply #8 on: October 21, 2003, 07:07:19 pm »

take a look at the fixes proposed by EZ on http://forum.coppermine-gallery.net/viewtopic.php?p=1834

GauGau
Logged

mels

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 13
    • http://www.everlasting-star.net
PhpBB/Coppermine : fetch usergroup
« Reply #9 on: October 24, 2003, 04:24:03 pm »

Thanks for the plug Gaugau!

Sadly EZ hasn't mentionned this problem I'm getting... I had fixed the logout issue by myself, can you believe that ?  :shock: :)

But it seems I'm the only one who thinks this is a big issue / bug LOL ! Maybe I'm the only one who wants other people who are not admins of my boards to be able to upload pics :D

I'll PM EZ with my question and list the various attemps I made to solve it, we'll see if we can come up with something... :)
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 19 queries.