Panel U?ytkownicy Online... Userzy w kolumnie jak zrobi??
|
Eklipse |
Dodany dnia 10.04.2007 14:17:22
|

Przedszkolak

Postów: 51 Ostrzeżeń: 1
Data rejestracji: 25.07.2006 10:12
|
Witam. Mam takie ma?e pytanie albo i nawet pro?b? do wszystkich specjalistów w dziedzinie Fusiona Chodzi mi mianowicie o panel U?ytkownicy Online Pos?u?? si? tutaj Php Nuke gdzie u?ytkownicy Online ukazywani si? w rz?dzie tzn jest tak:
1. Eklipse
2. 4lo
3. Wapster
4. Zakk
5. Pawe?
6. Konrad
itd.
Bardzo mi si? to podoba i chcia?by to w jaki? sposób zastosowa? w Php Fusion. Czy jest taka mo?liwo??? Da si? to jako? zrobi?? My?l? ?e by? by to bardzo fajny bajerek Numerowani u?ytkownicy w rz?dzie Chyba ?e te numerki sprawiaj? problem to mog? by? same nicki. To zale?y od Was. Ja kompletnie sie nie znam i mia?bym problem z zrobieniem takiego czego? dlatego zwracam si? do Was B?d? bardzo wdzi?czny i my?l? ?e nie tylko ja Pozdrawiam Eklipse.
Edytowane przez Pieka dnia 01.01.2009 20:45:35
|
|
|
|
W?cibski Go?? |
Dodany dnia 23.10.2025 05:32:17
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
dante77 |
Dodany dnia 10.04.2007 14:20:43
|

Bywalec

Postów: 332 Pomógł: 25 Ostrzeżeń: 1
Data rejestracji: 09.05.2005 00:08
|
Jest do tego nawet mod online user extended panel. Poszukaj w labolatorium. |
|
|
|
Eklipse |
Dodany dnia 10.04.2007 21:40:18
|

Przedszkolak

Postów: 51 Ostrzeżeń: 1
Data rejestracji: 25.07.2006 10:12
|
Patrza?em ale nie ma takiego czego?? |
|
|
|
szer |
Dodany dnia 10.04.2007 21:44:00
|

Zaawansowany

Postów: 1139 Pomógł: 4
Data rejestracji: 13.11.2004 23:06
|
Masz:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2007 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: online_users_panel.php
| CVS Version: 1.03
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if ($settings['maintenance'] != "1") {
$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
if (dbrows($result) != 0) {
$result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
} else {
$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
$result = dbquery("INSERT INTO ".$db_prefix."online (online_user, online_ip, online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
openside($locale['010']);
$result = dbquery(
"SELECT ton.*, tu.user_id,user_name FROM ".$db_prefix."online ton
LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id"
);
$guests = 0; $members = array();
while ($data = dbarray($result)) {
if ($data['online_user'] == "0") {
$guests++;
} else {
array_push($members, array($data['user_id'], $data['user_name']));
}
}
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['011'].$guests."<br>\n";
if (count($members) > 0) {
$i = 1;
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['012']."[color=red]<br>[/color]";
while (list($key, $member) = each($members)) {
echo "[color=red]$i.[/color] <a href='".BASEDIR."profile.php?lookup=".$member[0]."' class='side'>".$member[1]."</a>";
if ($i != count($members)) echo "<br>";
$i++;
}
echo "<br>\n";
} else {
echo $locale['013']."<br>\n";
}
echo "<br><img src='".THEME."images/bullet.gif' alt=''> ".$locale['014'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br>\n";
if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."<br>\n";
$data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['016']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a>\n";
closeside();
}
?>
Poprawilem bledy/Pieka
Edytowane przez Pieka dnia 10.04.2007 21:59:40
|
|
|
|
goju92 |
Dodany dnia 17.05.2007 19:19:00
|

Przedszkolak

Postów: 39
Data rejestracji: 16.03.2006 16:32
|
szer napisa?/a:
Masz:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2007 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: online_users_panel.php
| CVS Version: 1.03
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if ($settings['maintenance'] != "1") {
$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
if (dbrows($result) != 0) {
$result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
} else {
$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
$result = dbquery("INSERT INTO ".$db_prefix."online (online_user, online_ip, online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
openside($locale['010']);
$result = dbquery(
"SELECT ton.*, tu.user_id,user_name FROM ".$db_prefix."online ton
LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id"
);
$guests = 0; $members = array();
while ($data = dbarray($result)) {
if ($data['online_user'] == "0") {
$guests++;
} else {
array_push($members, array($data['user_id'], $data['user_name']));
}
}
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['011'].$guests."<br>\n";
if (count($members) > 0) {
$i = 1;
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['012']."[color=red]<br>[/color]";
while (list($key, $member) = each($members)) {
echo "[color=red]$i.[/color] <a href='".BASEDIR."profile.php?lookup=".$member[0]."' class='side'>".$member[1]."</a>";
if ($i != count($members)) echo "<br>";
$i++;
}
echo "<br>\n";
} else {
echo $locale['013']."<br>\n";
}
echo "<br><img src='".THEME."images/bullet.gif' alt=''> ".$locale['014'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br>\n";
if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."<br>\n";
$data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['016']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a>\n";
closeside();
}
?>
Poprawilem bledy/Pieka
gdzie to wkleic? |
|
|
|
szer |
Dodany dnia 17.05.2007 19:31:57
|

Zaawansowany

Postów: 1139 Pomógł: 4
Data rejestracji: 13.11.2004 23:06
|
Ale? odkopa?.... To jest tre?? online_users_panel.php |
|
|
|
Pieka |
Dodany dnia 17.05.2007 19:32:53
|


Postów: 19887 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
goju92 napisa?/a:
szer napisa?/a:
Masz:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2007 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: online_users_panel.php
| CVS Version: 1.03
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if ($settings['maintenance'] != "1") {
$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
if (dbrows($result) != 0) {
$result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
} else {
$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
$result = dbquery("INSERT INTO ".$db_prefix."online (online_user, online_ip, online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
openside($locale['010']);
$result = dbquery(
"SELECT ton.*, tu.user_id,user_name FROM ".$db_prefix."online ton
LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id"
);
$guests = 0; $members = array();
while ($data = dbarray($result)) {
if ($data['online_user'] == "0") {
$guests++;
} else {
array_push($members, array($data['user_id'], $data['user_name']));
}
}
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['011'].$guests."<br>\n";
if (count($members) > 0) {
$i = 1;
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['012']."[color=red]<br>[/color]";
while (list($key, $member) = each($members)) {
echo "[color=red]$i.[/color] <a href='".BASEDIR."profile.php?lookup=".$member[0]."' class='side'>".$member[1]."</a>";
if ($i != count($members)) echo "<br>";
$i++;
}
echo "<br>\n";
} else {
echo $locale['013']."<br>\n";
}
echo "<br><img src='".THEME."images/bullet.gif' alt=''> ".$locale['014'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br>\n";
if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."<br>\n";
$data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['016']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a>\n";
closeside();
}
?>
Poprawilem bledy/Pieka
gdzie to wkleic?
W ramke i na sciane :D
Jestem jaki jestem 
|
|
|
|
Eklipse |
Dodany dnia 28.06.2007 21:53:05
|

Przedszkolak

Postów: 51 Ostrzeżeń: 1
Data rejestracji: 25.07.2006 10:12
|
Dzia?a Naprawd? super sprawa Dzi?ki wielkie  |
|
|
|
lori129 |
Dodany dnia 02.11.2007 15:51:43
|

Przedszkolak

Postów: 7
Data rejestracji: 06.06.2005 11:50
|
Witam
A mo?e kto? mi powiedzie? jak zrobi? statystyki tak jak to jest na stronie www.lkszulawy.yum... - Statystyki, w których znajduj? si? tylko dwie pozycje i nic wi?cej:
userów na stronie: 0
go?ci na stronie: 4
Chodzi mi tylko aby u?ytkownik niezalogowany i zalogowany widzia? tylko te dwie linijki.
Pozdro
www.kibic-zts.pl
Edytowane przez Milka dnia 02.11.2007 20:15:27
|
|
|