Posted by demon326 on March 11, 2008 at 7:28pm
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..
Categories: registerd user group
Comments
What's the group id of
What's the group id of registered users?
Is this an upgraded site or a fresh install?
i'm using this config for
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:
go to the ACP from phpbb 3
go to users an groupes
on the left select group mangement
select the "registered user" group and click on settings
give the group a color lets say yellow or so
5.5 select all existing users and make the group default for them
ps: you already have the bug on youre board: http://img518.imageshack.us/img518/1710/bugab0.jpg
arkepp, i'm looking into the
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
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
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
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 ;).
the most importent thing now is the usergroup bug :)