Membergroup On Registration

Started by codenaught, September 30, 2006, 09:44:18 PM

Previous topic - Next topic

codenaught

Link to Mod

This mod will let members of your forum pick a membergroup when they register to the forum. The membergroups that they are allowed to register to are configured by the admin in:
Admin / Registration / Settings / Groups that members can register to upon registration

Note: Membergroups with any of the following permissions are not selectable to be allowed by the admin due to security risks:

  • Administrate forum and database
  • Manage boards and categories
  • Manage attachments and avatars
  • Manage smileys
  • Edit news
  • Moderate forum members
  • Manage and assign membergroups
  • Manage permissions
  • Manage ban list
  • Send a forum email to members

    Although the checking is done when the group is selected from the admin panel, so if the permissions are changed afterwards a group with one of those permisions can still be picked if they are on the list for groups that are selectable on registration, so be careful.
Dev Consultant
Former SMF Doc Coordinator

SleePy

Downloaded... Installed... Tested... Worked..

Works Like A charm..
Thanks akabugeyes...

Now my MultiCommunity can be better organized..

Just a Suggestion to those who use this.. Create a Temp Group for each of the groups. Then you can move them over to the correct group after you allow them into it.. ;D
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Jim R

First of all, great job.  It's something I've asked about lately.

Questions:

1)  Is the group the User joins a primary or a secondary?

I ask this because I'm using the PayPal mod.  If User chooses a publicly available group, how it interacts with how PayPal ties User to a group is important.  If it's a secondary or additional group, it's almost perfect.

Almost...   :)

2)  Can this option be moved to allow User to make their choice on their Profile (Account Related Settings)?

My needs for this option only apply to those who are motivated to set up their Profile. 


Question 1 is a bigger issue.  Question 2 is just an issue of preference, and I'll likely play around with it and report any findings.  All in all a tremendous effort and very helpful.



codenaught

Number 2 I am already planning to do in the future. :)

As for number 1, it is the primary group, but I can provide a small tweak to make it the post count based group instead.

Thanks for the comments Jim R and SleePy. :)
Dev Consultant
Former SMF Doc Coordinator

Jim R

Post count group based?  Is there something that can be done simply to make it a secondary/additional group, like the options the Admin has when looking at a User's profile?


codenaught

Oops, I'm sorry. I meant to say additional membergroup, not post count based group.  :-X
Dev Consultant
Former SMF Doc Coordinator

Jim R

Oh...thank you.   :)

Will let us--me--know when you get that done?   :P

codenaught

Have you applied this mod yet? If you haven't I can give you a package that you can install that will work as the member's additional group rather than their primary group. If you have installed this mod already I can give you find and replace instructions to do this.
Dev Consultant
Former SMF Doc Coordinator

Jim R

I've installed it, but either is fine.  Whichever is easier for you.  I haven't done much with it so uninstalling and reinstalling is no big deal.


Pedja

I simply need a option for users to request memebershim in some of the user groups. I mean not to add himself to the group but to request group moderator to add him.

USer should be able to request several user groups.

Does ths mod provide such option?

eckostylez

Is there any reason why I can't see this mod in action, although it's been installed sucessfully? (Admin > Registration > Settings)

All I have is:

QuoteMethod of registration employed for new members (?):     
Notify administrators when a new member joins:    
Send welcome email to new members (?):    
Required strength for user passwords (?):    
Disable the use of the visual verification on registration:    
Age below which to apply registration restrictions (?):
(Set to 0 to disable)
   
Action to take when a user below minimum age registers (?):    
Postal address to which approval forms should be sent (?):
Only applies if age restriction is in place
   
Fax number to which approval forms should be faxed (?):
Only applies if age restriction is in place
   
Contact number for parents to contact with age restriction queries (?):
Only applies if age restriction is in place

Nothing about membergroups though    

codenaught

eckostylez, are you using a theme other than default? If so, does it use its own Register.template.php? If so you will need to apply the code for the register template for your theme manually.
Dev Consultant
Former SMF Doc Coordinator

eckostylez

I'm only using the default themes given and the babylon one that comes with SMF 1.1 RC3

codenaught

Did you get a failure notice next to that file when you installed it?
Dev Consultant
Former SMF Doc Coordinator

eckostylez

Nope it was completely successful. Should I uninstall and reinstall?

Jim R

Bugeyes,

If I may bother you a second, did you have the changes to make these Membergroup registrations secondary/additional groups instead of primary groups?

Thanks.

eckostylez

Well, now when I try to uninstall it, I get the Modification Parse error. It seems to be happening with any type of mod I try to install.

Any suggestions?

codenaught

eckostylez, I'm not sure why it won't uninstall properly. If you would like, I can apply the changes needed for the setting to be there for you. You would just need to send me your Themes/default/Registration.template.php file to my email address at [email protected]

Quote from: Jim R on October 02, 2006, 09:19:30 PM
Bugeyes,

If I may bother you a second, did you have the changes to make these Membergroup registrations secondary/additional groups instead of primary groups?

Thanks.

Nope, sorry not yet. I plan to introduce the option for it to be secondary or primary in an updated version of the mod in the near future.
Dev Consultant
Former SMF Doc Coordinator

codenaught

Version 1.1 released.

+ Added option for admins to decide if the group members register to is their primary or secondary group. (Register.php, ManageRegistration.php, Register.template.php, Modifications.english.php)

If you are using the original release of the mod, just uninstall it and apply this version.
Dev Consultant
Former SMF Doc Coordinator

Jim R

#19
I got this error after install:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/####/public_html/smf/Sources/Register.php on line 318


Advertisement: