Support

  1. namly161
  2. Support
  3. Tuesday, July 19 2016, 11:17 AM
I want value for select list when show is ABC/Kingdom not abc but it's show value in profile page is abc. value default for select list is abc|ABC/Kingdom

$subsidiary=$this->form->getField('subsidiary');
$department=$this->form->getField('department');
if( $title || $subsidiary || $department ) : ?>
<div class="jsn_infodate">
<?php if($title) : ?>
<div class="jsn_title">
<b><?php echo JText::_('COM_JSN_TITLE'); ?>:</b> <?php echo ($this->data->title); ?>
</div>
<?php endif; ?>
<?php if($subsidiary) : ?>
<div class="jsn_subsidiary">
<b><?php echo JText::_('COM_JSN_SUBSIDIARY'); ?>:</b> <?php echo ($this->data->subsidiary); ?>
</div>
<?php endif; ?>
<?php if($department) : ?>
<div class="jsn_department">
<b><?php echo JText::_('COM_JSN_DEPARTMENT'); ?>:</b> <?php echo ($this->data->department); ?>
</div>
<?php endif; ?>

I coding default.php file in components\com_jsn\views\profile\tmpl
admin Accepted Answer
Admin
Hi,
$this->data contains raw data, to have correct output you need to use JHtml::_('jsn.'.$field->type, $field);

Simplest Alternative
we recommend to use our API (much more simple), see docs at http://docs.easy-profile.com/index.php/article/jsnuser-object
example:

$user=JsnHelper::getUser($this->data->id);
$value_of_select=$user->getValue('alias_of_select'); // Return "abc"
$output_of_select=$user->getField('alias_of_select'); // Return "ABC/Kingdom"
  1. more than a month ago
  2. Support
  3. # 1
namly161 Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi,
Logout
Joomla not allow direct link to logout, it require AccessToken sent via form. So this is not so simple and we not support this thing.

Placeholder on TextArea
There is no any options for this, replied at https://www.easy-profile.com/support/set-maximum-for-textarea.html#reply-13143

Line in TextArea
You can fix this via CSS, the container of textarea in profile page have "fieldaliasValue" CSS class, for example for field with alias "aboutme" you have this CSS class "aboutmeValue".

So you can add this CSS code:

fieldaliasValue{
white-space: pre;
}
  1. more than a month ago
  2. Support
  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.