News:

Wondering if this will always be free?  See why free is better.

Main Menu

Membergroup On Registration

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

Previous topic - Next topic

Indy74

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. :-\

Darcy

#61
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  ;)

My avatar has copyright © Maija

Indy74

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!  

codenaught

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. ;)
Dev Consultant
Former SMF Doc Coordinator

overnight

Does anyone know if this works for 1.1.2 or is an update on the way?

overnight

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

Lemming

Hi,

is it possible to change the code of this mod so all users can choose a membergroup *after* the registration in their profile? :)

codenaught

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 for reporting this issue to me.
Dev Consultant
Former SMF Doc Coordinator

kthulu

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!

Rudolf

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.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

cncb

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?

codenaught

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.

Dev Consultant
Former SMF Doc Coordinator

cncb

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.

jfirestone

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.

codenaught

#74
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.
Dev Consultant
Former SMF Doc Coordinator

jfirestone

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 [nofollow] 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.

ghscardinals

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?

codenaught

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).
Dev Consultant
Former SMF Doc Coordinator

ghscardinals

akabugeyes  thank you, you solved my problem =)

jfirestone

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!

Advertisement: