2017-02-07, 03:58:00
Hi jeckyl,
I am not sure if I have understood you properly, with "position", do you mean the field position or position of what?
Look, I have created a user "bigin" with following fields:
My PHP code in template:
And here's my output, field position seems correct?:
I am not sure if I have understood you properly, with "position", do you mean the field position or position of what?
Look, I have created a user "bigin" with following fields:
My PHP code in template:
PHP Code:
$userid = 1;
$imanager = imanager();
$user = $imanager->getItem('slug=Users', $userid);
echo '<h2>User data</h2>';
echo '<table>';
foreach ($user->fields as $data) {
if(isset($data->value))
{
echo '
<tr>
<td><strong>'.$data->label.': </strong></td>
<td>'.$data->value.'</td>
</tr>
';
}
}
echo '</table>';
And here's my output, field position seems correct?: