<help> need mod member online on jcms 4.0.0

Тема закрыта
360
.
i need script for showing nick member online for jcms 4.0.0
.
echo '<div class="menu">';
$onltime = $realtime - 300;
$q = @mysql_query("select * from `users` where lastdate>='" . intval($onltime) . "';");
while ($arr = mysql_fetch_array($q)) {
echo '<a href="' . $set['homeurl'] . '/users/profile.php?user=' . $arr['id'] . '">' .$arr['name'] . '</a>,';
}
echo '</div>';
.
@KanzaS thank you,if i need to set showing nick but using limit,example : 5 member nick show,and 15 hide
.
KanzaS (01.01.2011/21:20)
[php]echo '<div class="menu">';
$onltime = $realtime - 300;
$q = @mysql_query("select * from `users` where lastdate>='" . intval($onltime) . "';");
while ($arr = mysql_fetch_array($q)) {
echo '<a
where do i put this code?
.
you need to put this code at the start of online.php file
.
I put the code before this this line.
*/
echo '<div class="phdr"><b>' . $lng_online['who_on_site'] . '</b></div>';
if ($rights > 0)
echo '<div class="topmenu">' . ($mod == 'guest' ? '<a href="index.php?act=online">' . $lng['authorized'] . '</a> | <b>' . $lng['guests'] . '</b>' : '<b>' . $lng['authorized'] . '</b> | <a href="index.php?act=online&amp;mod=guest">' . $lng['guests'] . '</a>')
. '</div>';
$onltime = $realtime - 300;
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `" . ($mod == 'guest' ? 'cms_guests' : 'users') . "` WHERE `lastdate` > '$onltime'"), 0);
if ($total) {
$req = mysql_query("SELECT * FROM `" . ($mod == 'guest' ? 'cms_guests' : 'users') . "` WHERE `lastdate` > '$onltime' ORDER BY " . ($mod == 'guest' ? "`movings` DESC" : "`name` ASC") . " LIMIT $start,$kmess");
while ($res = mysql_fetch_assoc($req)) {
echo $i % 2 ? '<div class="list2">' : '<div class="list1">';
$where = explode(",", $res['place']);

but online user name doesn't appear below,,, anything wrong I did?
.
hmm..i have script showing online member nick on end.php,but i need modif it..i need to showing just five nick,how to limit it?
.
Fast666 (01.01.2011/22:49)
@KanzaS thank you,if i need to set showing nick but using limit,example : 5 member nick show,and 15 hide
Hello mr.fast :he:
.
INDONESIA
This is no different from member online KansaZ give, but the script i include on another file , and in end.php i give require_once it's work
[ DOWNLOAD simple_member_online.zip ]
Всего: 9