Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: codenaught on September 30, 2006, 09:44:18 PM

Title: Membergroup On Registration
Post by: codenaught on September 30, 2006, 09:44:18 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=485)

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:

Title: Re: Membergroup On Registration
Post by: SleePy on September 30, 2006, 10:46:14 PM
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
Title: Re: Membergroup On Registration
Post by: Jim R on October 01, 2006, 04:17:08 PM
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.


Title: Re: Membergroup On Registration
Post by: codenaught on October 01, 2006, 04:41:38 PM
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. :)
Title: Re: Membergroup On Registration
Post by: Jim R on October 01, 2006, 06:10:38 PM
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?

Title: Re: Membergroup On Registration
Post by: codenaught on October 01, 2006, 06:24:08 PM
Oops, I'm sorry. I meant to say additional membergroup, not post count based group.  :-X
Title: Re: Membergroup On Registration
Post by: Jim R on October 01, 2006, 06:28:11 PM
Oh...thank you.   :)

Will let us--me--know when you get that done?   :P
Title: Re: Membergroup On Registration
Post by: codenaught on October 01, 2006, 07:12:11 PM
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.
Title: Re: Membergroup On Registration
Post by: Jim R on October 01, 2006, 07:14:05 PM
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.

Title: Re: Membergroup On Registration
Post by: Pedja on October 02, 2006, 01:01:44 AM
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?
Title: Re: Membergroup On Registration
Post by: eckostylez on October 02, 2006, 08:43:23 PM
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    
Title: Re: Membergroup On Registration
Post by: codenaught on October 02, 2006, 09:00:56 PM
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.
Title: Re: Membergroup On Registration
Post by: eckostylez on October 02, 2006, 09:12:47 PM
I'm only using the default themes given and the babylon one that comes with SMF 1.1 RC3
Title: Re: Membergroup On Registration
Post by: codenaught on October 02, 2006, 09:16:58 PM
Did you get a failure notice next to that file when you installed it?
Title: Re: Membergroup On Registration
Post by: eckostylez on October 02, 2006, 09:17:28 PM
Nope it was completely successful. Should I uninstall and reinstall?
Title: Re: Membergroup On Registration
Post by: 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.
Title: Re: Membergroup On Registration
Post by: eckostylez on October 03, 2006, 12:18:14 AM
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?
Title: Re: Membergroup On Registration
Post by: codenaught on October 03, 2006, 04:56:04 PM
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.
Title: Re: Membergroup On Registration
Post by: codenaught on October 09, 2006, 02:41:31 PM
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.
Title: Re: Membergroup On Registration
Post by: Jim R on October 09, 2006, 02:57:29 PM
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

Title: Re: Membergroup On Registration
Post by: Jim R on October 09, 2006, 03:02:25 PM
And installing I got:

1.     Execute Modification     ./Sources/ManageRegistration.php     Test successful
2.    Execute Modification    ./Sources/Subs-Members.php    Test successful
3.    Execute Modification    ./Sources/Register.php    Test successful
4.    Execute Modification    ./Themes/default/Register.template.php    Test failed
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
Title: Re: Membergroup On Registration
Post by: codenaught on October 09, 2006, 03:17:20 PM
Quote from: Jim R on October 09, 2006, 02:57:29 PM
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


I think I have this error fixed. On a fresh install this wouldn't necessarily cause problems but if you have other mods that edit Register.php, it could. Please try downloading the updated "Group on Registration-1.1.tar.gz" package again.

Quote from: Jim R on October 09, 2006, 03:02:25 PM
And installing I got:

1.     Execute Modification     ./Sources/ManageRegistration.php     Test successful
2.    Execute Modification    ./Sources/Subs-Members.php    Test successful
3.    Execute Modification    ./Sources/Register.php    Test successful
4.    Execute Modification    ./Themes/default/Register.template.php    Test failed
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
Hmmm, not sure why it is failing. Do you have any other mods installed that edit Register.template.php? If not, I would recommend uploading a fresh copy of Register.template to Themes/default/ and trying the install again.
Title: Re: Membergroup On Registration
Post by: Jim R on October 09, 2006, 03:58:05 PM
I got rid of the parse error, but the install error is still there.    There doesn't appear to be a way to control if users can choose a primary or secondary group. 

Also, upon registering, the option to choose a group shows up twice.

As I uninstall it, it's not wiping out the Admin option to pick which group to make available upon registration.

Title: Re: Membergroup On Registration
Post by: codenaught on October 09, 2006, 04:09:15 PM
It sounds like when you uninstalled the mod there was a failure with the Register.template.php file (or you somehow installed the new version without uninstalling the original one). I would advise uninstalling the mod, reuploading a fresh Register.template.php file (as long as you have no other mods that edit it) and reinstall the mod.

The option to pick Primary / Secondary group can be found in Admin / Registration / Settings. Because it looks like your Register.template.php file failed to install, it isn't showing up.
Title: Re: Membergroup On Registration
Post by: Jim R on October 09, 2006, 04:15:35 PM
Yep...I had gotten that far.  It didn't uninstall properly, so I reinstalled 1.0, uninstalled again, and it went through.  Then I installed 1.1 again, and now I get all the options at my disposal as they should.  The problem I still have is when a User registers, it asks User to join a group twice.

What would I look for to make sure code isn't being duplicated?

Title: Re: Membergroup On Registration
Post by: codenaught on October 09, 2006, 04:33:24 PM
In Register.template.php:

You should see this code twice:

if(!isset($context['no_avail_groups']))
{
echo '
<tr>
<td width="40%">
<b>', $txt['pick_group'], '</b>
</td>
<td>
<select name="', $context['is_primary_group'] ? 'ID_GROUP' : 'ID_ADDITIONAL','" tabindex="', $context['tabindex']++, '">';
foreach($context['membergroups'] as $id => $name)
{
echo '
<option value="', $id, '">', $name,'</option>';
}

echo ' </select>
</td>
</tr>';
}


Remove one occurrence of it and leave the other one there.
Title: Re: Membergroup On Registration
Post by: Jim R on October 09, 2006, 04:46:26 PM
Very nice...thank you very much.

And now for you next trick...  8)

Earlier above you responded to one my questions saying you were working on that:  The question is will there be a way to make it so this option is placed JUST on the users profile?

What is there is great and gets what is needed.  I have the Paid Subscriptions mod in place, which is not active yet for regular users (November).

As it stands, anyone who registers can choose a secondary group.  That's OK, but I'd rather make it so only those who Subscribe can do it by making that change in their Profile / Account Settings.  These Subscribers will able to have access to their Profile, where those just registered can't.  Subscribers will also have access to additional fields, filling them out for College Coaches ONLY to see.

Follow?

In other words, I asked earlier if this would ever be an option where secondary groups are chosen within the profile.  You said you were getting to it.  Are you still working on that?

This is great so far.  I'm very pleased...getting close to nirvana.

Thanks for your time.
Title: Re: Membergroup On Registration
Post by: henmar on October 11, 2006, 09:26:04 AM
How can i make selection of member group during registration a mandatory, Otherwise during registration if user doesn't select membergroup ,he placed automatically to newbie.
Title: Re: Membergroup On Registration
Post by: MoreBloodWine on October 24, 2006, 05:07:27 PM
Quote from: Jim R on October 01, 2006, 04:17:08 PM
Questions:

2)  Can this option be moved to allow User to make their choice on their Profile (Account Related Settings)?
Quote from: akabugeyes on October 01, 2006, 04:41:38 PM
Number 2 I am already planning to do in the future. :)
First I'd like to address the above by saying not a bad idea but I personally wouldnt like this because my membergroups are game faction based and I dont want em switchin in their profile... maybe if you do do this you could host the version as is now without and one with the mod... for those that want to choose... or maybe add a new permission that admins can set that will allow or disallow the switchin of groups in the users profile... that would least solve the problem of not wanting to host two versions hehe...

---------------------

Anyway to get to my point of why I came here... how can I set it so that when a user doesnt select a group they are unable to complete the  registration process... I tested this by registerin to my own forum and I didnt select a group and I was still able to register... hope this makes sense... but basically I dont want people to be able to register on my forum if they dont select a group... think you could also make that an option in your next update... so admins can set to either allow or disalow a person to complete the registration process without selectin a group...

---------------------

So maybe if your willing when you do your next update you could add options that allows an admin to set either of the following permissions...

1. User can change membergroups from profile Y / N
2. User can complete registration without selecting a membergroup Y / N
Title: Re: Membergroup On Registration
Post by: MoreBloodWine on October 29, 2006, 10:49:36 AM
Sorry for the bump but no ones replied for 5 days heh...
Title: Re: Membergroup On Registration
Post by: codenaught on October 29, 2006, 11:31:21 AM
MoreBloodWine, I plan to include an option in an updated version of the mod, but in the meantime if you don't want to allow members to register and picking "no special membergroup" you can find in Sources/Register.php:

$context['page_title'] = $txt[97];

And add after:

// Assuming this is running an old version of the mod.
if (!isset($modSettings['groups_allowed_change']) && isset($context['membergroups'][0]))
{
unset($context['membergroups'][0]);
}


I did the code like that so when it comes time to upgrade the mod, you will be able to uninstall it still even after those changes were made. ;)
Title: Re: Membergroup On Registration
Post by: MoreBloodWine on October 29, 2006, 11:39:30 AM
That works but it automatically defaults to the first group... how do you rather how would I set it so it defaults to nothing making u actually open the menu to see the available options... kinda like the country flag mod... on the reg page the field is blank till u click the dox for the drop down menu... hope this makes sense... also when it comes time to uninstall and install a new version i wont be able to use package manager anyway bec i already have made some changed to a few files to reword some things hehe...

Edit : If you click this http://www.choice-online-gaming.com/index.php?action=register you'll see what I mean about the country flag being defaulted to "nothing"...

Edit : Basically what I'm after is that the membergroup menu be defaulted to "nothing - black bar" so you actually have to click the drop down menu to see the avail groups... and if you dont choose a group and try to continue registration you get a message saying something like " Sorry but you cannot proceed with the registration process until you have selected a membergroup..." except in my case the word "membergroup..." would be replaced with "player faction..."
Title: Re: Membergroup On Registration
Post by: codenaught on October 29, 2006, 01:16:42 PM
In that case change the code I posted before:

// Assuming this is running an old version of the mod.
if (!isset($modSettings['groups_allowed_change']) && isset($context['membergroups'][0]))
{
unset($context['membergroups'][0]);
}


To this:

$context['membergroups'][0] = '';

And then in the same file (Register.php), find:

// Are they under age, and under age users are banned?
if (!empty($modSettings['coppaAge']) && empty($modSettings['coppaType']) && !isset($_POST['skip_coppa']))
{
// !!! This should be put in Errors, imho.
loadLanguage('Login');
fatal_lang_error('under_age_registration_prohibited', false, array($modSettings['coppaAge']));
}


Add after:

if(empty($_POST['ID_GROUP']) && empty($_POST['ID_ADDITIONAL']))
fatal_error('Sorry but you cannot proceed with the registration process until you have selected a player faction');


Let me know if that does exactly what you want.
Title: Re: Membergroup On Registration
Post by: MoreBloodWine on October 29, 2006, 01:23:36 PM
Parse error: syntax error, unexpected ':' in /home/choiceo2/public_html/Sources/Register.php on line 272

Thats what I get after usng the "new changes" changing this...
// Assuming this is running an old version of the mod.
if (!isset($modSettings['groups_allowed_change']) && isset($context['membergroups'][0]))
{
unset($context['membergroups'][0]);
}


To this...
$context['membergroups'][0] = '';

Then adding those other two lines after the ones u posted...
Title: Re: Membergroup On Registration
Post by: codenaught on October 29, 2006, 01:27:13 PM
Hmmm, not sure why that would cause a parse error, I don't see anything obviously wrong with it. Can you post line 272 of your Register.php file?
Title: Re: Membergroup On Registration
Post by: MoreBloodWine on October 29, 2006, 01:27:56 PM
Quote from: akabugeyes on October 29, 2006, 01:27:13 PM
Hmmm, not sure why that would cause a parse error, I don't see anything obviously wrong with it. Can you post line 272 of your Register.php file?
I have to re-apply the changes to get the same error so ya hold on... ill edit this in a min with the line...

Edit : This is line 272...
$language_directories =: array_unique($language_directories);
Title: Re: Membergroup On Registration
Post by: MoreBloodWine on October 29, 2006, 01:37:44 PM
Fixed it on my own I just deleted the : from that line and all works as expected... thx aka...

Edit : I was checking something and its nice to know that if I ever wana install a new version of this using the package manager all I need to do is unmod my register.template.php file... hehe. So I wont have to undo - redo any of the crap I just did lol... so long as I continue to use this mod and any future versions , lol... which I def will... but with new mods might bring new permissions which means i prolly would have to undo some of this which would be more headaches hehe... I might just stick with this ver since it does what I need it to do...
Title: Re: Membergroup On Registration
Post by: J!ass on November 02, 2006, 07:37:06 AM
Hey aka,

is it possible to make the field compulsory during the registration?
Because if not filled the standart usergroup will be selected when registering and I want the special Newbie group to be selected.

J!ass
Title: Re: Membergroup On Registration
Post by: captain236 on November 05, 2006, 02:18:28 PM
i know it doesnt pertyain as much to this mod.. but since we were on the topic of addin secondary membergroups..  is there a way to set it so that it will display both membergroup images? 

i have some ranks set up and each rank has a lead, and would like ppl to see which rank they are in, as well as if they are also in a lead position.?

thanks for any info.
Title: Re: Membergroup On Registration
Post by: Gobo on December 08, 2006, 06:56:56 PM
good mod :D im gona try it out once I get a few new member groups set up

thanks
Title: Re: Membergroup On Registration
Post by: JustJen on December 08, 2006, 08:30:49 PM
Would love an upgrade of this mod for 1.1 Final whenever possible please!
Title: Re: Membergroup On Registration
Post by: codenaught on December 08, 2006, 08:42:53 PM
Quote from: Ajen on December 08, 2006, 08:30:49 PM
Would love an upgrade of this mod for 1.1 Final whenever possible please!
It is compatible on clean install of SMF 1.1 Final. If you have tried to apply it, are you getting errors? Could be because of another mod editing something it is searching for.

Quote from: captain236 on November 05, 2006, 02:18:28 PM
i know it doesnt pertyain as much to this mod.. but since we were on the topic of addin secondary membergroups..  is there a way to set it so that it will display both membergroup images? 

i have some ranks set up and each rank has a lead, and would like ppl to see which rank they are in, as well as if they are also in a lead position.?

thanks for any info.
There is this mod that will show multiple group names - http://mods.simplemachines.org/index.php?mod=124. However it is not compatible with SMF 1.1. You might want to post this request in the Mod Requests board.

Quote from: J!ass on November 02, 2006, 07:37:06 AM
Hey aka,

is it possible to make the field compulsory during the registration?
Because if not filled the standart usergroup will be selected when registering and I want the special Newbie group to be selected.

J!ass
Sorry for the late reply. I plan to update this mod soon with such an option.
Title: Re: Membergroup On Registration
Post by: JustJen on December 09, 2006, 11:51:59 AM
I'm getting an error at this point:

4.     Execute Modification     ./Themes/default/Register.template.php     Test failed

ETA~~ It was not getting along well with the Gender on Registration mod installed. Seems to work fine if this mod is applied first and Gender second. Who knows why, but whatever.
Title: Re: Membergroup On Registration
Post by: emaildrop on December 16, 2006, 04:29:30 AM
which one should I install

Group on Registration-1.1.tar.gz (4KB)  ?

I am using 1.1 final  the latest smf
Title: Re: Membergroup On Registration
Post by: codenaught on December 16, 2006, 11:17:33 AM
Quote from: emaildrop on December 16, 2006, 04:29:30 AM
which one should I install

Group on Registration-1.1.tar.gz (4KB)  ?

I am using 1.1 final  the latest smf
Yes, that is the latest version and it works for SMF 1.1 final.
Title: Re: Membergroup On Registration
Post by: emaildrop on December 16, 2006, 11:32:16 AM
thanks I already installed
Off the topic ( now that you people are specilized in user groups_ :
any body can answer this please
http://www.simplemachines.org/community/index.php?topic=135006.msg859880#msg859880
Title: Re: Membergroup On Registration
Post by: Saku on January 05, 2007, 04:09:01 PM
Quote from: Jim R on October 01, 2006, 04:17:08 PM
2)  Can this option be moved to allow User to make their choice on their Profile (Account Related Settings)?

Any recent news about this?
Title: Re: Membergroup On Registration
Post by: RoarinRow on January 05, 2007, 06:09:11 PM
Cool, thanks for his mod  8)
Title: Re: Membergroup On Registration
Post by: codenaught on January 09, 2007, 08:17:15 PM
Quote from: Sakuragi on January 05, 2007, 04:09:01 PM
Quote from: Jim R on October 01, 2006, 04:17:08 PM
2)  Can this option be moved to allow User to make their choice on their Profile (Account Related Settings)?

Any recent news about this?
This is a feature I have been planning for awhile but just haven't done yet. Hopefully by this weekend I can release an update to allow this (although it may be in the form of a another mod because it is a lot of extra code when some may not want the feature and would require this mod to be renamed otherwise).
Title: Re: Membergroup On Registration
Post by: MoreBloodWine on January 10, 2007, 04:31:22 PM
I personally dont see this feature as being useful imo bec once I have groups set I dont need my users changing groups and getting into forum sections they dont need to... but the overall idea is nice I personally wouldnt use it... now if a feature for the admin panel can be set to allow the forum admin to either allow or disallow members to change groupss via the profile than that could be useful for forum admins that wana let their users  change group via their profile.
Title: Re: Membergroup On Registration
Post by: Saku on January 14, 2007, 06:45:22 AM
allow members to change Additional Membergroups only, not the Primary Membergroup would be nice
Title: Re: Membergroup On Registration
Post by: Davey D. on January 22, 2007, 07:46:38 PM
Okay which file do I install?

Can I change the text, "Pick your membergroup" to something else?
Title: Re: Membergroup On Registration
Post by: codenaught on January 22, 2007, 08:28:01 PM
Quote from: davidkirk on January 22, 2007, 07:46:38 PM
Okay which file do I install?

Can I change the text, "Pick your membergroup" to something else?
The one you should download is - "Group on Registration-1.1.tar.gz."

Yes. Just edit the text string that mod adds to Themes/default/languages/Modifications.english.php -

$txt['pick_group'] = 'Pick your membergroup';

Quote from: Sakuragi on January 14, 2007, 06:45:22 AM
allow members to change Additional Membergroups only, not the Primary Membergroup would be nice
This feature was what was added in version 1.1 of the mod.

Quote+ 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)
Title: Re: Membergroup On Registration
Post by: ShawnX on January 31, 2007, 08:25:09 PM
Quote from: J!ass on November 02, 2006, 07:37:06 AM
Hey aka,

is it possible to make the field compulsory during the registration?
Because if not filled the standart usergroup will be selected when registering and I want the special Newbie group to be selected.

J!ass

Will this feature be added soon?  
Title: Re: Membergroup On Registration
Post by: me123 on February 22, 2007, 07:00:23 AM

I am using the Dutch language in SMF 1.1.2.. This mod does not support it.
Where can I find the phrase: 'Pick your membergroup', so I can translate it myself? When I use the SMF forum in Dutch, the place of this sentece is left blank.
When I use it in English, I can now give the registering user a compulsery choice of membergroup. This works ok, however when I switch to Dutch, there is a blank line in the dropdown menu. So people can still register without choosing a compulsary group...

1 How can I place a Dutch sentence at the 'pick your membergroup' place?
2 How can I delete the blank line in the dropdown menu  
Title: Re: Membergroup On Registration
Post by: Darcy on March 08, 2007, 06:15:08 AM
Hoi Me'123,

I translated it to Dutch and it works just fine,I'll contact you later as I'm heading out for work in a minute, I just needed to put one question here first  ;)

???

Hi everyone who may be able to help...

This Mod worked fine and in fact, it still does but, I noticed today that (maybe it has always been like that but I assume it didn't) when someone registers, they can pick the group I selected for them to pick (in settings registration section) but, when someone forgets and later goes to their profile... they can pick ALL options available, even forum admin etc.

Why does that happen there and not at registration?

I'm almost convinced that it never has been like that, I do recall changing something in a php file, but it doesn't come up now, what it was I changed... I think the password section so the login.dutch.php I guess.

They shouldn't be able to pick ANY option in their profile change, how to check that part and reset it to just those I alow them to change to ?

Thank you

Title: Re: Membergroup On Registration
Post by: me123 on March 08, 2007, 06:46:41 AM
Hello Darcy,

I am glad you will provide me with an answer. I really do need this feature...
Looking forward for your answer. I am not a PHP programmer, but I can change php files, if I know where to put the code.....

Hopefully you give the answer soon...  :)

Title: Re: Membergroup On Registration
Post by: Darcy on March 08, 2007, 06:19:42 PM
Ok Me, here (http://www.kimopo.com/downloads/pick-group-nl.txt) is the file that you may be looking for...  It's not the php file itself, but the text that goes in the php file Modifications.Dutch.php or such as well as in the Modifications.Dutch-utf8.php  (or was it ModSettings ? well, one of those  ;) but both in the Dutch and Dutch-utf8 )

I posted it here before... So here (http://www.simplemachines.org/community/index.php?topic=66926.msg814479#msg814479) you can read and find more Dutch translations  (In the Dutch part of this forum) ;) Some may be outdated tho  ::) but so far, they all work for me...  :)

Edited: PostFrequency and Visual warning don't work in my 1.1.2 version anymore, and actually, I never took the time anymore to check more out on those two; I just might again,  on some rainy day  ;)
Title: Re: Membergroup On Registration
Post by: Indy74 on March 09, 2007, 12:28:28 PM
Hi, there!

Great mod!

And i have two questions! :)

1. I'm not using english as default language. And at the registration page where it asks you what membergroup you want to be in, the text on the left doesn't show. Only the drop-down menu with groups list. So, is there a way to show this text on the left? Just show me in what file and lines I should change things and i'll do it.

2. And the most important thing is that I want already registered members to be allowed to change their membergroups in profile page at any time :) The current mod does'nt allow that, and if they miss to choose it at the registration page, the option is not available anymore.
Of course i'll set which groups are permited to change their group in profile window at the registration/settings page, so there shouldn't be any security issues:)

Thanks in advance:)
Title: Re: Membergroup On Registration
Post by: Darcy on March 09, 2007, 05:21:35 PM
Quote from: Indy74 on March 09, 2007, 12:28:28 PM

1. I'm not using english as default language. And at the registration page where it asks you what membergroup you want to be in, the text on the left doesn't show. Only the drop-down menu with groups list. So, is there a way to show this text on the left? Just show me in what file and lines I should change things and i'll do it.

Me neither, I use Dutch and discovered that the text on the left only will show as soon as you copied that part from the English php file to your language php file and translate it there and upload it again.

That does the trick !  ;)

However, I keep getting an empty line in my permissions that has a check option but no line on the left side... so I changed my language to English and than it doesn't show either...
I really don't know what should be shown there...  ???

I made a snapshot of it and will post it soon somewhere for you who may be knows what should be there

Quote from: Indy74 on March 09, 2007, 12:28:28 PM
2. And the most important thing is that I want already registered members to be allowed to change their membergroups in profile page at any time :) The current mod does'nt allow that, and if they miss to choose it at the registration page, the option is not available anymore.
Of course i'll set which groups are permited to change their group in profile window at the registration/settings page, so there shouldn't be any security issues:)


This goes for me too... somehow, I can change all profiles but a member can't, and I did check the permissions part and that says they should be able to change their profile, but I guess the group part isn't included there to be changed later

So anyone has the answer ? Besides having them ask me to change it for them   :-\
Title: Re: Membergroup On Registration
Post by: Indy74 on March 09, 2007, 05:39:02 PM
QuoteMe neither, I use Dutch and discovered that the text on the left only will show as soon as you copied that part from the English php file to your language php file and translate it there and upload it again.

That does the trick !  ;)

Yeah, but in which file and which line? :) There are few files with "Register" in their names, but nothing inside seemed to me to be what i'm looking for. :-\
Title: Re: Membergroup On Registration
Post by: Darcy on March 10, 2007, 01:32:37 AM
Well, it's not in any register.php file but it's the php.file in your theme/default/languages folder called Modifications.language.php (where language stands for your language set if other than English)
Here, of course I assume that you installed the Mod itself first.
Than you look in the php file for such as:

Quote
//Pick your membergroup
$txt['pick_group'] = 'Kies de groep waar u in thuis hoort';
$txt['allowed_groups_reg'] = 'Groepen waarin leden zich kunnen aanmelden tijdens de registratie';
$txt['allowed_groups_reg_not_all'] = 'Groepen met forum management permissies zijn om veiligheidsredenen niet te kiezen';
$txt['allowed_groups_reg_no_groups'] = 'Elke ledengroep heeft minimaal een permissie die forum management bevat dus er is momenteel geen groep waar u zich in kunt registreren';
$txt['allowed_groups_reg_default'] = '--Geen speciale groep--';
$txt['allowed_groups_reg_default_help'] = 'Dit stelt u in staat om groepen aan te bieden waarin leden zich kunnen registreren. Houdt Alt + S ingedrukt om er meerdere te selecteren. Groepen met de volgende permissies zijn niet kiesbaar en zullen daarom niet getoond worden in de lijst: <i>Administrate forum and database</i>, <i>Manage boards and categories</i>, <i>Manage attachments and avatars</i>, <i>Manage smileys</i>, <i>Edit news</i>, <i>Moderate forum members</i>, <i>Manage and assign membergroups</i>, <i>Manage permissions</i>, <i>Manage ban list</i>, and <i>Send a forum email to members</i>.';
$txt['allowed_groups_type'] = 'Stel de groep in als hoofdgroep of tweede groep';
$txt['allowed_groups_type_help'] = 'Indien u Hoofdgroep kiest, zal dit de hoofdgroep worden van het lid dat zich registreerd. Indien u tweede groep kiest, zal dit de tweede groep worden van het lid dat zich registreerd.';
$txt['allowed_groups_primary'] = 'Hoofdgroep';
$txt['allowed_groups_secondary'] = 'Tweede groep';
This is my Dutch version copied and shown here  ;)

If it's not there (yet) you open the English version of that php file and look for it, copy and paste it into your language php file (no matter where as long as it starts with the // part )

Here's what I do when I'm not sure about changes:

I create a map on my HD called for instance, check-files_date-march10 and there I create a map called "keep off-origninals" and one called "after-change"

I download the files from my language map to "keep off" and "after-change"
In the "after-change" map, I check the files, looking for anything that contain words as (in this case) membergroup and read all about it, than (only) change it in the php file in the "after-change" map and upload it back to the language map

Check the forum and if that didn't work, upload the php from "keep-off" again to the language map and start over looking in my "after-change" map

I know, it may take a while this way but (for me) it's the safest way to make riskless changes and learn about php files etc along the way  ;)

Title: Re: Membergroup On Registration
Post by: Indy74 on March 10, 2007, 07:06:03 AM
Wow, i made it!

Thank you very much!

I translated every line that was supposed to be translated.:) And my modification.language.php file was empty before that, lol.

Now let's hope that the developer will modify the mod to allow changing groups by members at any time. Now it's kind of annoyng - every time they want to change their name color - thay have to PM me to change it for them.:)

Once again, thanks, you helped a lot!  
Title: Re: Membergroup On Registration
Post by: codenaught on March 14, 2007, 11:12:48 PM
Darcy, thanks for translating the mod into Dutch. :)

Quote from: Indy74 on March 10, 2007, 07:06:03 AM
Now let's hope that the developer will modify the mod to allow changing groups by members at any time. Now it's kind of annoyng - every time they want to change their name color - thay have to PM me to change it for them.:)
I hope to write up a mod that will make it so members can change their group to groups allowed by the admin. In fact, joinable groups are a feature of SMF Development Edition. If I get permission I may be able to backport it to SMF 1.1. ;)
Title: Re: Membergroup On Registration
Post by: overnight on March 15, 2007, 11:57:31 AM
Does anyone know if this works for 1.1.2 or is an update on the way?
Title: Re: Membergroup On Registration
Post by: overnight on March 15, 2007, 01:02:59 PM
Quote from: overnight on March 15, 2007, 11:57:31 AM
Does anyone know if this works for 1.1.2 or is an update on the way?

It DOES work with 1.1.2.  It was conflicting with another mod (choose gender on registration).  I removed the other mod...installed this one then put the other mod back... POW.  It works great...come see:  http://74.52.238.226/~overnigh
Title: Re: Membergroup On Registration
Post by: Lemming on May 17, 2007, 11:09:43 AM
Hi,

is it possible to change the code of this mod so all users can choose a membergroup *after* the registration in their profile? :)
Title: Re: Membergroup On Registration
Post by: codenaught on May 20, 2007, 12:09:42 PM
Version 1.1.1 of this mod has been released. Please update to this version of the mod ASAP because a potential security threat exists in the previous versions of this mod that can lead to a new member joining any non-administrator group. A sincere thanks goes to Rudolf (http://www.simplemachines.org/community/index.php?action=profile;u=24750) for reporting this issue to me.
Title: Re: Membergroup On Registration
Post by: kthulu on May 24, 2007, 09:16:25 AM
Excellent mod!
Two requests please from me.

1)   Allow multiple group selections i.e. Music, Computers, Cinema etc
2)   Profile Settings to allow changing across groups (I know you are already planning this as an additional mod).

Other than that thumbs up good work!
Title: Re: Membergroup On Registration
Post by: Rudolf on June 11, 2007, 02:45:50 PM
I think you should make Global Moderators un-selectable too. They don't have any of the management permissions, but by default they have the permissions to manage all the boards and posts. This is pretty powerful, and should not be allowed as default group. I don't think there's a sane person who would want it to be as default.
Title: Re: Membergroup On Registration
Post by: cncb on June 12, 2007, 05:06:04 PM
I am using the default theme and English but none of the text labels are showing up for me (e.g. the registration page has the drop-down membergroup selector but no descriptive text in front of it).  I have verified that the "Modifications.english.php" is present and seems to contain the appropriate strings.  Any ideas?
Title: Re: Membergroup On Registration
Post by: codenaught on June 15, 2007, 01:23:56 PM
Quote from: Rudolf on June 11, 2007, 02:45:50 PM
I think you should make Global Moderators un-selectable too. They don't have any of the management permissions, but by default they have the permissions to manage all the boards and posts. This is pretty powerful, and should not be allowed as default group. I don't think there's a sane person who would want it to be as default.
Maybe add to the exclude permissions, delete all posts and moderate board? That will take care of gmods as well as other powerful permission groups that may not necessarily have forum management permissions but can moderate.

QuoteI am using the default theme and English but none of the text labels are showing up for me (e.g. the registration page has the drop-down membergroup selector but no descriptive text in front of it).  I have verified that the "Modifications.english.php" is present and seems to contain the appropriate strings.  Any ideas?
Are you using English UTF-8 perhaps? Are you using a custom theme that contains its own Modifications.english.php file? If so, you would want to add the strings to any additional Modifications.<language>.php files you may have.

Title: Re: Membergroup On Registration
Post by: cncb on June 15, 2007, 02:01:15 PM
Quote from: akabugeyes on June 15, 2007, 01:23:56 PM
Are you using English UTF-8 perhaps?

Apparently so, but I'm not sure why.  I copied Modifications.english.php to Modifications.english-utf8.php and the strings show up now.  Thanks.
Title: Re: Membergroup On Registration
Post by: jfirestone on August 07, 2007, 01:45:10 PM
Been awhile since this has been updated.  I am looking for an option for a user to select as many groups as they wish on registering.  I know that sounds odd, but it is for a camp reunion website, and many people attended the camp multiple years.  I am hoping at some point the user list might be searchable by the years people attended.  Is it possible to select multiple groups?

I also do not seem to actually have the option to select the group on registering.  I have it in my admin settings and I can see all the groups, but nothing on the user registration screen.
Title: Re: Membergroup On Registration
Post by: codenaught on August 07, 2007, 08:05:56 PM
Multiple groups... that sounds like a feature I could do. :) Shouldn't be much changing really, basically I imagine I would just need to change the <select> code to include multiple="multiple" and add support for it to accept an array of values and do some extra processing with adding additional groups. (Although I will need to decide how to handle which group would be the primary group).

As for:

QuoteI also do not seem to actually have the option to select the group on registering.  I have it in my admin settings and I can see all the groups, but nothing on the user registration screen.
Are you viewing a theme other than the SMF default theme? If so, does the theme have its own Register.template.php file? If so try viewing the default theme when registering to see if it shows up then. (http://www.yourwebsiteaddress.com/forums/index.php?action=register;theme=1). If a custom theme has its own Register.template.php file you will need to manually add the mod code to it.
Title: Re: Membergroup On Registration
Post by: jfirestone on August 08, 2007, 09:02:09 AM
Thanks for the response!   I would be very excited for a multiple group selection option.  Is it possible to just abandon primary/secondary groups?  Can there just be "group(s)".  I don't know much of anything about coding - so please don't laugh at the suggestion.  :P

As for my other issue, I am using the default theme, but while I made this modification and I don't believe I got any errors, I do not have a selection box for the groups on the registration page.  I have the options in my admin panel, but not on the register page.

Here is a link to the picture (http://www.trijays.com/jed/nogroupselection.jpg) of my browser, complete with that address in it.  Can you tell me what code I should be looking for and where it should go?  Also, I have tried opening this same page in IE and the box is still not there.
Title: Re: Membergroup On Registration
Post by: ghscardinals on August 08, 2007, 02:18:33 PM
Hi, I've installed this mod, and it was installed succesfully.  But when I'm trying to register, there's not a field to choose a membergroup.  But I did add membergroups in my adminpnel.  Any suggestion?
Title: Re: Membergroup On Registration
Post by: codenaught on August 08, 2007, 09:27:57 PM
QuoteCan there just be "group(s)".  I don't know much of anything about coding - so please don't laugh at the suggestion.  :P
So you mean have it make all groups additional? I know some people would still want to make it so that the user can pick which of the groups would be primary, but I will think about this.

QuoteI have the options in my admin panel, but not on the register page.
And I assume you selected at least one group members can pick? Nothing will show if you currently have no groups selected to be allowed for members to use.

QuoteHi, I've installed this mod, and it was installed succesfully.  But when I'm trying to register, there's not a field to choose a membergroup.  But I did add membergroups in my adminpnel.  Any suggestion?
When you say you added groups, are you referring to the Admin / Registeration / Settings / Groups that members can register to upon registration? As I said to jfirestone above, you need to make sure at least one group is selected (although you would probably want more than one or you would better off with default membergroup mod that selects the membergroup all members will be registered to without giving the members a choice. ;)) Also, if you are not using the SMF default theme, try viewing http://www.yoursite.com/forums/index.php?action=register;theme=1 to see if it shows in the default theme (which is the theme the mod installs to).
Title: Re: Membergroup On Registration
Post by: ghscardinals on August 09, 2007, 01:55:44 PM
akabugeyes  thank you, you solved my problem =)
Title: Re: Membergroup On Registration
Post by: jfirestone on August 13, 2007, 11:07:13 AM
Quote from: akabugeyes on August 08, 2007, 09:27:57 PM
And I assume you selected at least one group members can pick? Nothing will show if you currently have no groups selected to be allowed for members to use.

I didn't!   I didn't realize that I actually had to highlight the groups in my control panel to make sure they show for registration. That solved one issue - now I just hope you can make an option for people to select multiple groups :)

RE: the primary group issue.  I guess in my case a primary group doesn't mean anything, although in most people's cases it probably would.  It's just that on my board, I want people to be able to in groups by the years they attended - so all years are primary, secondary or additional :)

Thanks for the help so far!
Title: Re: Membergroup On Registration
Post by: Fatherguido on September 09, 2007, 08:36:34 PM
For some reason the selection box is not showing up during registration (for me). I use a custom theme but it pulls the register.template.php file from default. I tried the default theme and still no selection box.

I can see all of the other information in the registration section but no selection box upon registration. I am attaching my reg.temp - if you would be so kind as to look at it. Thanks
Title: Re: Membergroup On Registration
Post by: codenaught on September 09, 2007, 08:40:15 PM
Are any groups selected to be allowed for members to join in Admin / Settings / Groups that members can register to upon registration?

The template you attached appears to have the needed edits in it.
Title: Re: Membergroup On Registration
Post by: Fatherguido on September 09, 2007, 09:07:18 PM
Quote from: akabugeyes on September 09, 2007, 08:40:15 PM
Are any groups selected to be allowed for members to join in Admin / Settings / Groups that members can register to upon registration?

The template you attached appears to have the needed edits in it.
I hate to be dense here and I know a "Doh!" moment is approaching but where would I find this Admin/Settings/Groups? Are you in the membergroup area? I just don't see it. sorry :(
Title: Re: Membergroup On Registration
Post by: codenaught on September 09, 2007, 09:10:22 PM
Oops sorry, I meant to say Admin / Registration / Settings.
Title: Re: Membergroup On Registration
Post by: Fatherguido on September 09, 2007, 09:16:35 PM
Quote from: akabugeyes on September 09, 2007, 09:10:22 PM
Oops sorry, I meant to say Admin / Registration / Settings.
I can see that there are membergroups that "can" be selected. Is there supposed to be a "toggle-switch" to activate them? There is none.
Title: Re: Membergroup On Registration
Post by: codenaught on September 09, 2007, 09:22:33 PM
It won't let you click on them in the selection box? Holding down the Ctrl key while selecting them should allow you to select more than one.

See this image: http://custom.simplemachines.org/mods/index.php?action=download;mod=485;id=19436;image
Title: Re: Membergroup On Registration
Post by: Fatherguido on September 09, 2007, 09:32:13 PM
Quote from: akabugeyes on September 09, 2007, 09:22:33 PM
It won't let you click on them in the selection box? Holding down the Ctrl key while selecting them should allow you to select more than one.

See this image: http://custom.simplemachines.org/mods/index.php?action=download;mod=485;id=19436;image
You are dead on - sorry, I didn't get the "highlighting them selects them thing" so sorry - it now works - THANK YOU!
Title: Re: Membergroup On Registration
Post by: jfirestone on September 13, 2007, 01:11:46 PM
Just curious if you had any time to work on that multiple group selection I had asked about?  My forum is adding members very slowly, so I am not in dire need - I was just curious :)
Title: Re: Membergroup On Registration
Post by: judithshakes on September 27, 2007, 01:10:02 PM
Probably something simple, but no groups at all show up in the choice list in the setting area. It says "Groups that members can register to upon registration (?):" and gives me an empty box. Any suggestions? :)
Title: Re: Membergroup On Registration
Post by: shumilica on October 01, 2007, 01:20:07 PM
I want users to be able to select the groups I decide they can select (the same in the registration field) from profile.
Will this feature will ever be available?
Can't I just copy the code from register.php and register.template.php to profile.php and profile.template.php? :-o
Title: Re: Membergroup On Registration
Post by: codenaught on October 01, 2007, 05:16:49 PM
Quote from: judithshakes on September 27, 2007, 01:10:02 PM
Probably something simple, but no groups at all show up in the choice list in the setting area. It says "Groups that members can register to upon registration (?):" and gives me an empty box. Any suggestions? :)
That's odd. Do you have groups that don't have any admin permissions? I assume you do. Any errors in Admin / Forum Error Log?

@shumilica, I do want to write a mod that allows this at some point. I am afraid it would probably require some more work than just copying code from the Membergroup On Registration mod.
Title: Re: Membergroup On Registration
Post by: judithshakes on October 01, 2007, 06:20:03 PM
Quote from: akabugeyes on October 01, 2007, 05:16:49 PM
That's odd. Do you have groups that don't have any admin permissions? I assume you do. Any errors in Admin / Forum Error Log?

I'm sorry, my fault actually. It seems that I'm having problems with the package manager installing packages correctly since the move to a new server. The mod seemed to be installed correctly because of the manual edits I did to the theme... Going to fix the problem and try again! I'll let you know if I have any issues this time. Thanks!
Title: Re: Membergroup On Registration
Post by: koopa on October 01, 2007, 08:57:57 PM
I have a request. How about after selecting the group, the admin has to approve it. This way member dont group-hop.
Title: Re: Membergroup On Registration
Post by: shumilica on October 02, 2007, 01:59:40 AM
Ok. I will just... wait.
I want this so much because I run a faculty forum and I want to be able to send custom news mail to specific years and groups. I made custom fields so that when someone posts we know what year and in what class. Do you think that any other mod can do this? :-o
Thanks in advance for the mod you will make

Quote from: akabugeyes on October 01, 2007, 05:16:49 PM

@shumilica, I do want to write a mod that allows this at some point. I am afraid it would probably require some more work than just copying code from the Membergroup On Registration mod.
Title: Re: Membergroup On Registration
Post by: aacid on October 19, 2007, 09:46:40 AM
Hello, I would really love to use this mod, but when I try to install it it says its not compatible with my version of forum...

I have clean installation 1.1.4, only mod I use is Redirection Boards, but I don't think it have somwthing to do with it...

Do you plan some update soon? thanks :)
Title: Re: Membergroup On Registration
Post by: codenaught on October 20, 2007, 05:12:31 PM
That's odd. My mod does not restrict installing for only certain versions of SMF like other mods do. So it should install for any version of SMF.

I assume you are using the "Group on Registration-1.1.1.tar.gz" package found on the mod site?
Title: Re: Membergroup On Registration
Post by: GazOutEast on November 03, 2007, 02:02:39 PM
shumilica -

set the groups on registration as non-post based, and as secondary groups in each location that applies as you create them. Then the groups can be either not included in the groups on registration (admin has to add them to user profiles) or the user has to add them from within their profile (add extra groups - text link under primary group setting)

koopa -

if I remember right, there is a setting in permissions by group that stops them changing member group - might be wrong though.

akabugeyes -

when groups are set as secondary groups (or additional groups according to the link in a user's profile) and they are not post-count groups, how do you get the "star" to appear in their post-side mini-profile?

Here's what I've done -
I've set up (as a start) six non-post-count groups and for each, I've given then a unique icon by replacing the name of the star.gif in the group setup (the icons show happily there so it's not a path or syntax problem.
Permissions for the groups are based on the lowest post-count group, and board access is across the boards (while testing)

In theory, the member group icon should show immediately above or below the stars for the relevant post-count group they're in, but it doesn't, and when I go into themes/default/Display.Template.php there is no code to include any non-postcount icon except the primary group (e.g. Administrator) therefore the mod appears incomplete as it has not inserted code for secondary group icons.

What's going wrong here?

Gaz
Title: Re: Membergroup On Registration
Post by: HEB XI 1 on November 11, 2007, 03:40:31 PM
I read thru the posts here and understand that you are working on, essentially, adding this same function to the Profile.  I was wondering if there is any update to be had on that?

What I'm looking for, specifically, is to be able to use one of the fields that I set up using Custom Fields Mod to determine what group a member is placed in.  If they check a certain box, they get placed in one group - if it's unchecked, they go in another.

I'm fairly comfortable with modifying things to meet my exact needs, so just having the backend code to allow them to make the membergroup switch would probably be enough for my purposes and then I could run with that.

Thanks in advance!
Title: Re: Membergroup On Registration
Post by: syrimo on November 15, 2007, 07:52:54 AM
Aiyo... been waiting for this mods. I need to used it for School Alumni / student, teachers & staff

anyone can help me out to make the changes for my register.template.php? help! help!

1.     Execute Modification     ./Sources/ManageRegistration.php     Test successful
2.    Execute Modification    ./Sources/Subs-Members.php    Test successful
3.    Execute Modification    ./Sources/Register.php    Test successful
4.    Execute Modification    ./Themes/default/Register.template.php    Test failed
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful

Thnx.


Ops forgot.

i am using SMF1.1.4
Title: Re: Membergroup On Registration
Post by: TrueSatan on November 15, 2007, 09:10:14 AM
Your error is a variant on the most common error of all those reported on these pages (please use the search function prior to posting)...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: Membergroup On Registration
Post by: syrimo on November 15, 2007, 01:54:23 PM
oOo ok. thx mate.
Title: Re: Membergroup On Registration
Post by: syrimo on November 15, 2007, 02:11:09 PM
aha... will try this step.
Quote from: JustJen on December 09, 2006, 11:51:59 AM
I'm getting an error at this point:

4.     Execute Modification     ./Themes/default/Register.template.php     Test failed

ETA~~ It was not getting along well with the Gender on Registration mod installed. Seems to work fine if this mod is applied first and Gender second. Who knows why, but whatever.

aha... will try this step.
Title: Re: Membergroup On Registration
Post by: perplexed on February 06, 2008, 03:17:03 PM
hmmm I already have this installed on another forum but today when I tried to install it on my test forum there is a weird problem

It installed ok with no fails but now at the top of my site there is this:

Quote
$txt['pick_group'] = 'Pick your membergroup'; $txt['allowed_groups_reg'] = 'Groups that members can register to upon registration'; $txt['allowed_groups_reg_not_all'] = 'Groups with forum management permissions are not selectable for security reasons'; $txt['allowed_groups_reg_no_groups'] = 'Every membergroup has at least one permission that involves forum management so there are currently no groups you can select to allow your members to register to.'; $txt['allowed_groups_reg_default'] = '--No special membergroup--'; $txt['allowed_groups_reg_default_help'] = 'This allows you to select the groups that you would like members to be able to select during registration. Just hold down Alt + S to select multiple groups. Groups with the following permissions allowed are not selectable and do not appear on the list: 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, and Send a forum email to members.'; $txt['allowed_groups_type'] = 'Set group as primary group or secondary group'; $txt['allowed_groups_type_help'] = 'If you pick primary group, the member\'s primary group upon registration will be the one they selected. If secondary group is selected, the member\'s group they selected will be their secondary group.'; $txt['allowed_groups_primary'] = 'Primary Group'; $txt['allowed_groups_secondary'] = 'Secondary Group';

and it won't go away.  Any ideas?
Title: Re: Membergroup On Registration
Post by: M_rTable on February 13, 2008, 10:02:01 AM
Hello


This is a great mod, but, how do i make the "Select membergroup" mandatory? Has users can select "no memebergroup" and them they will be has newbies...how to make the mg select mandatory? I mean users MUST select one mode on registering.


Thanks
Title: Re: Membergroup On Registration
Post by: M_rTable on February 29, 2008, 10:42:36 AM
bump,,,still wheres the mod creator?



This is a great mod, but, how do i make the "Select membergroup" mandatory? Has users can select "no memebergroup" and them they will be has newbies...how to make the mg select mandatory? I mean users MUST select one mode on registering.


Thanks
Title: Re: Membergroup On Registration
Post by: codenaught on February 29, 2008, 04:20:07 PM
perplexed, I believe if you move the line in Themes/default/languages/Modifications.english.php:

?>

To the very end of the file, that would take care of your problem.

M_rTable, sorry for the long time to respond.

Open Sources/Register.php:

Find:

$context['membergroups'][0] = $txt['allowed_groups_reg_default'];

And remove it or comment it out.

Next find:

// Seriously is the ungrouped/regular membergroup the only group they can register to?
if(count($context['membergroups']) == 1)
$context['no_avail_groups'] = true;


And change to:

// Seriously is the ungrouped/regular membergroup the only group they can register to?
if(count($context['membergroups']) == 0)
$context['no_avail_groups'] = true;


Find:

// Well, if you don't agree, you can't register.
if (!empty($modSettings['requireAgreement']) && (empty($_POST['regagree']) || $_POST['regagree'] == 'no'))
redirectexit();


After add:

if (empty($_POST['ID_GROUP']))
fatal_error("You must select a group");
Title: Re: Membergroup On Registration
Post by: M_rTable on March 01, 2008, 04:48:37 PM
Quote from: akabugeyes on February 29, 2008, 04:20:07 PM
perplexed, I believe if you move the line in Themes/default/languages/Modifications.english.php:

?>

To the very end of the file, that would take care of your problem.

M_rTable, sorry for the long time to respond.

Open Sources/Register.php:

Find:

$context['membergroups'][0] = $txt['allowed_groups_reg_default'];

And remove it or comment it out.

Next find:

// Seriously is the ungrouped/regular membergroup the only group they can register to?
if(count($context['membergroups']) == 1)
$context['no_avail_groups'] = true;


And change to:

// Seriously is the ungrouped/regular membergroup the only group they can register to?
if(count($context['membergroups']) == 0)
$context['no_avail_groups'] = true;


Find:

// Well, if you don't agree, you can't register.
if (!empty($modSettings['requireAgreement']) && (empty($_POST['regagree']) || $_POST['regagree'] == 'no'))
redirectexit();


After add:

if (empty($_POST['ID_GROUP']))
fatal_error("You must select a group");



Nothing was changed! Nothing!
The "Dont select membergroup" is STILL there!


Btw hen finding

// Well, if you don't agree, you can't register.
if (!empty($modSettings['requireAgreement']) && (empty($_POST['regagree']) || $_POST['regagree'] == 'no'))
redirectexit();


it doesnt find it!

Title: Re: Membergroup On Registration
Post by: codenaught on March 01, 2008, 05:03:00 PM
Well I even tested it myself, if the changes I posted were applied properly, then there is no way the "No Membergroup" option could still be there, because I told you to remove code that assigns that text string as an option.

I'm not sure why that code isn't there, it should be under the Register2() function in that file.

How about finding this code instead?

// You can't register if it's disabled.
if (!empty($modSettings['registration_method']) && $modSettings['registration_method'] == 3)
fatal_lang_error('registration_disabled', false);


If you can find that, then you can add the code after that.

Make sure you upload the files over the existing ones and that the changes are going through. One way to check would be to download the file again from FTP somewhere on your computer and checking the file to see if the file has the modified code.
Title: Re: Membergroup On Registration
Post by: M_rTable on March 01, 2008, 05:48:24 PM
Can you give me the install file that you correct now? with the changes you did to work good cause I dont know what im doing wrong... :-[
Title: Re: Membergroup On Registration
Post by: Shortrnd on March 02, 2008, 02:19:44 PM
Quote from: akabugeyes on March 01, 2008, 05:03:00 PM
Well I even tested it myself, if the changes I posted were applied properly, then there is no way the "No Membergroup" option could still be there, because I told you to remove code that assigns that text string as an option.

That worked for me aka.  Thanks a ton.
Title: Re: Membergroup On Registration
Post by: perplexed on March 25, 2008, 05:00:59 PM
very cool, works for me too :)
Title: Re: Membergroup On Registration
Post by: perplexed on March 27, 2008, 01:27:36 PM
Quote from: akabugeyes on March 01, 2008, 05:03:00 PM
Well I even tested it myself, if the changes I posted were applied properly, then there is no way the "No Membergroup" option could still be there, because I told you to remove code that assigns that text string as an option.

I'm not sure why that code isn't there, it should be under the Register2() function in that file.

How about finding this code instead?

// You can't register if it's disabled.
if (!empty($modSettings['registration_method']) && $modSettings['registration_method'] == 3)
fatal_lang_error('registration_disabled', false);


If you can find that, then you can add the code after that.

Make sure you upload the files over the existing ones and that the changes are going through. One way to check would be to download the file again from FTP somewhere on your computer and checking the file to see if the file has the modified code.

Just to let you know that I applied these changes too but I just realised today that when you try to register, after selecting a group, and hitting enter to register, it takes you to a page that says :

An Error Has Occurred!
You must select a group, you can join other groups after logging into the forum

only realised this was happening when I looked in the error log and there are 6 guests who have tried to register since yesterday and are getting rejected, so it's making it that no one can register.

I've had to remove the changes as no one can register.
Title: Re: Membergroup On Registration
Post by: Stigmartyr on April 07, 2008, 03:57:44 PM
I just wanted to drop in and say this is an amazing mod.  w0ot!

I am putting it to use building a Mustang Owners directory here: http://stangnation.com/index.php?page=8

Its going to save me a poop load of time.  When ever you get that Profile feature working so they can make changes to their member groups later that would be awesome.

Also, I did read the entire thread and just wanted to ask again what would be the best way to allow multiple selections @ registration?

Some of our members own more than one kind of Mustang.

Thanks again,

Stig
www.StangNation.com
Title: Re: Membergroup On Registration
Post by: cellax on April 12, 2008, 09:33:19 AM
It is a wonderful mod, but I think it's very important to add the possibility to change the usergroup on profile too.

like a prayer

O:) I think that the pissibility to change the usergroup on profile will make this mod very important and usefull
Title: Re: Membergroup On Registration
Post by: Achilles991 on April 16, 2008, 08:16:37 AM
I was wondering if i could let member to choose 2 groups? My forum has 3 types of groups, and i would like every member to choose two groups himself on registration, so i have less work to do.
I am sure that it is possible, but my question is how do i do it?
Title: Re: Membergroup On Registration
Post by: Stigmartyr on April 17, 2008, 05:49:50 PM
If ANYONE has suceeded in making it so you can select more than one group during registration, or has been able to put the option to choose groups in member profiles, please reply.  This is VERY IMPORTANT and USEFUL for the mod and for SMF in general!

Thank you!
Title: Re: Membergroup On Registration
Post by: codenaught on May 01, 2008, 06:39:39 PM
Just dropping by to say this mod works with just released SMF 1.1.5.

Stigmartyr, I will try to look into adding an option for members to be able to select more than one group in the future.

Also, SMF 2.0 has a joinable and requestable group feature which I think pretty much would take care of the need for this mod to cover such functionality.
Title: Re: Membergroup On Registration
Post by: Stigmartyr on May 03, 2008, 10:43:54 AM
Quote from: akabugeyes on May 01, 2008, 06:39:39 PM
Just dropping by to say this mod works with just released SMF 1.1.5.

Stigmartyr, I will try to look into adding an option for members to be able to select more than one group in the future.

Also, SMF 2.0 has a joinable and requestable group feature which I think pretty much would take care of the need for this mod to cover such functionality.

Thanks!  Im scared to death of SMF 2.0 because I have so many mods already, and I dont want to kill the site.  Are you aware of anyone else who's enjoyed a smooth transition?  Also I use TinyPortal.
Title: Re: Membergroup On Registration
Post by: edi67 on May 04, 2008, 04:01:06 PM
when will be done for smf 2?
Title: Re: Membergroup On Registration
Post by: codenaught on May 04, 2008, 04:08:24 PM
Should be soon. I already upgraded all my other mods. Just have a few things I need to take care of first.

Oh and yes that is right. I misspoke in my previous post suggesting that this mod would not be available for 2.0. What I really meant to say was that functionality of allowing members to change their group in their profiles wouldn't be as needed because in SMF 2.0 there is joinable and requestable groups.
Title: Error on Test
Post by: DecadesClean on July 02, 2008, 01:24:56 PM
I tried installing this in a fairly vanilla SMF 1.1.5 install, but I got an error on the template test.

Here's a list of the mods we have (using Babylon theme):

Admin Lock Thread      1.2
Enhanced Calendar    1.1
Admin Modification Menu Section    1.0.2
Custom Board Sort    1.0.1
Delete Spam Posts 1.2    1.2
Select Admin for Notifications    1.2
Group Moderators    1.4
View Topic Permissions    1.1.0a
Sticky First Post (extends sticky topic)    1.3.2
Display Age and Location next to posts    1.0
Avatar on Member List    1.0
Country Flags    1.0.1
Default Membergroup on Registration    1.1
Enhanced Quick Reply Box 2.0.2    2.0.2
Internal Links Use Same Window    1.2
Mark Selected Topics As Read    1.0
YouTube BBCode    2.3
Separated Birthdays from Events    1.0
SMF Ajax Registration Feedback    1.0.0
Use color Tags in code Mod    1.0
Image Align Tag    0.5
Justify BBCode    1.0
Wrap Text Around Image    1.0
SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update    1.0
PM On Registration    1.0.2

PS It's not Default Membergroup on Registration that conflicts. That was my first thought.
Title: Re: Membergroup On Registration
Post by: codenaught on July 05, 2008, 12:40:00 AM
Perhaps you can try manually applying the code for the mod to the Themes/default/Register.template.php file.

http://custom.simplemachines.org/mods/index.php?action=parse;mod=485;smf_version=1.1.5;attach=33544

If you scroll down you can see the code for it under:

./Themes/default/Register.template.php

If you cannot find the same code or a slightly modified version of that code and are unable to apply the needed modification then if you are willing to attach your Register.template.php file I can look into at it myself.
Title: Re: Membergroup On Registration
Post by: codenaught on July 05, 2008, 12:44:00 AM
Quote from: quiteperplexed on February 06, 2008, 03:17:03 PM
hmmm I already have this installed on another forum but today when I tried to install it on my test forum there is a weird problem

It installed ok with no fails but now at the top of my site there is this:

Quote
$txt['pick_group'] = 'Pick your membergroup'; $txt['allowed_groups_reg'] = 'Groups that members can register to upon registration'; $txt['allowed_groups_reg_not_all'] = 'Groups with forum management permissions are not selectable for security reasons'; $txt['allowed_groups_reg_no_groups'] = 'Every membergroup has at least one permission that involves forum management so there are currently no groups you can select to allow your members to register to.'; $txt['allowed_groups_reg_default'] = '--No special membergroup--'; $txt['allowed_groups_reg_default_help'] = 'This allows you to select the groups that you would like members to be able to select during registration. Just hold down Alt + S to select multiple groups. Groups with the following permissions allowed are not selectable and do not appear on the list: 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, and Send a forum email to members.'; $txt['allowed_groups_type'] = 'Set group as primary group or secondary group'; $txt['allowed_groups_type_help'] = 'If you pick primary group, the member\'s primary group upon registration will be the one they selected. If secondary group is selected, the member\'s group they selected will be their secondary group.'; $txt['allowed_groups_primary'] = 'Primary Group'; $txt['allowed_groups_secondary'] = 'Secondary Group';

and it won't go away.  Any ideas?
If you were unable to resolve this issue it has to do with the variables being in the wrong place in the Modifications.english.php file.

If you uninstalled this mod and install this mod again and the problem occurs again, then check your Modifications.english.php file in Themes/default/languages. Make sure that all of the code in that file is in between the <?php line and the ?> line. If there is anything not in between those bits, move it so that it is.
Title: Re: Membergroup On Registration
Post by: codenaught on July 05, 2008, 12:46:42 AM
Quote from: edi67 on May 04, 2008, 04:01:06 PM
when will be done for smf 2?
Just pointing out that I have no forgotten about updating this for 2.0. I plan to do so soon, sorry for the long wait.

Quote from: Achilles991 on April 16, 2008, 08:16:37 AM
I was wondering if i could let member to choose 2 groups? My forum has 3 types of groups, and i would like every member to choose two groups himself on registration, so i have less work to do.
I am sure that it is possible, but my question is how do i do it?
I will look into it, although it would definitely require some changes to how a lot of it is put together.
Title: Re: Membergroup On Registration
Post by: ishy on August 24, 2008, 07:18:17 AM
The title of the line won't show up on the register page of the theme, but it doesn't use a separate register template from the default, and I've checked the edits in the default. The drop-down box and the rest of the mod works fine.  Can't figure it out....

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi127.photobucket.com%2Falbums%2Fp133%2Flts19%2Fhhh.png&hash=da79c95d7b0825c7af6010954ee85315fefbb9e1)

Title: Re: Membergroup On Registration
Post by: callteg4 on September 25, 2008, 07:30:28 PM
This may of been asked but i cant seem to see it,

So here goes,My site is set for anyone of any age. The problem is I have adult games in my arcade and adult forums,so i have a 18+ group when a member signs up if they are over 18 i change there group but this takes a lot of time and if i am not around for a few days then they will stay in the default group.

So my question,Is this mod clever enough so once they put there age in they can then choose the 18+ group and if no age then they stay in under 18 goup

Hope you know what i mean thanks callteg4
Title: Re: Membergroup On Registration
Post by: SgtMic on October 02, 2008, 07:23:11 PM
Quote from: akabugeyes on July 05, 2008, 12:46:42 AM
Quote from: edi67 on May 04, 2008, 04:01:06 PM
when will be done for smf 2?
Just pointing out that I have no forgotten about updating this for 2.0. I plan to do so soon, sorry for the long wait.

How is the progress going on this?  :D
Definitely one of the mods I miss the most since upgrading to Beta4.
Title: Re: Membergroup On Registration
Post by: jacbier on October 08, 2008, 02:53:53 AM
This is a great mod. Thank you!

Title: Re: Membergroup On Registration
Post by: busterone on October 18, 2008, 01:44:30 PM
Great work.  :) I have a question about altering it somewhat. I have many new members from a MSN group that will be shutting down soon coming to our forum. We have created a board for for them to have private access to. (msn victims group) It would be great if there was a way to have an extra password box under the group selection and a predetermined password set for that group. Upon registration, members from the special group can enter the password and register as a member of that group. Without the password, all registrations default to regular member. I want to keep non members of this particular group from being able to register as one.  These new members have access to the entire forum, but the non group members cannot see or access the special board. I am not extremely proficient at PHP from scratch. The password doesn't even have to be extremely secure. It will just be a stopgap to save me a lot of time manually adding group permissions.  Is this even feasible?

Edit- Sorry, I see that a mod already exists for what I was asking about.  :)
Title: Re: Membergroup On Registration
Post by: dakotaroar on November 23, 2008, 04:40:03 PM
Quote from: SgtMic on October 02, 2008, 07:23:11 PM
Quote from: akabugeyes on July 05, 2008, 12:46:42 AM
Quote from: edi67 on May 04, 2008, 04:01:06 PM
when will be done for smf 2?
Just pointing out that I have no forgotten about updating this for 2.0. I plan to do so soon, sorry for the long wait.

How is the progress going on this?  :D
Definitely one of the mods I miss the most since upgrading to Beta4.


That answers my question, thank you!
Title: Re: Membergroup On Registration
Post by: GazOutEast on November 23, 2008, 05:01:33 PM
Quote from: callteg4 on September 25, 2008, 07:30:28 PM
This may of been asked but i cant seem to see it,

So here goes,My site is set for anyone of any age. The problem is I have adult games in my arcade and adult forums,so i have a 18+ group when a member signs up if they are over 18 i change there group but this takes a lot of time and if i am not around for a few days then they will stay in the default group.

So my question,Is this mod clever enough so once they put there age in they can then choose the 18+ group and if no age then they stay in under 18 goup

Hope you know what i mean thanks callteg4

If the mod supplier doesn't have time to address this, I would have thought a reasonably straightforward IF statement outside of the mod would be able to address this, and if structured correctly, it would then allow for people attaining 18y.o. to automatically get inclusion in the allow list for your 18+ board.

This is not code but something structured along the lines of -

get date1(today)
get date2(member birthdate)
define boards IDxyz = board numbers array(blah blah)
IF date1 minus date2 = 18years+ then permit access to boards IDxyz
else hide boards IDxyz

As I said, that's not code (I'm not a code creator) but it should be 15 minutes work for someone to create a full new mod from that type of functionality I would have thought.

Gaz
Title: Re: Membergroup On Registration
Post by: shanksta13 on December 29, 2008, 01:22:59 PM
I have a forum that relies on people signing up for the right membergroup, and this mod was an absolute must have for my forum.  However, since upgrading to SMF 2.0 Beta 4, the mod no longer works.  Is there anyone that could walk me through how to install this mod on 2.0 Beta 4?
Title: Re: Membergroup On Registration
Post by: SgtMic on December 29, 2008, 01:38:16 PM
Quote from: shanksta13 on December 29, 2008, 01:22:59 PM
I have a forum that relies on people signing up for the right membergroup, and this mod was an absolute must have for my forum.  However, since upgrading to SMF 2.0 Beta 4, the mod no longer works.  Is there anyone that could walk me through how to install this mod on 2.0 Beta 4?

We're hoping the mod author gets his mod caught up.
Title: Re: Membergroup On Registration
Post by: Jim R on January 21, 2009, 09:17:52 AM
Looking for this one too.
Title: Re: Membergroup On Registration
Post by: kpel on January 31, 2009, 04:33:15 PM
I have read thru but did not find an answer. The text to the left of the drop down on the registration form is not showing. In the admin section, no text as well as one board not showing.

I'm using 1.1.7 with a theme that does not have its own source folder etc. I see all the code on the pages.

Will it work for me? (pls say yes!) What do I need to do?

Thanks!
Title: Re: Membergroup On Registration
Post by: Stigmartyr on February 10, 2009, 05:10:22 AM
Heya JThor - can you update us on any efforts to allow members to chose more than one group on registration and/or later on via profile perhaps?

I understand SMF 2.0 will have this feature but for me, and perhaps others who are using modified SMF instances even SMF 2.0 will not help us.

I for example must rely on your efforts with this mod, because I use TinyPortal and they aren't releasing a golden version that will work with SMF 2.0 yet..

It is highly unlikely I will benefit from it for quite some time, so all I can hope is for your expert assistance in this.  Ultimately I'd like to allow members to select regions as well as other groups that will dictate how content is displayed.  I'd like them to be able to join and unjoin a selection of regional member groups allowing them to toggle regional content on the site, if that makes sense.

Your mod seems like the best vehicle for me.
Title: Re: Membergroup On Registration
Post by: kpel on February 10, 2009, 07:07:00 AM
I always wondered why people offer things, then do not follow thru. No response, no updates...why not delete your whole thread, remove the mod, whatever it takes for the peace and quiet you need.
Title: Re: Membergroup On Registration
Post by: Vincent Volmer on February 12, 2009, 01:51:02 AM
Hello,

Is this mod compatible with RC1?

Thanks in advance,
Vincent
Digiscrap.nl
Title: Re: Membergroup On Registration
Post by: forepro on February 13, 2009, 09:28:39 AM
Hello

Does this mod work for 1.1.8?
This is exactly what I am looking for.

Thanks!!
Title: Re: Membergroup On Registration
Post by: misjka on March 02, 2009, 03:23:35 PM
Hi!

I try to get this mod going on a SMF 1.1.7 site without any success: In Admin -> Registration -> Settings the membergroup selection box never turns up :( (default theme, English).

And as I try to uninstall it I get "You cannot download or install new packages because the Packages directory or one of the files in it are not writable! ", although I've also set all files writeable in the Clean Up Permissions feature in the Admin -> Package Manager -> Options panel...

Would be much obliged to know whether this mod is compatible with 1.1.7+ or not, and what the uninstall failure may depend on.

Thanks,
Title: Re: Membergroup On Registration
Post by: GazOutEast on March 03, 2009, 02:01:58 AM
misjka - I had it running perfectly on SMF from 1.0.17 through 1.1.8

It now doesn't work with 2.0 RC1 because of the new groups functionality built in - I have to manually assign new members to groups, which is an admin burden increase, but I'll find a workaround.

gaz
Title: Re: Membergroup On Registration
Post by: misjka on March 04, 2009, 07:35:43 AM
So, now it works on my site as well  :D. Probably it was due to a previous transfer of the forum files to another directory...

As I see from previous replies in this thread, I do agree: It would be nice for the registering members to be able to join several groups  :)! Great mod, though  :D!

And... Next step would be a mod to let them change groups afterwards... ;D
Title: Re: Membergroup On Registration
Post by: bburg5 on March 18, 2009, 11:56:35 PM
Does this work with 1.1.8?

I have it installed, no errors and for some reason the only member group I have listed is Global Moderator. I have several groups set up and still this is all I get in the box.

Thanks
Title: Re: Membergroup On Registration
Post by: abbyh on April 08, 2009, 01:37:32 AM
Hey, can someone help me over here. Has worked on my forum 1.1.8, reinstalled on my freshly upgraded 2.0 RC1, and get this error.
Fatal error: Call to undefined function db_query() in /home/abbyh/public_html/nlelp/Sources/Register.php on line 81

This error is when I open the register page. Really can't figure it out, even checked all the codes manually.

please...
Title: Re: Membergroup On Registration
Post by: mrtrc266 on April 08, 2009, 01:41:56 AM
Quote from: abbyh on April 08, 2009, 01:37:32 AM
Hey, can someone help me over here. Has worked on my forum 1.1.8, reinstalled on my freshly upgraded 2.0 RC1, and get this error.
Fatal error: Call to undefined function db_query() in /home/abbyh/public_html/nlelp/Sources/Register.php on line 81

This error is when I open the register page. Really can't figure it out, even checked all the codes manually.

please...

Look at what version of SMF this is compatibale with http://mods.simplemachines.org/index.php?mod=485
Title: Re: Membergroup On Registration
Post by: abbyh on April 08, 2009, 02:02:19 AM
Quote from: mrtrc266 on April 08, 2009, 01:41:56 AM
Quote from: abbyh on April 08, 2009, 01:37:32 AM
Hey, can someone help me over here. Has worked on my forum 1.1.8, reinstalled on my freshly upgraded 2.0 RC1, and get this error.
Fatal error: Call to undefined function db_query() in /home/abbyh/public_html/nlelp/Sources/Register.php on line 81

This error is when I open the register page. Really can't figure it out, even checked all the codes manually.

please...

Look at what version of SMF this is compatibale with http://mods.simplemachines.org/index.php?mod=485

I know. I accidentally re-applied it since it is in the Package module. I tried to uninstall it but it keeps giving me this error. Then try to install again manually. The registration page is not working because of this.

Anybody who got a workaround on this, I gladly appreciate it.

Edit. Resolved.

I gladly wait for this mod to be compatible with 2.0 RC1.
Title: Re: Membergroup On Registration
Post by: Stigmartyr on May 01, 2009, 01:11:47 AM
Ok so is there a way to allow folks to leave a group they joined without having to use SMF 2?
Title: Re: Membergroup On Registration
Post by: Lithriel on May 26, 2009, 08:59:23 PM
I am also requesting SMF 2 compatibility.
Title: Re: Membergroup On Registration
Post by: Garou on May 28, 2009, 08:42:40 AM
Ive been attempting to update this to 2.0 for a friend but I'm not having any luck. The main problem I'm running into ATM...

In the original mod the code looks like...
Find...

'coppaPhone' => !empty($_POST['coppaPhone']) ? $_POST['coppaPhone'] : '',

Add After...

'groups_allowed_signup' => implode(',',$_POST['groups']),
'groups_type_signup' => (int) $_POST['group_type'],


In the update It should work like...
Find...
array('text', 'coppaPhone'),
Add After...
array('select', 'groups_allowed_signup' => implode(',',$_POST['groups'])'),
array('select', 'groups_type_signup' => (int) $_POST['group_type']'),


However I keep getting Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' for the second line. I'm not sure what I'm missing here but its causing the entire admin registration area of SMF to fail. :(
Title: Re: Membergroup On Registration
Post by: Lithriel on May 28, 2009, 01:41:56 PM
Well I am no php expert by any means, but this part looks funny to me:

implode(',',$_POST['groups'])'),

Do you really need two ',', ? 

implode(',$_POST['groups'])'),

If so, lol, show's what I know...  Maybe someone else can help you out.  I can't wait for the fix though because this will really add a lot of functionality to my forum. 
Title: Re: Membergroup On Registration
Post by: Garou on May 29, 2009, 09:11:31 AM
I wondered that myself but removing it errors that line. Its actually the second line of added code that causing the error. I thought that it might have to do with the formatting with the (int) part of the line but in checking other SMF code the line is written the same way for other similar functions. *shrug*

Thanks for trying though.  :)
Title: Re: Membergroup On Registration
Post by: mrtrc266 on July 06, 2009, 01:24:47 AM
1 Year Anniversary of this Comment http://www.simplemachines.org/community/index.php?topic=117192.msg1603101#msg1603101 (http://www.simplemachines.org/community/index.php?topic=117192.msg1603101#msg1603101)

...Is this ever going to happen? This would be a great Mod for SMF 2

Thanks in advance
Title: Re: Membergroup On Registration
Post by: Garou on July 06, 2009, 11:35:26 PM
I was trying to convert it to 2.x for a friends site. It just doesn't translate to 2.0 well and I kept crashing my test forum every time I tried. Due to my frustration with it and the amount of time I was putting into it, I had to put it aside for a while. Ill take another crack at it in the future but right now I have other responsibilities I have to take care of first.

If I get it figured out before anyone else does Ill be sure to post it here so akabugeyes can update the mod.
Title: Re: Membergroup On Registration
Post by: Waffadrunker on July 11, 2009, 04:26:47 PM
Oeh... this is so great mod but no one still haven't managed to get it work well on 2.0 ?

Anyway, i keep hoping :)


Title: Re: Membergroup On Registration
Post by: SgtMic on October 04, 2009, 12:29:57 AM
This would be a great mod for 2.0
Title: Re: Membergroup On Registration
Post by: bburg5 on October 15, 2009, 07:48:58 PM
I continue to have problems getting the membergroup to recognize the other membergroups that I have set up for the forum. The forum is reading members and additional information from another forum on the same database. If you read my earlier posts you may be able to obtain what I am having issues with. Any suggestions would be great....

Thanks

Issue Site (http://www.ffwaterfowl.com/Fire)
Site with reg. working (http://www.ffwaterfowl.com/Waterfowl)
Title: Re: Membergroup On Registration
Post by: donigedzo on October 23, 2009, 08:11:27 AM
HEy guys :(
when is this mod goind out for 2.0 RC 1.2 ?????
:( we need it urgent :( please help
Title: Re: Membergroup On Registration
Post by: donigedzo on October 26, 2009, 05:52:38 AM
Anyone ???
please help, or help by giving another similar modification pleaseee
Title: Re: Membergroup On Registration
Post by: Limones on December 01, 2009, 03:09:58 AM
1st of all, thanks for the great job with this mod.

but since i'm a noob with this stuff, i would like to make a suggestion:
could you introduced an option to change the field name "Pick your membergroup"?
Particulary to appear in another forum's language, since not even the english frase appears.

thanks
Title: Re: Membergroup On Registration
Post by: bburg5 on December 01, 2009, 12:36:23 PM
Quote from: bburg5 on October 15, 2009, 07:48:58 PM
I continue to have problems getting the membergroup to recognize the other membergroups that I have set up for the forum. The forum is reading members and additional information from another forum on the same database. If you read my earlier posts you may be able to obtain what I am having issues with. Any suggestions would be great....

Thanks

Issue Site (http://www.ffwaterfowl.com/Fire)
Site with reg. working (http://www.ffwaterfowl.com/Waterfowl)



Does anyone know how I can get this to work for the second forum?

Thanks
Title: Re: Membergroup On Registration
Post by: Garou on December 01, 2009, 09:21:04 PM
Well for starters you are working with a well outdated mod, you are trying to get it to preform a function that probably isn't compatible with however the forum(s) are split up, and this situation is a bit beyond what the author had intended for the mod to begin with.

In theory if the DB is truly shared then you should be getting members registered to both forums. The member groups from both forums should be available for you to put on the list when setting up the groups for the mod. So if you want the members to be able to chose from two groups for each forum then you would have to add all 4 and they would be able to access one site, the other, or both based on user group permissions.

Your best bet is to find or hire an experienced coder, that you trust, to look the mod and your site. They would need access to the Database and the Files to determine all the possible variables involved and even then I'm not 100% sure that it could be made compatible.

Sorry I cant come up with a better answer but you've got a very usual situation on your hands there and I'm guessing its going to take some code custom designed for your sites to make it work the way you want. Unless you or your staff can code it wont come cheep, if you can find anyone willing to take on the task.
Title: Re: Membergroup On Registration
Post by: bburg5 on December 01, 2009, 09:49:48 PM
Thank you for your time and input on this matter. I will continue to change the membergroups myself until I figure out an easier solution...


Thanks again
Title: Re: Membergroup On Registration
Post by: Stigmartyr on December 10, 2009, 04:03:32 AM
All I want for Christmas is this mod to get more development.  Please!!!  Pretty Please!!!

If members could choose more groups from their profile page and more than one group on registration this would be spectacular!

I run a car forum and right now folks can select their model of car.  I would also like them to be able to select their region so when I email/PM members I can select their region, and also create content that varies from region to region.

Fantastic use for the mod no?

Then to tie it all together members should be able to update these secondary groups from the registration page.

This is so important I'm willing to pay for it's development.  Name your price!

PLEASE!  SMF 2.0 is also inadequate to me for this function and I am seriously considering abandoning my beloved SMF for Dot Net Nuke simply because it has this all important feature.
Title: Re: Membergroup On Registration
Post by: Stigmartyr on December 17, 2009, 02:01:53 PM
Quote from: Stigmartyr on December 10, 2009, 04:03:32 AM
All I want for Christmas is this mod to get more development.  Please!!!  Pretty Please!!!

If members could choose more groups from their profile page and more than one group on registration this would be spectacular!

I run a car forum and right now folks can select their model of car.  I would also like them to be able to select their region so when I email/PM members I can select their region, and also create content that varies from region to region.

Fantastic use for the mod no?

Then to tie it all together members should be able to update these secondary groups from the registration page.

This is so important I'm willing to pay for it's development.  Name your price!

PLEASE!  SMF 2.0 is also inadequate to me for this function and I am seriously considering abandoning my beloved SMF for Dot Net Nuke simply because it has this all important feature.

Dang it.  Even waving green backs around can't get a response.  These are tough times indeed!
Title: Re: Membergroup On Registration
Post by: Stigmartyr on January 12, 2010, 05:27:41 PM
So in lieu of someone making this compatible is there a mod or page in SMF 2.0 that allows users to see all the member groups in one list?  I'm considering migrating over asap.
Title: Re: Membergroup On Registration
Post by: Khinxman on April 11, 2010, 05:17:45 PM
Any progress on this mod for 2.0 RC3? Would love to use this functionality.
Title: Re: Membergroup On Registration
Post by: live627 on April 16, 2010, 01:04:36 PM
I have written a mod for the SMF 2.0 branch that does the same thing.

Sign up and download at The CMS Loft (http://forum.thecmsloft.com/index.php)
Title: Re: Membergroup On Registration
Post by: TomW on June 14, 2010, 07:48:34 PM
Is this mod still supported?
Title: Re: Membergroup On Registration
Post by: pjn on June 21, 2010, 01:09:26 AM
this i work on smf2.0RC3?
Title: Re: Membergroup On Registration
Post by: Ferrin on December 01, 2010, 11:46:16 AM
i have installed this on 1.1.12 correctly, but the select list by admin/register/settings don't display. thanks for any help.
Title: Re: Membergroup On Registration
Post by: Stigmartyr on February 26, 2011, 02:16:33 AM
Quote from: live627 on April 16, 2010, 01:04:36 PM
I have written a mod for the SMF 2.0 branch that does the same thing.

Sign up and download at The CMS Loft (http://forum.thecmsloft.com/index.php)

YOur site is busted: "Table 'db293717542.smf_thecmsloft__settings' doesn't exist"

This still for sale?
Title: Re: Membergroup On Registration
Post by: live627 on May 05, 2011, 01:52:54 AM
Went through my unread replies pages and found this reply waiting for me.. O_o

The site had moved a couple of months ago (a year now come August) and the mod is available for purchase if you're still interested: http://dev.live627.com/index.php?action=mods#58
Title: Re: Membergroup On Registration
Post by: 420Connect.co.uk on November 18, 2014, 07:55:50 PM
apologies for bumping an old thread!




Just wondered if anyone knew of a similar MOD or could be persuaded to recode it for 2.0+ ;) lol

Title: Re: Membergroup On Registration
Post by: Siirist on June 08, 2016, 12:57:30 PM
Okay, so I am using SMF ver 2.0.11.

I went to Admin>Maintenance>Forum Maintenance>Database>Backup Database and did so

I went to Package Manager (Advanced) and set to emulate ver 1.1.5

I came to the MOD and then parsed the Mod for SMF ver 1.1.5

I downloaded the files that needed to be modified.

I edited files as possible (the edited files are attached)

Checked and ensured no users (except me) were on the forum

I went to Admin>Server Settings and placed forum in Maintenance Mode

I renamed existing files to [File Name].php~ (or where [File Name].php~ existed renamed to [File Name].php~~)

I uploaded the edited files - Yeah, didn't work as intended (I attached two Screen Shots)

I thought if the forum was set to emulate a version that I could treat forum as that version.  :-\

I am hoping that someone can "update" this Mod. Willing to pay something.

I am also hoping that this will be read.

Be Well,
Siriist
Title: Re: Membergroup On Registration
Post by: Siirist on June 08, 2016, 01:01:13 PM
Quote from: live627 on May 05, 2011, 01:52:54 AM
Went through my unread replies pages and found this reply waiting for me.. O_o

The site had moved a couple of months ago (a year now come August) and the mod is available for purchase if you're still interested: http://dev.live627.com/index.php?action=mods#58

Server not found    :o

Enough said.     :'(
Title: Re: Membergroup On Registration
Post by: Kindred on June 08, 2016, 01:26:31 PM
You almost certainly can not install a 1.1.x mod in 2.0 and should generally never try...
Title: Re: Membergroup On Registration
Post by: Siirist on June 08, 2016, 01:53:15 PM
Quote from: Kindred on June 08, 2016, 01:26:31 PM
You almost certainly can not install a 1.1.x mod in 2.0 and should generally never try...

Hey Kindred,

Thanks for the info and Oopsey   :-[   Glad I backed up and made copies of existing *,phps before trying   O:)

Alas, I think I will see if Suki will modify the mod for me for $.

Always appreciate your words.

Be Well,
Siriist
Title: Re: Membergroup On Registration
Post by: IP_Board_Rules on September 07, 2023, 08:27:54 PM
Quote from: live627 on May 05, 2011, 01:52:54 AMWent through my unread replies pages and found this reply waiting for me.. O_o

The site had moved a couple of months ago (a year now come August) and the mod is available for purchase if you're still interested: http://dev.live627.com/index.php?action=mods#58

Is your mod still available somewhere?
Title: Re: Membergroup On Registration
Post by: live627 on September 07, 2023, 08:55:51 PM
I think it's on the mod site here Joinable Groups (https://custom.simplemachines.org/index.php?mod=2716)
Title: Re: Membergroup On Registration
Post by: IP_Board_Rules on September 08, 2023, 08:43:11 AM
Thank you very much!