Ajmal Lookman

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

  • Beginning Developers

    Beginning Developers

    This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking

Activity

  • Ajmal Lookman replied on the discussion topic Creating Multiple type of Users in Elgg
      As discussed above I need two signups User Signup and Company Signup. I am thinking of modifying function register_user in users.php file under engine/lib as below     $user = new ElggUser();   ... view reply
  • Ajmal Lookman replied on the discussion topic Creating Multiple type of Users in Elgg
    Hi Team Webgalli, I tried profile manager and I am planning to use it for my User logins but for comapany logins how do I maintain a seperate profile. In home page I need to have two sign up links User Sign up and Company Signup. With default... view reply
  • Ajmal Lookman added a new discussion topic Creating Multiple type of Users in Elgg in the group Beginning Developers
    Hi All, I am trying to built a Professional Social Networking website. This website will be normally used by two types of users 1.Normal Users(Professionals) 2.Company(Company Logins). Company's can sign up and they can create company...
    • Hi Team Webgalli,

      I tried profile manager and I am planning to use it for my User logins but for comapany logins how do I maintain a seperate profile. In home page I need to have two sign up links User Sign up and Company Signup. With default Elgg and Profile Manager I can manage custom registration for Users. I need to have a second Entity which will be a company. Please do help me on this.

      Thanks,

      Ajmal

    •   As discussed above I need two signups User Signup and Company Signup. I am thinking of modifying function register_user in users.php file under engine/lib as below

          $user = new ElggUser();
          $user->username = $username;
          $user->email = $email;
          $user->name = $name;
          $user->subtype = 'Normal User';// Added to add new customer type.
          $user->access_id = ACCESS_PUBLIC;
          $user->salt = _elgg_generate_password_salt();
          $user->password = generate_user_password($user, $password);
          $user->owner_guid = 0; // Users aren't owned by anyone, even if they are admin created.
          $user->container_guid = 0; // Users aren't contained by anyone, even if they are admin created.
          $user->language = get_current_language();
          $user->save();

      I have added subtype which will help me in identifying Normal User and Company User. Please correct me if I am wrong.

      Thanks in Advance,

      Ajmal

    • Profile manager, together with the Roles Framework and Roles for Profile Manager could help you do this.

      Profile manager itself,  lets them choose on signup which type of user the visitor wants to be, and gives the right profile fields. The roles for profile manager plugin attaches a role to the usertype and through the roles plugin you could override everything you want for the other usertype and give them whatever other options you want them to have.