Skip to content
Permalink
Browse files

[add] Добавлен вывод аватара в форум, комментарии, почту

  • Loading branch information...
KpuTuK committed Oct 6, 2019
1 parent b5c9a02 commit 10e54a054e54924d90e2780bf31675625385c21d
@@ -11,7 +11,8 @@
<?php if($comments): ?>
<?php foreach($comments AS $comment): ?>
<div class="menu">
<?php echo user::get_icon($comment['user_id']) ?> <?php echo user::get_username($comment['user_id'], TRUE) ?> <?php echo user::online_status($comment['last_visit']) ?> (<?php echo main::display_time($comment['time']) ?>)<br />
<img src="<?php echo user::getAvatarUrl($comment['user_id']) ?>" width="30" height="30" />
<?php echo user::get_username($comment['user_id'], TRUE) ?> <?php echo user::online_status($comment['last_visit']) ?> (<?php echo main::display_time($comment['time']) ?>)<br />
<?php echo $comment['text'] ?>
<?php if (a_check_rights($comment['user_id'], $comment['user_status'])): ?>
<br />
@@ -7,7 +7,9 @@
<?php if($messages): ?>
<?php foreach($messages as $message): ?>
<div class="menu">
<?php echo user::get_icon($message['user_id']) ?> <?php echo user::get_username($message['user_id'], TRUE) ?> <?php echo user::online_status($message['last_visit']) ?> (<?php echo main::display_time($message['time']) ?>) [<a href="<?php echo a_url('forum/posting', 'topic_id='. $topic['topic_id'] .'&amp;reply='. $message['username']) ?>">Отв</a>]<br />
<img src="<?php echo user::getAvatarUrl($message['user_id']) ?>" width="30" height="30" />
<?php echo user::get_username($message['user_id'], TRUE) ?>
<?php echo user::online_status($message['last_visit']) ?> (<?php echo main::display_time($message['time']) ?>) [<a href="<?php echo a_url('forum/posting', 'topic_id='. $topic['topic_id'] .'&amp;reply='. $message['username']) ?>">Отв</a>]<br />
<?php echo $message['message'] ?><br />
[<a href="<?php echo a_url('forum/posting', 'topic_id='. $topic['topic_id'] .'&amp;q='. $message['message_id']) ?>">Цит</a>] <?php if (a_check_rights($message['user_id'], $message['user_status'])): ?>[<a href="<?php echo a_url('forum/posting', 'message_id='. $message['message_id']) ?>">Изменить</a>]<?php if($message['is_last_message']): ?> [<a href="<?php echo a_url('forum/message_delete', 'message_id='. $message['message_id'] .'&amp;start='. @$_GET['start']) ?>">Удалить</a>]<?php endif; ?>
<?php endif ?>
@@ -11,7 +11,8 @@
<?php if ( ! empty($messages)): ?>
<?php foreach($messages as $message): ?>
<div class="menu">
<?php echo user::get_icon($message['user_id']) ?> <?php echo user::get_username($message['user_id'], TRUE) ?> <?php echo user::online_status($message['last_visit']) ?> (<?php echo main::display_time($message['time']) ?>)<br />
<img src="<?php echo user::getAvatarUrl($message['user_id']) ?>" width="30" height="30" />
<?php echo user::get_username($message['user_id'], TRUE) ?> <?php echo user::online_status($message['last_visit']) ?> (<?php echo main::display_time($message['time']) ?>)<br />
<?php echo $message['message'] ?>
<?php if (a_check_rights($message['user_id'], $message['user_status'])): ?>
<br />
@@ -8,7 +8,8 @@
<?php foreach($messages as $message): ?>
<div class="menu">
<span class="small_text">
<?php if($message['user_to_id'] == USER_ID): ?>Отправитель: <a href="<?php echo a_url('user/profile/view', 'user_id='. $message['user_from_id']) ?>"><?php echo $message['username_from'] ?></a><?php else: ?>Получатель: <a href="<?php echo a_url('user/profile/view', 'user_id='. $message['user_to_id']) ?>"><?php echo $message['username_to'] ?></a><?php endif; ?> (<?php echo date('d.m.Y в H:i', $message['time']) ?>)<br />
<?php if($message['user_to_id'] == USER_ID): ?>
<img src="<?php echo user::getAvatarUrl($message['user_from_id']) ?>" width="30" height="30" /><a href="<?php echo a_url('user/profile/view', 'user_id='. $message['user_from_id']) ?>"><?php echo $message['username_from'] ?></a><?php else: ?>Получатель: <a href="<?php echo a_url('user/profile/view', 'user_id='. $message['user_to_id']) ?>"><?php echo $message['username_to'] ?></a><?php endif; ?> (<?php echo date('d.m.Y в H:i', $message['time']) ?>)<br />
</span>
<?php echo $message['message'] ?><br />
<span style="font-size: 11px;">
@@ -13,7 +13,7 @@
<div class="menu">
<table cellpadding="0" cellspacing="0">
<tr>
<td><?php if ($user['avatar_exists']) echo '<img src="'. URL .'files/avatars/'. $user['user_id'] .'_32.jpg" alt="" />'; else echo '<img src="'. URL .'files/avatars/empty_32.png" alt="" />'; ?>&#160;</td>
<td><img src="<?php echo user::getAvatarUrl($user['user_id']) ?>" width="30" height="30" /></td>
<td>
<b><a href="<?php echo a_url('user/profile/view', 'user_id='. $user['user_id']) ?>"><?php echo $user['username'] ?></a></b> [<?php echo a_is_online($user['last_visit']) ?>]<br />
<span style="color: grey; font-size: 11px;">[<?php echo $GLOBALS['controller']->access->ru_roles[$user['status']] ?>]</span>

0 comments on commit 10e54a0

Please sign in to comment.
You can’t perform that action at this time.