Support

  1. dladuron
  2. Features Request
  3. Friday, March 20 2015, 07:09 AM
Have different user types with their own DB tables, Need to pull different user profile information from these two tables depending on the user type.
Thus I would like to have different profile page layout / items for different user types.
How do I connect to DB table other than #__users and how do I create different profile pages?
If possible I would like to not have another profile table taking up space.
admin Accepted Answer
Admin
Hi,
Have different user types with their own DB tables, Need to pull different user profile information from these two tables depending on the user type.
No sorry, this is not possible, to do this you need to write a plugin to copy data from our table to custom table. You can build this plugin with our API (https://www.easy-profile.com/docs/44-triggers.html).
example:
- Download install and enable our skeleton plugin (you can download this at the end of docs page)
- Remove samples functions: triggerFieldAvatarUpdate, triggerProfileUpdate
- Write your function to copy data in another table based on ACL of user
triggerProfileUpdate($user,&$data,$changed,$isNew){ 
$userACL=$user->getAuthorisedViewLevels();
if(in_array(10,$userACL)) // replace 10 with your ACL
{
//....CODE to COPY new informations on your DB, new info are into array $data
}
if(in_array(12,$userACL)) // replace 12 with your ACL
{
//....CODE to COPY new informations on your DB, new info are into array $data
}
}

IMPORTANT NOTE: this is example function, so not tested and not supported. This require PHP and Joomla devs knowledge
NOTE 2: getAuthorisedViewLevels is a Joomla built-in function.

Thus I would like to have different profile page layout / items for different user types.
You can choose which field are available for each accesslevel with field parameter "Available for", to change layout based on ACL you need to apply a template override. In templete override you can change layout based from some field value or ACL
IMPORTANT NOTE: Template override require PHP and Joomla devs knowledge

How do I connect to DB table other than #__users and how do I create different profile pages?
Sorry this is not possible, Easy Profile extends Joomla user Management, no replace it.
  1. more than a month ago
  2. Features Request
  3. # 1
  • 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.