Results 1 to 2 of 2

Thread: Assign member group to user without registration/login

  1. #1
    New user
    Join Date
    04-16-18.
    Posts
    1

    Default Assign member group to user without registration/login

    Hello,

    is it possible to assign a member group to a user that is not logged in and has not registered an account (aka. guest)?
    I know that you can define a default member group that is automatically assigned to guests, but is it also possible to manually
    set and change this member group via for example a custom module?

    To be more specific, I want to implement an option in the frontend that allows the users to assign themselves to one of two member groups
    without having to register an account.

  2. #2
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    Quote Originally Posted by SamK View Post
    Hello,

    is it possible to assign a member group to a user that is not logged in and has not registered an account (aka. guest)?
    I know that you can define a default member group that is automatically assigned to guests, but is it also possible to manually
    set and change this member group via for example a custom module?

    To be more specific, I want to implement an option in the frontend that allows the users to assign themselves to one of two member groups
    without having to register an account.
    Are you talking about users and members? I think that member is what you're talkin' about. Right?

    This is not right, that you can define a default member group that is assigned to guests.

    No, an incognito visitor can not assign to anything. How should Contao recognize this visitor when he comes back to the page later?

    A guest in the FE is not a user nor a member. So he can not assign to a member group without registration. A guest can register himself and chose one ore more groups out of multiple but then he is registered. And when he logs in he can be recognized by Contao.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •