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.