i need help creating a block or even modifying the "who is online" block
i need to see who's online [ by their username] under the line that says There are 5 members online
Code:
$member_online_num = $db->sql_numrows($result);
that shows the number of the members online i guess
what about their username ?
Code:
$content .= "<form action=\"modules.php?name=Your_Account\" method=\"post\">";
if (is_user($user)) {
$content .= "
<img src=\"images/blocks/group-4.gif\" height=\"14\" width=\"17\"> "._BWEL.", $uname.
\n<hr>\n";
$sql = "SELECT user_id FROM $user_prefix"._users." WHERE username='$uname'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
thats it ? i would appreciate it very much
thanks =) :wink: