FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Adding users to a group using a script
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Adding users to a group using a script [message #30191] Fri, 10 February 2006 11:44 Go to previous message
djechelon is currently offline  djechelon   Italy
Messages: 46
Registered: July 2005
Karma:
Member
Hi,
I need to let users add themselves to a group using an external script made by me. The user inserts username/password and a secret code.
This group lets the user access to some forums that are normally visibile but not readable

If everything is OK I run the following SQL Query:

$gid = 64;
$group_opts = 312975;
$sql = "INSERT INTO Forum_group_members (user_id , group_id , group_members_opt) VALUES ('".$uid."', '".$gid."', '".$group_opts."');";

$uid is taken from database and is obviously the user's ID.

When I go to Groups Administration I see the user listed with all permissions correctly set, but he can't still access the restricted forums!!!

Do I have to run other queries?
Thank you in advance.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Serious issue with mailing list - thread breaks when a message is modified
Next Topic: How to fix error when can't accesss admin control panel?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 19:36:56 GMT 2024

Total time taken to generate the page: 0.04095 seconds