Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Rudolf on May 20, 2007, 03:09:03 PM

Title: Default Membergroup on Registration
Post by: Rudolf on May 20, 2007, 03:09:03 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=819)

*****************************************************
Default Membergroup on Registration - Modification for SMF
version 1.0
© 2007, Rudolf Martincsek
*****************************************************
Allows you to set the default membergroup on registration. Registered users will be part of the selected group instead of the "Regular Membergroups".
You can find the setting in Admin->Registration->Settings tab.
Title: Re: Default Membergroup on Registration
Post by: nitsua on May 20, 2007, 03:17:31 PM
looks like a good mod i might use it!
Title: Re: Default Membergroup on Registration
Post by: babjusi on May 20, 2007, 03:20:09 PM
I am thinking of tring this mod as well
Title: Re: Default Membergroup on Registration
Post by: Gorf8083 on May 21, 2007, 02:11:04 PM
 :D

Thank you oh so much, I have been waiting for this type of mod!  Now I can register new users automatically into my Newletter Group!  Much easier than adding them all when they join.

Thanks a Bunch!

;D
Title: Re: Default Membergroup on Registration
Post by: sharks on June 05, 2007, 08:05:21 AM
Thanks a lot. i really think this is a brilliant effort and modification :D

Thanks again for your work, Rudolf.

cheers!
Title: Re: Default Membergroup on Registration
Post by: kamili34 on July 05, 2007, 05:18:27 PM
Thanks great mod. :P
Title: Re: Default Membergroup on Registration
Post by: Shazammama on October 14, 2007, 01:37:24 AM
I'm looking for something that I can use to make another mailing list, as my membership has now reached a size that's pushing the limits of the server.

Will this mod place new members into a new group automatically, from the day that it's installed?

I really need something that will accomplish that, and leave the current members in the groups that they're currently in.

I've tried creating a new group called "members2".. but found that each person needs to be moved manually, one by one.

I hope that someone will have an answer for my dilemma.

Thanks for any & all help and/or suggestions you may have.
Title: Re: Default Membergroup on Registration
Post by: Rudolf on October 14, 2007, 05:44:19 AM
This mod affects only new registrations, existing members are not changed.
Title: Re: Default Membergroup on Registration
Post by: Shazammama on October 14, 2007, 06:45:05 AM
Thank you so much... that's just what I needed.. and what I needed to know!
Title: Re: Default Membergroup on Registration
Post by: spaZzZilla on December 19, 2007, 12:28:26 AM
I am not sure if this is the right place for this question...please let me know.

But what I am working in is a script that will place new members into groups based on their email domain.  I have been looking at your mod and was wondering where exactly the information is inserted into the db.  Is it in registration.php, subs-members.php, or manage-registration.php?

I am only concerned right now with new registrants so I am leaning toward registration.php.

Thanks for any help. 

Great mod as well.  :D
Title: Re: Default Membergroup on Registration
Post by: Rudolf on December 19, 2007, 03:25:46 AM
It's Subs-Members.php the function registerMember()
Title: Re: Default Membergroup on Registration
Post by: spaZzZilla on December 19, 2007, 06:17:39 PM
Thanks alot  :)
Title: Re: Default Membergroup on Registration
Post by: edi67 on January 30, 2008, 11:22:30 AM
nice one work like a charm
Title: Re: Default Membergroup on Registration
Post by: eleven0 on February 17, 2008, 06:39:56 AM
Nice modification, Thanks.
Title: Re: Default Membergroup on Registration
Post by: pruffin on March 02, 2008, 09:32:15 PM
Tried installing mod on SMF 114.  Problems seeing new mod in Admin -> Registration -> Settings tab.  Nothing appears to set default membergroup.  System shows mod installed with no problems.  Any help?
Title: Re: Default Membergroup on Registration
Post by: ranKoto on March 10, 2008, 06:30:45 AM
Quote from: pruffin on March 02, 2008, 09:32:15 PM<br />Tried installing mod on SMF 114.  Problems seeing new mod in Admin -> Registration -> Settings tab.  Nothing appears to set default membergroup.  System shows mod installed with no problems.  Any help?<br /><br />

