Statistik |
Beiträge: 144.534 (Täglich: 19,19 )
Themen: 16.701
Mitglieder: 13.209
Neuestes Mitglied: zitronentee.
Ausl. d. letzten Minute: 177%
Ausl. d. letzten 5 Minuten: 176%
Ausl. d. letzten 15 Minuten: 158%
Aktulle Uhrzeit: 11:31
Freier Webspace: 4.04 TB
PHP-Version: 7.4.33
|
|
|
Avatar bei Useronlineanzeige |
Viktor
Administrator
Zeige Viktor auf Karte
Dabei seit: 15.08.2003
Beiträge: 31.570
363 Filebase-Einträge
Alter: 66 Jahre
Herkunft: NRW wBB-Version: wBB2.3 PHP-Version: 7.4.33 MySQL-Version: 10.5.19-MariaDB Wo bist du gehostet?: eigener Server
Bewertung:
Level: 71 [?]
Erfahrungspunkte: 237.776.335
Nächster Level: 266.777.854
|
|
|
24.05.2006 23:32 |
|
|
|
Danke der Nachfrage Viktor funzt super,und ist eine echt gut gelungene Sache
__________________
|
|
25.05.2006 00:36 |
|
|
|
so nun habe ich alles nochmal neu gemacht.Jetzt werden die Avatare angeziet,so weit so gut.Nur weden die Avatare nur bein den Usern angezeigt,die Online waren,aber nicht die Online sind.Hat jemand eine Lösung,wie man das ganze umfrehen kann lol
__________________
|
|
16.08.2006 23:29 |
|
|
|
Wie kann man das machen, das das auch bei denen die online waren angezeigt werden!
|
|
16.02.2008 17:24 |
|
|
|
ne ist kein popup. also bei mir nicht. bei mir wird das normal angezeigt. nicht im popup, oder wie meintest du das mit popup??
|
|
16.02.2008 21:45 |
|
|
|
Okay ich danke dir. Ist super nett von Dir!
Hab mal den Code von der class_wwo denke ma da muss was geändert werden:
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
|
<?php
//class wwo cpy 2004/2005 by ShadowByte (www.it-4all.org)
class wwo {
var $can_view_ghosts = 0;
var $useronlinebit = "";
var $userid = 0;
var $useronlinetimeout = 0;
var $ignorelist = 0;
var $buddies = "";
function wwo ($userid, $useronlinetimeout) {
global $db, $n;
$this->userid = $userid;
$this->useronlinetimeout = $useronlinetimeout;
$now = time();
$date_today = getdate($now);
$time_today=mktime(0,0,0,$date_today[mon],$date_today[mday],$date_today[year]);
$res = $db->query("DELETE FROM bb".$n."_wwo WHERE timest<'".$time_today."'");
if($this->userid != "" && $this->userid != 0) {
$row_user = $db->query_first("Select w.* From bb".$n."_users u
LEFT JOIN bb".$n."_wwo w USING(userid)
Where u.userid='".$userid."'");
if($row_user['userid'] == $this->userid) {
$timeout = $useronlinetimeout*60;
if(($row_user['timest']+$timeout) <= $now) {
$db->unbuffered_query("Replace into bb".$n."_wwo (userid, timest)
Values ('$this->userid','$now')");
}
} else {
$db->unbuffered_query("Insert into bb".$n."_wwo (userid, timest)
Values ('$this->userid','$now')");
}
$rec = $db->query_first("Select id,onlinerec From bb".$n."_wwo_rec");
$totalonline = $db->query_first("Select Count(userid) as total From bb".$n."_wwo");
if($rec['onlinerec'] < $totalonline['total']) {
$db->unbuffered_query("Replace into bb".$n."_wwo_rec (id, onlinerec, timest)
Values ('$rec[id]','$totalonline[total]','$now')");
}
}
}
function show_wwo($can_view_ghosts, $buddylist, $ignorelist) {
global $db, $n, $tpl, $session, $lang;
$this->can_view_ghosts = $can_view_ghosts;
$this->userid = $userid;
$this->buddies = explode(' ',$buddylist);
$this->ignorelist = $ignorelist;
if($this->ignorelist == "") $this->ignorelist = 0;
$res = $db->query("Select w.userid, w.timest, u.username, u.invisible, u.activation, g.useronlinemarking
From bb".$n."_wwo w
LEFT JOIN bb".$n."_users u USING(userid)
LEFT JOIN bb".$n."_groups g ON g.groupid=u.useronlinegroupid
Where u.userid NOT IN (".str_replace(" ",",",$this->ignorelist).")
Order by w.timest DESC");
$wwo_user = "";
while($user = $db->fetch_array($res)) {
$notactive = "";
$onlinehour = "";
$user['username'] = $this->htmlconvert($user['username']);
if(in_array($user['userid'],$this->buddies))
eval ("\$user['username'] = \"".$tpl->get("index_wwo_buddy")."\";");
if($user['useronlinemarking'] != "")
$user['username']=sprintf($user['useronlinemarking'],$user['username']);
if($user['invisible'] == 1) {
if($can_view_ghosts == 1) {
$onlinehour = date("H:i", $user['timest']);
if($user['activation'] != 1) eval ("\$notactive = \" ".$lang->get("LANG_GLOBAL_WWO_NACTIVE")."\";");
eval ("\$wwo_user .= \"".$tpl->get("index_wwo_userbit")."\";");
}
} else {
$onlinehour = date("H:i", $user['timest']);
if($user['activation'] != 1) eval ("\$notactive = \" ".$lang->get("LANG_GLOBAL_WWO_NACTIVE")."\";");
eval ("\$wwo_user .= \"".$tpl->get("index_wwo_userbit")."\";");
}
}
return $wwo_user;
}
function show_recs() {
global $db, $n, $tpl, $lang;
$c_user = $db->query_first("Select Count(w.userid) as totaluser
From bb".$n."_wwo w
LEFT JOIN bb".$n."_users u USING(userid)
Order by w.timest DESC");
$c_ghosts = $db->query_first("Select Count(u.invisible) as totalghosts
From bb".$n."_wwo w
LEFT JOIN bb".$n."_users u USING(userid)
Where u.invisible = 1
Order by w.timest DESC");
if($c_user['totaluser'] == 1)
eval ("\$w_user = \"".$lang->get("LANG_GLOBAL_WWO_WAS")."\";");
else
eval ("\$w_user = \"".$lang->get("LANG_GLOBAL_WWO_WAS_PL")."\";");
if($c_ghosts['totalghosts'] == 1)
eval ("\$w_ghosts = \"".$lang->get("LANG_GLOBAL_WWO_WAS")."\";");
else
eval ("\$w_ghosts = \"".$lang->get("LANG_GLOBAL_WWO_WAS_PL")."\";");
$user_rec = $db->query_first("Select onlinerec, timest From bb".$n."_wwo_rec");
$rec_date = date("d.m.Y", $user_rec['timest']);
$rec_time = date("H:i", $user_rec['timest']);
eval ("\$lang->items['LANG_GLOBAL_WWO_DESC'] = \"".$lang->get4eval("LANG_GLOBAL_WWO_DESC")."\";");
eval ("\$wwo_recs = \"".$lang->get("LANG_GLOBAL_WWO_DESC")."\";");
return $wwo_recs;
}
/** htmlconverter function **/
function htmlconvert($text) {
static $charset;
global $phpversion;
if(!isset($charset)) {
global $lang;
if(isset($lang) && $lang && is_object($lang)) $charset=strtolower($lang->get("LANG_GLOBAL_ENCODING"));
else $charset="";
}
if(version_compare($phpversion, "4.3.0")>=0 && ($charset=="iso-8859-1" || $charset=="iso-8859-15" || $charset=="utf-8" || $charset=="cp1252" || $charset=="windows-1252" || $charset=="koi8-r" || $charset=="big5" || $charset=="gb2312" || $charset=="big5-hkscs" || $charset=="shift_jis" || $charset=="euc-jp")) return @htmlentities($text, ENT_COMPAT, $charset);
elseif($charset=="iso-8859-1" || $charset=="windows-1252") return htmlentities($text);
else return htmlspecialchars($text);
}
}
?> |
|
Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von nrwfamilien: 17.02.2008 17:39.
|
|
16.02.2008 22:20 |
|
|
|
Ich danke dir recht herzlich. Hier wird einem echt geholfen. Du bist echt ein Meister!
|
|
17.02.2008 20:20 |
|
|
|
|
|
|