<table class="teachers-tabel"> <tr> <td>photo</td> <td>[[+photo:notempty=`<img src="[[+photo]]" alt="[[+username]]"/>`:empty=`<img src="assets/images/no-picture.jpg" alt="no picture"/>`]]</td> </tr> <tr> <td>Name:</td> <td class="teacher-cel">[[+fullname]]</td> </tr> </tr> <tr> <td>Teaching:</td> <td class="teacher-cel">[[+extended.instrument]]</td> </tr> <tr> <td>Teaches<br>also:</td> <td>[[+extended.instrument2]]</td> </tr> <tr> <td>More</td> <td>[[+id]]</td> </tr> </table>
This question has been answered by stevebravo. See the first response.
if($_GET['id'] != ''){ $id = $_GET['id']; print $id; print ' [[!Profile? &user=`.$id.` &prefix=`user.`]] '; print '[[+user.usersname]]'; }
[[!Profile? &user=`'.$id.'` &prefix=`user.`]]
<?php $output = 'No User Logged In'; if ($modx->user->get('username') != '(anonymous)') { $id = $modx->user->get('id'); $output = '[[!Profile? &user=`' . $id . '` &prefix=`user.`]]'; $output .= '[[+user.username]]'; } return $output;