Support

  1. skfoster
  2. Presales Question
  3. Monday, February 09 2015, 12:48 AM
I am looking for an extension for Joomla 3 that allows users to self-register after being provided a code. Different codes represent different user groups. Can easyprofile do this?
See for example: https://www.expertsupervisor.com/login_register.aspx
admin Accepted Answer
Admin
Hi,
in general you can't do this with Easy Profile.


_____________________________________

To do this you can:

ALTERNATIVE 1
Easy Profile extends Joomla User profile, so registration/edit profile pages are the same of Joomla and works with all Joomla Users Plugin. You can search a plugin to do this on Joomla extensions directory, should work.


ALTERNATIVE 2 (require PHP and Joomla Knowledge)
You need to develop a plugin

You can create a Text field for your code and when user register his account you can launch a plugin to check code and add to usergroup

here docs with skeleton plugin: https://www.easy-profile.com/docs/44-triggers.html

You can write something like this:
triggerProfileUpdate($user,&$data,$changed,$isNew){ 
if($isNew){
$code=$data['text_code_alias_field'];
// CHECK YOUR CODE
if($valid){
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
JsnHelper::addUserToGroup($user,$group_id);
}
}
}
  1. more than a month ago
  2. Presales Question
  3. # 1
skfoster Accepted Answer
Thank you for your quick reply. I will search the Joomla extensions directory.
  1. more than a month ago
  2. Presales Question
  3. # 2
Tomnius Accepted Answer
Hello,

I also want to hide the usergroup choices, and make the field required, so without a correct code there would be no registration.

I have tested before finding this post. Using a textfield and parameter condition: equals custom value, add to usergroup
This seams to work now. Maybe the component had updated since this post?

Anyway, it also works with non excisting codes, then the user is only addes to the default usergroup. How can I make sure that it only works with the custom values added in Parameters/Conditions?
Is there a condition to do this?

Thank you
  1. more than a month ago
  2. Presales Question
  3. # 3
admin Accepted Answer
Admin
Is there a condition to do this?
No sorry, our triggers are launched after user registration. You need to write a Joomla user plugin. Try to read here: https://docs.joomla.org/Plugin/Events/User#onUserBeforeSave

Tip: to get value of text field you can use this Joomla Class: JRequest::getVar('jform_alias-of-field')
  1. more than a month ago
  2. Presales Question
  3. # 4
Tomnius Accepted Answer
Content Protected
  1. more than a month ago
  2. Presales Question
  3. # 5
admin Accepted Answer
Admin
Hi,
But I don't really need a public registration page, it can be by invitation only
Easy profile extends Joomla user profile, so registration/edit profile page are the same of Joomla (tabs are generated by Javascript and custom fields are loaded by user plugin), also registration process is the same of Joomla. To allow users to register with some passkey try to read this post: https://www.easy-profile.com/support/registration-field-question.html#reply-8307

- Hidden required field on registration, with usergroup assign conditions
- Set a default value from url /quote] You can create a hidden field with condition to hide field that assign usergroups. To set value from URL try to read here: https://www.easy-profile.com/docs/27-set-default-value-in-registration-from-url.html
  1. more than a month ago
  2. Presales Question
  3. # 6
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.