$options = (array) json_decode( $data[ 'select_alias_field' ] );
if ( is_array( $options ) && count( $options ) ) {
$content = '<ul>';
foreach( $options as $option ) {
$content .= '<li>' . $option . '</li>';
}
$content .= '</ul>';
$data[ 'textarea_field_alias' ] = $content;
}
else $data[ 'textarea_field_alias' ] = '';
$texts = array(
'value1' => 'text1',
'value2' => 'text2',
'value3' => 'text3',
);
$content .= '<li>' . $text[ $option ] . '</li>';
$texts = array(
'value1' => 'text1',
'value2' => 'text2',
'value3' => 'text3'
);
$options = (array) json_decode( $data[ 'select_alias_field' ] );
if ( is_array( $options ) && count( $options ) ) {
$content = '<ul>';
foreach( $options as $option ) {
if( isset( $text[ $option ] ) ) $content .= '<li>' . $text[ $option ] . '</li>';
}
$content .= '</ul>';
$data[ 'textarea_field_alias' ] = $content;
}
else $data[ 'textarea_field_alias' ] = '';
if( isset( $text[ $option ] ) ) $content .= '<li>' . $text[ $option ] . '</li>';
if( isset( $texts[ $option ] ) ) $content .= '<li>' . $texts[ $option ] . '</li>';
$texts = array(
'value_for_option1' => 'Regisseur',
'value_for_option2' => 'Technicus',
......
);
$texts = array(
'music' => 'Music',
'art' => 'art'
)
only thing.. when there will be an option added, i need to change the skeleton.php either..Yes, you should add the new option in the skeleton.php file, there is also another way to make it dynamically but it is too complex.
class PlgJsnSkeleton extends JPlugin
{
public function triggerProfileUpdate($user,&$data,$changed,$isNew)
{
$texts = array(
'0' => 'Acteur',
'1' => 'Voice-over',
'2' => 'Vertaler',
'3' => 'Regisseur',
'4' => 'Technicus'
);
$options = (array) json_decode( $data[ 'test3' ] );
if ( is_array( $options ) && count( $options ) ) {
$content = '<ul>';
foreach( $options as $option ) {
if( isset( $texts[ $option ] ) ) $content .= '<li>' . $texts[ $option ] . '</li>';
}
$content .= '</ul>';
$data[ 'test3_text' ] = $content;
}
else $data[ 'test3_text' ] = '';
}
}
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.