| <?php |
| if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
| |
| |
| |
| echo '<table id="blogrumProfile"> |
| <tr><td class="userProfile">'."\n"; |
| |
| $UserCache = get_cache( 'UserCache' ); |
| |
| $profileID = param( 'ID', 'integer' ); |
| if( is_logged_in() && !$profileID ) |
| { |
| $profileID = $current_User->ID; |
| } |
| |
| if( $profileID ) |
| { |
| $profileUser = $UserCache->get_by_ID( $profileID, false ); |
| $output_format = '<h3>'.$profileUser->get_preferred_name().'\'s profile'; |
| if( isset( $current_User ) && $current_User->ID == $profileID ) |
| { |
| global $admin_url; |
| $output_format .= ' <a href="'.url_add_param( $admin_url, 'ctrl=users&user_ID='.$current_User->ID ).'" title= " edit your profile ">'.get_icon( 'edit', 'imgtag' ).'</a>'; |
| } |
| $output_format .= '</h3><table class="profileDetails">'."\n". |
| '$avatar$'."\n". |
| '$signature$'."\n". |
| '$posts$'."\n". |
| '$joined$'."\n". |
| '$location$'."\n". |
| '$website$'."\n". |
| '<tr><td class="profileLeft">ICQ</td><td>'.$profileUser->dget( 'icq', 'htmlbody' ).'</td></tr>'."\n". |
| '<tr><td class="profileLeft">AIM</td><td>'.$profileUser->dget( 'aim', 'htmlbody' ).'</td></tr>'."\n". |
| '<tr><td class="profileLeft">MSN</td><td>'.$profileUser->dget( 'msn', 'htmlbody' ).'</td></tr>'."\n". |
| '<tr><td class="profileLeft">Yahoo</td><td>'.$profileUser->dget( 'yim', 'htmlbody' ).'</td></tr>'."\n". |
| '</table>'."\n"; |
| } |
| else |
| { |
| $profileUser = NULL; |
| $output_format = '<h3>'.T_( 'No user selected!' ).'</h3>'; |
| } |
| |
| $Plugins->call_by_code( 'am_profiles', array( |
| 'obj' => $profileUser, |
| 'avatar' => '<tr><td class="profileLeft">Avater</td><td>$avatar$</td></tr>', |
| 'signature' => '<tr><td class="profileLeft">Signature</td><td>$signature$</td></tr>', |
| 'posts' => '<tr><td class="profileLeft">Posts</td><td>$posts$</td></tr>', |
| 'joined' => '<tr><td class="profileLeft">Joined</td><td>$date$</td></tr>', |
| 'location' => '<tr><td class="profileLeft">Location</td><td>$location$</td></tr>', |
| 'website' => '<tr><td class="profileLeft">Website</td><td><a href="$website$" title=" '.sprintf( T_( 'visit %s\'s website' ), '$name$' ).' ">$website$</a></td></tr>', |
| 'output_format' => $output_format, |
| 'no_guests' => '<h3>'.T_( 'You need to be a registered member to view profiles' ).'</h3>'."\n", |
| 'profile_display' => true, |
| ) ); |
| |
| echo '</td></tr></table>'."\n"; |
| |
| |
| ?> |