Module: Register To Group
Posted by Thomas Seifert
All files from this thread
File Name | File Size | Posted by | Date | ||
---|---|---|---|---|---|
register_to_group-v1.0.0.zip | 3 KB | open | download | Thomas Seifert | 10/11/2009 | Read message |
register_to_group-v1.0.0.tar.gz | 2 KB | open | download | Thomas Seifert | 10/11/2009 | Read message |
register_to_group-v1.0.0.tar.bz2 | 2 KB | open | download | Thomas Seifert | 10/11/2009 | Read message |
Module: Register To Group July 21, 2009 07:30PM |
Admin Registered: 21 years ago Posts: 9,240 |
Due to popular demand ...
Attached is a simple module which allows the administrator to define one or multiple groups where users should be added to on registration and the status with which they should be added to the group.
This module works directly on registration. It doesn't take any confirmation/activation status in account.
Have fun with it :-).
v1.0 09-10-2009 - added bugfixes from waldhol below
Thomas Seifert
Edited 1 time(s). Last edit at 10/09/2009 04:10PM by Thomas Seifert.
Attached is a simple module which allows the administrator to define one or multiple groups where users should be added to on registration and the status with which they should be added to the group.
This module works directly on registration. It doesn't take any confirmation/activation status in account.
Have fun with it :-).
v1.0 09-10-2009 - added bugfixes from waldhol below
Thomas Seifert
Edited 1 time(s). Last edit at 10/09/2009 04:10PM by Thomas Seifert.
Re: Module: Register To Group August 31, 2009 03:55AM |
Registered: 14 years ago Posts: 6 |
Thanks for the mod, that's what I was looking for.
Unfortunately it's not working, because the name of the second select_tag is wrong.
Copy+Paste error ;-)
This is wrong:
$frm->addrow("Add A Group", $frm->select_tag("new_group", $arr).$frm->select_tag("group_perm[$group_id]", $group_options, 0));
This is correct:
$frm->addrow("Add A Group", $frm->select_tag("new_group", $arr).$frm->select_tag("new_group_permission", $group_options, 0));
Additionally the ", 0" should either be omitted or replaced by PHORUM_USER_GROUP_UNAPPROVED.
Using the numeric value instead of named constants is not safe.
Holger
Unfortunately it's not working, because the name of the second select_tag is wrong.
Copy+Paste error ;-)
This is wrong:
$frm->addrow("Add A Group", $frm->select_tag("new_group", $arr).$frm->select_tag("group_perm[$group_id]", $group_options, 0));
This is correct:
$frm->addrow("Add A Group", $frm->select_tag("new_group", $arr).$frm->select_tag("new_group_permission", $group_options, 0));
Additionally the ", 0" should either be omitted or replaced by PHORUM_USER_GROUP_UNAPPROVED.
Using the numeric value instead of named constants is not safe.
Holger
Re: Module: Register To Group October 11, 2009 09:30AM |
Admin Registered: 21 years ago Posts: 9,240 |
Re: Module: Register To Group December 09, 2016 03:14AM |
Registered: 7 years ago Posts: 28 |
Re: Module: Register To Group December 09, 2016 04:06AM |
Admin Registered: 18 years ago Posts: 744 |
Hi Curtis,
I don't use this modules but I think this combination works for you.
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
I don't use this modules but I think this combination works for you.
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Module: Register To Group December 15, 2016 02:58AM |
Registered: 7 years ago Posts: 28 |
Sorry, only registered users may post in this forum.