<td>
<img src="/<?php
require_once ( JPATH_SITE . '/components/com_jsn/helpers/helper.php' );
$jsn_user = JsnHelper::getUser($item->id);
if(empty($jsn_user->avatar_mini))
echo JURI::root().'components/com_jsn/assets/img/default.jpg';
else
echo JURI::root().$jsn_user->avatar_mini; ?>" />
</td>
// JsnUser extends the class JUser of Joomla, you can use every function of JUser
require_once ( JPATH_SITE . '/components/com_jsn/helpers/helper.php' );
// but this gives missing filter error
// $jsn_user = JsnHelper::getUser($item->id); // JsnHelper::getUser($user_id)
// $jsn_user_image = $jsn_user->getField('avatar');
// echo $jsn_user_image;
So there is no way to fire AJAX search from module without having the component-view loaded beside?Sorry but this is not possible with a simple way, this function is available for the component and not for the module.
I noticed a long delay (about 4 seconds) till the tabs are loaded and displayed properly. The internet is very fast and the website does not have any heavy load on this sub-page. Any ideas how to avoid this display-uses while loading?4 seconds is very too....with a delay like this the problem should not be Easy Profile but something else...for us would be very helpful see your site to debug javascript code, without seeing your site it's impossible to understand the issue...If you want a solution to show profile block after all resources are ready then we can provide you a javascript and CSS code, but this is not a solution.
Where is the background fade defined that comes on change fields @search?There is not a background, we works with opacity of the result list.
Where can I setup placeholder for fields with chosen?The string comes from Joomla language strings, it is a default placeholder that Joomla uses for the "chosen" javascript, you can customize it only via javascript like
jQuery(document).ready(function(){
jQuery("#jsearchform#MODULEID#_#FIELDALIAS#").chosen('destroy').chosen({"disable_search_threshold":10,"search_contains":true,"allow_single_deselect":true,"placeholder_text_multiple":"HERE THE PLACEHOLDER","placeholder_text_single":"Select an option","no_results_text":"No results match"});
});
Where you need to replace #MODULEID# with the ID of the module and #FIELDALIAS# with the alias of the field so for example something like jQuery(document).ready(function(){
jQuery("#jsearchform123_interests").chosen('destroy').chosen({"disable_search_threshold":10,"search_contains":true,"allow_single_deselect":true,"placeholder_text_multiple":"HERE THE PLACEHOLDER","placeholder_text_single":"Select an option","no_results_text":"No results match"});
});
Please send me a file to show me how I can access in other modules the avatar and the user-object when I pass a user-id.See docs at http://docs.easy-profile.com/index.php/article/jsnuser-object
@jQuery: we use custom jQuery in our own templates and projects and don´t use the core one in frontend. Yes I saw that you use regular API for that but our versions are others so it adds it to header... no problem this is solved also avatar - didn´t see the options for the field itself.Great.
like you show on your own website: on the left - is that the search module?Yes, in the left column you see a search module.
It´s ajax target seems to be one of the component view containers right?Yes, the search module need a user list page to show results
If I plublish the module on same site as component it does not fire AJAXIt should works with ajax feature if the component page have the ajax option enabled (like our site, module in the same page of user list). If it is not so then there is some problem, but to understand better we need to see your site.
JHtml::_('jquery.framework');
JHtml::_('bootstrap.tooltip');
JHtml::_('behavior.multiselect');
JHtml::_('formbehavior.chosen', 'select');
JHtml::_('jquery.framework');
I have serious problems to post anything hereI'm sorry for this, probably the content of your post contain some script that our firewall thinks it is blocking.
In frontend the cropper is missing & AJAX search does not work in frontendProbably you have some javascript error in frontend
missing settings for example avatar-size and path in backendYou can set these informations from Components->Easy Profile->Choose the "Avatar" field->move to section "Options Image Field" (see screenshot)
css seems not be loaded in frontendHave you disabled to load the main CSS from Easy Profile options?
JHtml::_('jquery.framework');
in according with Joomla 3.x Javascript Framework. We recommend you not to modify this, because we already use Joomla Api to load it (this is the way to avoid duplicate calls and interact with third party plugins). If you have duplicates then probably it depends from another plugin or template that uses a wrong way to load it. 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.
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
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.
Our site uses non fat, delicious cookies which help us improve your user experience. You can read more about it in our Legal page.