signup page

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
G Belgrado
Veteran Member
Posts: 61
Joined: 2017-03-12 09:24

signup page

Post by G Belgrado » 2023-10-23 09:26

I have 3 groups in membership_groups
but I need it on the signup page
the group list is hidden and the registration is forcibly inserted with group 1
anyone want to help me?

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1231
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: signup page

Post by onoehring » 2023-10-24 06:34

Hi,

I am not sure what you want to accomplish. I do not understand your problem. Can you please rephrase it.
You have 3 groups - ok.
If it's allowed for new members to sign up, can't they choose the group?
If you want all "new members" to have "Group A" after sign up ("forcibly inserted with group 1" as you write) simply allow sign in to this group only. I am not sure, but can't this be done?
Or: Allow sign up and add all new sign ups by code to Group 1

Olaf

G Belgrado
Veteran Member
Posts: 61
Joined: 2017-03-12 09:24

Re: signup page

Post by G Belgrado » 2023-10-24 07:46

Hi Olaf
You're right, I expressed myself poorly
in the registration form, I would like to hide the groups drop-down menu
and the "groupID" value to be inserted in the membership_users table, always be "groupA"

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1231
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: signup page

Post by onoehring » 2023-10-25 08:18

Hi,

I am not sure, but isn't it possible to define for which groups a user can sign up? Yes, it is (just tested):

Simply set in your group 1 (where all new users belong to) the corresponding checkbox. Disable this checkbox on all other groups!:
ag_new_group_signup.png
ag_new_group_signup.png (11.38 KiB) Viewed 4671 times
Then, once a new user want's to sign up, this user can choose only ONE group:
ag_just_one_group.png
ag_just_one_group.png (17.64 KiB) Viewed 4671 times
IMHO this should be what you desire - is it not?
Olaf

G Belgrado
Veteran Member
Posts: 61
Joined: 2017-03-12 09:24

Re: signup page

Post by G Belgrado » 2023-10-25 16:20

yes I did this
but I would like to hide the groups drop-down menu
and enter the groupID as if it were selected.
Olaf, thanks for your patience

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1231
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: signup page

Post by onoehring » 2023-10-25 19:29

Hi,

so what is the problem? When you remove (uncheck) the checkbox in the group 2 and group 3 setting, these groups should not appear.
You could also use javascript to preselect group 1 while on the sign up page and at the same time make the dropdown hidden...
But... it seems MUCH easier to me to simply disallow selecting a group at all and use a hook to assign group 1 to each new user by php code.

Olaf

Post Reply