"bug" report

Events happening in the community are now at Drupal community events on www.drupal.org.
demon326's picture

Hello arkepp, i want to report a "bug".. the module puts the user into the "registerd user group" but the module is not setting that group to be the default one for the user.., i always need to go in to the phpbb ACP to make the group standard for the new users..

Comments

What's the group id of

arkepp's picture

What's the group id of registered users?

Is this an upgraded site or a fresh install?

i'm using this config for

demon326's picture

i'm using this config for mor then a year now.., and i just upgraded the module cause i thought it will fix it..

the group ID is 51 and the users ar getting the right group ID but still i need to put them as the default group in the phpbb acp, you can reproduce the error:

  1. go to the ACP from phpbb 3

  2. go to users an groupes

  3. on the left select group mangement

  4. select the "registered user" group and click on settings

  5. give the group a color lets say yellow or so

5.5 select all existing users and make the group default for them

  1. make a new user and you will see he wont get the color

ps: you already have the bug on youre board: http://img518.imageshack.us/img518/1710/bugab0.jpg

arkepp, i'm looking into the

demon326's picture

arkepp, i'm looking into the phpbb file "function_user.php" and i found this code:

// Now make it the users default group...
    group_set_user_default($user_row['group_id'], array($user_id), false);

but there is alot more code if it comes to the user insert but look into the file around line 261, and i also got a tip from a other module author for a other system: he sayed you need to use the file auth_apach.php in phpbb_root/includes/auth

some quotes of him: "14:34) Diogo: instead of writing all those queries, he should just call the function user_add()"
14:38) Diogo: you would need to include the common.php file from phpBB
if you want another example, just see the auth_e107.php

http://users.telenet.be/demonhunter327/auth_e107.txt

he has it over the user insert and update querys..

i hope you have something with this info.

Good idea, hard to do

arkepp's picture

You're completely glossing over the two questions I asked you, making it difficult to help you. <- EDIT Sorry, I only saw the last email and clicked on the link that brought me straight to this post, which doesn't show the one above. That is a very good bug report :) Thank you

Diogo's idea is good, and I have spent a lot of time trying to do just that, but I don't know how to get it to work in practice.

I'm a bit rusty on the details, it's been well over a year, but if I remember correctly the problem is that phpBB uses a global variable named $db, and phpBB uses a class named db. You can't have it both ways in the same script.

The other phpBB module does something like that, but comes with a ton of code to do so.

mm, i prefer using youre

demon326's picture

mm, i prefer using youre module cause its simple and good :), and i know the bug report is a little bit late but i first checked if it was not a phpbb bug ;).

Diogo zegt:
as he says, it can't be done, because of the $db from phpBB and drupal
Diogo zegt:
it can, but not without some work
demon: zegt:
offcourse..,maybe you can help the guy..
Diogo zegt:
I would if I could... I'm currently working on a script that is very difficult to do, and I am being paid to do it... and that steals all my free time

the most importent thing now is the usergroup bug :)

phpbb

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week