if($t['i_from_user_id'] == osc_logged_user_id()) { $u_id = $t['i_to_user_id']; } else { $u_id = $t['i_from_user_id']; }
<?php if($t['i_from_user_id'] == osc_logged_user_id()) { $u_id = $t['i_to_user_id']; } else { $u_id = $t['i_from_user_id']; } ?> <?php echo osc_user_public_profile_url($id = $u_id); ?>
<div class="im-table-row <?php if( $logged_is_owner ) { ?>im-from<?php } ?>"> <div class="im-horizontal"> <span class="left"></span> <span class="right"><a href="<?php echo osc_user_public_profile_url($u_id); ?>"><img src="<?php echo ($img <> '' ? $img : $def_img); ?>"></a></span> </div> <div class="im-line"> <div class="im-col-12 im-name im-align-left"> <strong><?php if( $m['i_type'] == 0 ) { ?> <a href="<?php echo osc_user_public_profile_url($u_id); ?>"><?php echo $thread['s_from_user_name']; ?> </a> <?php } else { ?> <a href="<?php echo osc_user_public_profile_url($u_id); ?>"> <?php echo $thread['s_to_user_name']; } ?></a></strong> <span class="im-identifier"><?php if( $logged_is_owner ) { ?><?php _e('you', 'instant_messenger'); ?><?php } else { ?><?php echo $identify_name; ?><?php } ?></span> </div>