Support

  1. william-reed
  2. General
  3. Tuesday, March 22 2016, 12:59 AM
I have been toying around with this for a couple of days now, and so far so good.

I searched the forums for all of my questions, but still have a couple lingering that I am curious about.

1) Is it possible add fields to the "user Profile" tab? I didn't see this as an option in either the free or pro version unless I overlooked it.

2) Is there a way to carry the menu item id of Easy Profile to the "Edit Profile" button when one is editing their profile?

3) I am using php code to auto-populate the fields in my forms. The code I am using is

//
$user = JFactory::getUser();
$profile = JUserHelper::getProfile($user->id);
return $profile->profile['address1'];
//



What would be the correct mark-up to pull the info from Easy Profile into the form?
Accepted Answer
admin Accepted Answer
Admin
Hi,
When SEF is enabled the Joomla routing search some menu item from com_users component, so by creating a menu item of type Users->Edit Profile then Joomla will redirect on this menu item.

Anyway you can for menu item by changing this button with Template overriding feature. try to follow these steps:
- Copy file from /components/com_jsn/views/profile/tmpl/default.php into /templates/your-template-folder/html/com_jsn/profile/default.php (create this directory first)
- Edit button link on new file, at line 46, so from:
<a class="btn btn-default" href="/<?php echo JRoute::_('index.php?option=com_users&view=profile&layout=edit'.$other_id,false);?>">

to
<a class="btn btn-default" href="/<?php echo JRoute::_('index.php?option=com_users&view=profile&Itemid=99999&layout=edit'.$other_id,false);?>">


Why Template Override?
Because with this Joomla feature when you upgrade Easy Profile you will not lose your changes.

Alternatives:
1. You can delete this button (lines are 46 and 47)
2. You can hide this button with simple CSS code
.profile .btn-toolbar{display:none;}
  1. more than a month ago
  2. General
  3. # Permalink
admin Accepted Answer
Admin
Hi,

1) Easy Profile extends Joomla user management with own user plugin like Joomla User Profile plugin, but Easy Profile and Joomla User Profile are 2 distinct plugins, so, it can't change this plugin. You can disable Joomla User Profile plugin (disabled as default in all Joomla installations) and recreate with Easy Profile same fields.

2) Sorry I not understand well this question, can you explain me better.

3) We have our API for this, see docs at http://docs.easy-profile.com/index.php/article/jsnuser-object
  1. more than a month ago
  2. General
  3. # 1
william-reed Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
Hi,

2) Yes this is possible, but you need to have a menu item of type Users->Edit Profile or Users->User Profile. Easy Profile extends Joomla user management (not replace), so registration and edit profile pages are the same of Joomla (tabs added by Javascript and custom fields by our User Plugin).
  1. more than a month ago
  2. General
  3. # 3
william-reed Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 4
william-reed Accepted Answer
Thank you, that helps a lot. but I had to change it a bit more and this is what worked for me to get the result I needed.

index.php?option=com_users&view=profile&layout=edit&Itemid="My Menu Item Id"
  1. more than a month ago
  2. General
  3. # 5
  • 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.