try the version_emulate trick by adding ;version_emulate=1.1.3 to the end of the URL when they go to the package manager

it works for me
Title: Re: Default Membergroup on Registration
Post by: LT07 on April 16, 2008, 11:01:44 PM
This is EXACTLY what I am looking for,
Pleeeeeeeeeeeeeeese can you update this script to work on 2.0 beta 3
Thanks
Title: Re: Default Membergroup on Registration
Post by: foxdie on April 20, 2008, 07:17:44 PM
i have a problem, i need to use the no posting lisks mod for new users until they reach a certain level of msgs in smf

someone was saying they use this mod along with no link posting mod
so when someone registers theyre automaticly in the membergroup who are not allowed to post links.

the problem is when i chose to have the option "This group is based off posts:" in the membergoups section settings, it cannot be selected from the drop down menu in Registration > Settings

how can i make this work?
Title: Re: Default Membergroup on Registration
Post by: foxdie on April 21, 2008, 10:32:40 PM
could someone help?
Title: Re: Default Membergroup on Registration
Post by: foxdie on April 25, 2008, 01:30:53 PM
ok...theres a serious problem with this forum

i posted for help on 2 different topics and none have been reply

and its been weeks for the other topic, 3 days for this topic

if youre not gonna help just say it so i wont waste my time on this forum, or even on this mod!

ill just uninstall the mod and look for something better...cause obviously no ones gonna help me with this!


have fun with whatever youre doing
Title: Re: Default Membergroup on Registration
Post by: Rudolf on April 25, 2008, 01:38:09 PM
Quote from: foxdie on April 25, 2008, 01:30:53 PM
have fun with whatever youre doing

Real life is what I'm doing. And yes, I'm trying to have fun with it, but it's difficult.
As for your question, post based groups can't be set as default because, well, they are based on posts. A post based group is not something you set.
Title: Re: Default Membergroup on Registration
Post by: foxdie on April 26, 2008, 01:19:58 AM
so we cant make a user not post links until he/she reaches a certain post count?

is it possible anyway?
Title: Re: Default Membergroup on Registration
Post by: Rudolf on April 26, 2008, 06:00:48 AM
You can set up a user group that denies the permission to post links and set it as default.
For this you would need to activate the "Enable the option to deny permissions" in the permission settings.
Title: Re: Default Membergroup on Registration
Post by: Marcus Forsberg on April 26, 2008, 08:54:51 AM
Swedish translation:

//-Default Membergroup on Registration MOD- START
$txt['admin_register_group1'] = 'Sekondär medlemsgrupp;
$txt['admin_register_group1_desc'] = 'Den sekondära medlemsgruppen nya medlemar kommer tillhöra.';
//-Default Membergroup on Registration MOD- END
Title: Re: Default Membergroup on Registration
Post by: foxdie on April 27, 2008, 09:24:17 PM
Quote from: Rudolf on April 26, 2008, 06:00:48 AM
You can set up a user group that denies the permission to post links and set it as default.
For this you would need to activate the "Enable the option to deny permissions" in the permission settings.

it didnt work the way i needed...it blocks the new registered members from posting links (which theyre part of the new membergroup with denied permission on registration) and after a certain post count, member becomes part of the next level membergroup, like i wanted to. the problem is, after reaching the next level membergroup, the member is also still in the membergroup with denied permission. so the next level membergroup becomes useless

this is a lil complicated, i guess smf just needs the option to select which membergroups(with "off posts" option) a new member will be in on registration
Title: Re: Default Membergroup on Registration
Post by: edi67 on April 29, 2008, 09:23:22 AM
Could be done for smf 2.0 ?

thx
Title: Re: Default Membergroup on Registration
Post by: City Builder on May 22, 2008, 02:37:02 PM
Before i try it and mess up our forum, does anybody know if this works properly with 1.1.5?
Title: Re: Default Membergroup on Registration
Post by: Verily on August 20, 2008, 12:46:56 AM
Quote from: City Builder on May 22, 2008, 02:37:02 PM
Before i try it and mess up our forum, does anybody know if this works properly with 1.1.5?
Seems to be working fine for me.  Just do as they mentioned on the previous page and set your package manager to emulate 1.1.3 first, though, just in case.
Title: Re: Default Membergroup on Registration
Post by: Marcus Forsberg on August 30, 2008, 04:46:47 AM
Will this work whit 2.x?

And if not, will it do in the future?
Title: Re: Default Membergroup on Registration
Post by: Trinny on October 28, 2008, 08:09:02 PM
Quote from: Nascar on August 30, 2008, 04:46:47 AM
Will this work whit 2.x?

And if not, will it do in the future?
Big fat bump.

I had this mod installed on my forum when I first set it up. I'm now using 2.0 and this mod is sorely missed.
Title: Re: Default Membergroup on Registration
Post by: Rudolf on November 02, 2008, 07:45:00 AM
Yes, I will upgrade the mod some time in the future.
Title: Re: Default Membergroup on Registration
Post by: Vincent Volmer on February 06, 2009, 03:29:50 AM
Quote from: Rudolf on November 02, 2008, 07:45:00 AM
Yes, I will upgrade the mod some time in the future.

Oke!  :D Would be great!
thank you!

Vincent

Title: Re: Default Membergroup on Registration
Post by: drhamad on February 10, 2009, 11:44:10 AM
Any update on this, Rudolf?  I tried to update it myself, thought I had it, but ran into some problem I couldn't figure out.  So I'm reliant on you.

Thanks!
Title: Re: Default Membergroup on Registration
Post by: bburg5 on February 22, 2009, 02:05:12 PM
I do not mean to be a noob, but when I use the drop down menu I only get "Global Moderator" option and no others. I also have several membergroups set up. Also what is the secondary member used for?

Thanks
Title: Re: Default Membergroup on Registration
Post by: bburg5 on March 04, 2009, 05:09:48 PM
Does anyone have a solution?

Thanks
Title: Re: Default Membergroup on Registration
Post by: drhamad on March 04, 2009, 05:18:38 PM
Secondary membergroup is used for... secondary (additional) membergroups ... I'm not sure what else to say about that?
Title: Re: Default Membergroup on Registration
Post by: bburg5 on March 04, 2009, 05:28:10 PM
Quote from: drhamad on March 04, 2009, 05:18:38 PM
Secondary membergroup is used for... secondary (additional) membergroups ... I'm not sure what else to say about that?

So I can not put a member into a specific group with out setting post limits. I want to have a member put in a group on registraion, then be moved based on monetary donations.

Thanks
Title: Re: Default Membergroup on Registration
Post by: drhamad on March 05, 2009, 01:31:41 PM
Quote from: bburg5 on March 04, 2009, 05:28:10 PM
Quote from: drhamad on March 04, 2009, 05:18:38 PM
Secondary membergroup is used for... secondary (additional) membergroups ... I'm not sure what else to say about that?

So I can not put a member into a specific group with out setting post limits. I want to have a member put in a group on registraion, then be moved based on monetary donations.

Thanks

Sure, this mod will let you do that - at least, it'll let you do the default on registration part.  Up to you beyond that.
Title: Re: Default Membergroup on Registration
Post by: bburg5 on March 05, 2009, 03:10:44 PM
Can you change who the default is? Only options to choose from are "No Primary Membergroup" or "Global Moderator"

Thanks
Title: Re: Default Membergroup on Registration
Post by: bburg5 on March 18, 2009, 10:23:28 PM
still wandering if their is a way to get the default membergroup to be something other than the above post?

Title: Re: Default Membergroup on Registration
Post by: drhamad on March 19, 2009, 03:50:47 PM
If the mod is properly installed (in 1.1.x) it should give you the option of any of your groups...
Title: Re: Default Membergroup on Registration
Post by: bburg5 on March 19, 2009, 04:14:50 PM
I had no errors while applying mod. That is why I do not understand.

Thanks
Title: Re: Default Membergroup on Registration
Post by: bburg5 on March 23, 2009, 10:28:54 PM
Still having same issue. Any help would be great..

Thanks


