Support

  1. fyistudio
  2. Presales Question
  3. Tuesday, May 17 2016, 07:55 PM
Hi, we are creating a new site for a company that has been in business for over 20 years. We want to invite our current active customers to create a new profile on the new site but we want to distinguish between real customers and everyone else simply. Is it possible to create a custom field that must match some sort of alphanumeric syntax that we can email directly to customers for them use at time of signup? This way we can sort them into a Joomla group designed just for them?

Let me know, thanks!
admin Accepted Answer
Admin
Hi,
Easy Profile do not do this, but you can create a simple plugin with our triggers to do this.

- Create a custom field called "Invite Code" (alias "invite_code";) available only in registration page
Download, Install and Enable Skeleton Plugin (you will find it at http://docs.easy-profile.com/index.php/article/triggers)
- Open file /plugins/jsn/skeleton/skeleton.php
- remove samples functions: triggerFieldAvatarUpdate, triggerProfileUpdate
- add function like this:
public function triggerProfileUpdate($user,&$data,$changed,$isNew)
{
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$invite_code=$data['invite_code'];

// HERE CODE TO CHECK, IF VALID $is_valid=true ELSE $is_valid=false

if( $is_valid )
{
$usergroup = 8; // REPLACE WITH ID OF USERGROUP
JsnHelper::addUserToGroup( $user, $usergroup );
}
}

You can test this also with Free version.

Here docs about our triggers: http://docs.easy-profile.com/index.php/article/triggers

NOTE: This code is not tested and not supported, this is only for example purpose.
  1. more than a month ago
  2. Presales Question
  3. # 1
fyistudio Accepted Answer
Ok, I didn't know we would have to do that. In your feature list you write:

"Basic Conditions with Usergroups
You can set conditions for each field to hide/show other custom fields and assing Usergroups."

I thought we could use this feature to assign user groups? There may be a few different user groups we want to assign. Not just one.

If not how would we manipulate your code above for unique codes to be assigned to their own unique usergroup?

Thanks so much in advance. I believe we are ready to purchase as soon as we can solve this. Thanks!
  1. more than a month ago
  2. Presales Question
  3. # 2
admin Accepted Answer
Admin
Hi,
with Easy Profile you can add user to one or many usergroups with conditions (this feature is blocked in free version but you can see the parameters to understand how it works), see screenshot for example.
The previous code have a different purpose, customer require to check the a code from an external source, this was not possible with conditions, so he need to write a custom code for this.
Attachments (1)
  1. more than a month ago
  2. Presales Question
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

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.