Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Code to add user to group

Quote Reply
Code to add user to group
I noticed that when my AutoLogin plugin adds users to GForum it doesn't add them as a "registered user" to the UserGroup table. So even though their User record says they are registered they behave as if they are not.

I assume that I need to add a bit of code that adds new users to the UserGroup table as registered, but I can't figure it out. If this is indeed the case, can someone share what they think this code should be?

hint:
GForum::Group::add_user({ group_id => '2', user_username => $username }); does not work.

If I am on the wrong track as far as "registering" new users I would appreciate a correction Wink
Michael Coyne
seaturtle.org
Subject Author Views Date
Thread Code to add user to group mcoyne 2495 Jun 4, 2002, 12:57 PM
Thread Re: [mcoyne] Code to add user to group
mcoyne 2429 Jun 4, 2002, 7:49 PM
Post Re: [mcoyne] Code to add user to group
mcoyne 2416 Jun 5, 2002, 9:59 AM