Ejemplo n.º 1
0
}
?>
</div>

<div style="float:left; width:150px; margin-left:10px;">
  <div class="f_10 bold"><img src="/images/icons/user_16x16.png" class="png" width="16" height="16" border="0" align="absmiddle" /> Friends</div>
  <br/>
  <?php 
if (count($friends) > 0) {
    foreach ($friends as $v) {
        $avatarSrc = $v['U_AVATAR'] != '' ? PATH_FOTO . $v['U_AVATAR'] : '/images/avatar.jpg';
        echo '<div>
                <a href="/users/' . $v['U_USERNAME'] . '/" class="plain"><img src="' . $avatarSrc . '" width="30" height="30" hspace="10" vspace="2" border="0" align="absmiddle" />' . $v['U_USERNAME'] . '</a>
                <br clear="all" />';
        if ($logged_in === true) {
            if (!isset($friendIds[$v['U_USERNAME']]) && $_USER_ID != $v['U_ID']) {
                $randId = 'addFriend_' . rand(0, 1000);
                echo '<a href="javascript:void(0);" onclick="inviteFriendForm(\'' . $comment['A_EXTRA_2'] . '\', $(\'' . $randId . '\'));" id="' . $randId . '" class="plain" title="add ' . htmlspecialchars($comment['A_EXTRA_2']) . ' as a friend"><img src="/images/icons/user_add_16x16.png" class="png" width="16" height="16" border="0" hspace="5" vspace="5" /></a>';
            }
        }
        echo '  <a href="javascript:void(0);" onclick="messageForm(\'' . $v['U_USERNAME'] . '\', this);" title="send ' . $v['U_USERNAME'] . ' a message"><img src="/images/icons/chat_bubble_alt_2_16x16.png" class="png" width="16" height="16" border="0" hspace="5" vspace="5" /></a>
                ' . linkUserPage($v['U_USERNAME'], '<img src="/images/icons/website_16x16.png" class="png" width="16" height="16" border="0" hspace="5" vspace="5" alt="visit ' . $v['U_USERNAME'] . '\'s personal page" />', false) . '
              </div>
              <br/>';
    }
} else {
    echo '<div class="bold italic">No friends</div>';
}
?>
</div>
<br clear="all" />
Ejemplo n.º 2
0
                    if ($logged_in === true) {
                        if (!isset($friendIds[$friend['A_EXTRA_2']]) && $_FF_SESSION->value('username') != $friend['A_EXTRA_2']) {
                            $randId = 'addFriend_' . rand(0, 1000);
                            $underHtml .= '&nbsp; (<a href="javascript:void(0);" onclick="inviteFriendForm(\'' . $friend['A_EXTRA_2'] . '\', $(\'' . $randId . '\'));" id="' . $randId . '" class="plain"><img src="/images/icons/user_add_16x16.png" class="png" width="16" height="16" border="0" align="absmiddle" /> add ' . $friend['A_EXTRA_2'] . '</a>)';
                        }
                    }
                    $underHtml .= '</div>';
                }
                break;
            default:
                continue 2;
                break;
        }
        $avatarSrc = $v[0]['A_AVATAR'] != '' ? PATH_FOTO . $v[0]['A_AVATAR'] : '/images/avatar.jpg';
        echo '<div>
                      ' . linkUserPage($username, '<img src="' . $avatarSrc . '" width="30" height="30" hspace="10" border="0" align="absmiddle" />') . linkUserPage($username) . ' ' . $message . '.<br clear="all" />
                    </div>
                    <div style="margin-left:50px;">' . $underHtml . '</div>';
        if ($count < 3 && $count != $cntActivity) {
            echo '<div style="height:5px;">&nbsp;</div>
                      <div class="line_lite"></div>
                      <div style="height:5px;">&nbsp;</div>';
        } else {
            echo '<div style="height:10px;">&nbsp;</div>';
            break;
        }
        $count++;
    }
    echo '<div class="line_lite"></div>';
}
?>