EDIT- I was able to get it to work correctly on the main forum, but the forum that is sharing the main forums db will not show the additional membergroups.
Title: Re: Default Membergroup on Registration
Post by: bburg5 on March 26, 2009, 11:08:06 PM
Still needing help as it is difficult keeping up with changing membergroups for this forum.

Thanks
Title: Re: Default Membergroup on Registration
Post by: drhamad on March 26, 2009, 11:17:40 PM
If you can't figure it out and you've gone through the installation line-by-line, just use a forced version.  If you go into Registration.php you can find the array the inputs details of a registratoin and force a usergroup number into it.
Title: Re: Default Membergroup on Registration
Post by: bburg5 on March 27, 2009, 12:55:49 PM
Great! I will look into this today

thanks
Title: Re: Default Membergroup on Registration
Post by: bburg5 on March 28, 2009, 12:32:31 AM
I checked and tried several code changes in the manageregistration.php file, but no success. can you advise further as I really would like to get this to work.
Is having the databases shared causing the issue?

Thanks
Title: Re: Default Membergroup on Registration
Post by: GreenX on April 05, 2009, 10:11:47 AM
Default Membergroup on Registration - Installation Instructions for 2.0 RC1

Is it safe to use since it can be selected from the drop down box in the mod section.

Thanks
Title: Re: Default Membergroup on Registration
Post by: drhamad on April 05, 2009, 11:54:11 AM
Where do you see install instructions for 2.0?  This mod is compatible with 1.1 only.
Title: Re: Default Membergroup on Registration
Post by: bburg5 on April 05, 2009, 10:36:25 PM
Quote from: drhamad on March 26, 2009, 11:17:40 PM
If you can't figure it out and you've gone through the installation line-by-line, just use a forced version.  If you go into Registration.php you can find the array the inputs details of a registratoin and force a usergroup number into it.
Quote from: bburg5 on March 28, 2009, 12:32:31 AM
I checked and tried several code changes in the manageregistration.php file, but no success. can you advise further as I really would like to get this to work.
Is having the databases shared causing the issue?

Thanks

I still can not get the second forum to register members into membergroup upon reg.

Thanks
Title: Re: Default Membergroup on Registration
Post by: drhamad on April 06, 2009, 12:12:39 PM
In Subs-Members.php, look for:
'additional_groups' =>

Sorry, I told you the wrong file before.
Title: Re: Default Membergroup on Registration
Post by: bburg5 on April 07, 2009, 09:52:59 AM
this is the code I have for the mod....

//-Default Membergroup on Registration MOD- Start
if (isset($regOptions['additionalGroup']) && $regOptions['additionalGroup'] != 1 && !in_array($regOptions['additionalGroup'], $unassignableGroups))
$regOptions['register_vars']['additionalGroups'] = $regOptions['additionalGroup'];
//-Default Membergroup on Registration MOD- End


where would I insert..

thanks
Title: Re: Default Membergroup on Registration
Post by: drhamad on April 07, 2009, 09:58:39 AM
No, what I'm telling you has nothing to do with the mod.  This is if you want to manually force the group.  Give me a copy of your Subs-Members.php and I'll take a look if you want me to.
Title: Re: Default Membergroup on Registration
Post by: bburg5 on April 07, 2009, 10:03:32 AM
Here it is- I try to look into most of my issues before asking, but some I have no clue about....

Thanks
Title: Re: Default Membergroup on Registration
Post by: drhamad on April 07, 2009, 02:25:12 PM
Quote from: bburg5 on April 07, 2009, 10:03:32 AM
Here it is- I try to look into most of my issues before asking, but some I have no clue about....

Thanks

OK my apologies, my fault.  My instructions were based on 2.0, so I didn't realize the name of additionalGroups had changed.

In your code, if you want it to be an additional group, find:
'additionalGroups' => "''",

Change it to:
'additionalGroups' => 1,

Where 1 should be changed to whatever the group # is you want.

If you want it to be a main group, I'll have to look through the code a bit more.  It doesn't seem to be defined right there along with the rest of the RegOptions.
Title: Re: Default Membergroup on Registration
Post by: bburg5 on April 07, 2009, 11:39:35 PM
Quote

OK my apologies, my fault.  My instructions were based on 2.0, so I didn't realize the name of additionalGroups had changed.

No Problem!!!

I unfortunatley would like it to be the main group. I do not mind adding their secondary group when they achieve it.
Thanks agin for checking into to this.....
Title: Re: Default Membergroup on Registration
Post by: bburg5 on April 12, 2009, 08:31:17 PM
QuoteIf you want it to be a main group, I'll have to look through the code a bit more.  It doesn't seem to be defined right there along with the rest of the RegOptions.

drhamad-

Were you able to look into this any further? I have been unsuccessful in find this either...

Thanks
Title: Re: Default Membergroup on Registration
Post by: bburg5 on April 20, 2009, 06:54:36 PM
Were you able to look into this yet :D

Thanks
Title: Re: Default Membergroup on Registration
Post by: remi_naija on June 17, 2009, 08:05:17 AM
Where do I find the settings for this mod?
Title: Re: Default Membergroup on Registration
Post by: andsim on September 01, 2009, 12:22:38 PM
i have same problem on 2.0 rc1.2
it wont shoiw up on members > registration > Setting
how i get it up?
Title: Re: Default Membergroup on Registration
Post by: tacticalraccoon on December 12, 2009, 08:59:13 AM
I've installed this and reinstalled it, tried changing the emulator version, everything, and it still won't show up. Is there something else I need to do? I also manually chmoded all the required files, still nothing happened though. It won't show up under Admin -> Registration -> Settings.
Title: Re: Default Membergroup on Registration
Post by: Bocker on March 27, 2011, 02:18:57 PM
Hello, are you planning in the near future arrangements for SMF version 2.0 RC5?
Title: Re: Default Membergroup on Registration
Post by: Spoogs on March 27, 2011, 05:13:34 PM
it's already compatible
Title: Re: Default Membergroup on Registration
Post by: Bigjoey on April 04, 2011, 12:02:04 AM
O, added that there are some things matter. To find and edit, but when there are no lines in which to add other lines is not good
   // Generate a sample registration image.
It is used for installing the RC5, but if it works, I doubt.
Line
   // Generate a sample registration image.
is found either in the original file ManageRegistration.php
And if it works, I do not know where to add
Title: Re: Default Membergroup on Registration
Post by: Spoogs on April 04, 2011, 12:17:23 AM
My apologies I thought i linked to the 2.0 version in my last post http://custom.simplemachines.org/mods/index.php?mod=1804
Title: Re: Default Membergroup on Registration
Post by: MaXiForum.cz on April 05, 2011, 03:04:10 AM
Spoogs this modification make not the same thing ... ;)
Title: Re: Default Membergroup on Registration
Post by: bburg5 on September 20, 2011, 05:22:06 PM
I have tried in the past to get this to work on two different boards sharing the same data base.

Spoogs- would you be interested in looking at my file and see why I only get (no primary membergroups) & (Global Moderator) as my only two options for default membergroup placing?

Thanks.
Title: Re: Default Membergroup on Registration
Post by: pirc-bw on November 08, 2013, 11:37:03 PM
It's telling me the following...
Default membergroup
The ID of the membergroup that all new members should be assigned to upon registration.
What is the ID of the membergroup?
Title: Re: Default Membergroup on Registration
Post by: SoftwareSamurai on November 09, 2013, 08:57:50 AM
Quote from: pirc-bw on November 08, 2013, 11:37:03 PM
What is the ID of the membergroup?
Perhaps you could install this mod (http://custom.simplemachines.org/mods/index.php?mod=2899) and then go to Admin->Members->Membergroups->Edit Membergroups?

Alternatively, you could also go to Admin->Members->Membergroups->Edit Membergroups, click on a membergroup name, and then look carefully at the URL.
Title: Re: Default Membergroup on Registration
Post by: pirc-bw on November 10, 2013, 07:17:42 PM
Now why didn't I think of that... :)
Thanks I will give it a try.
Title: Re: Default Membergroup on Registration
Post by: Flux Designs on April 10, 2014, 08:39:04 PM
This mod works with 2.0.7 Great companion for http://custom.simplemachines.org/mods/index.php?mod=1804 as it requires the member id to work properly this linked mod also works on 2.0.7.