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:
|
##################
Datei: thread.php#
##################
Suche Nach:
$lang->load('THREAD,MEMBERS');
Füge das auf der nächsten Zeile ein:
if ($showuseronlineinboard == 2 || $showuseronlineonboard == 1) {
include('./acp/lib/class_useronline.php');
}
Suche Nach:
$thread['topic'] = htmlconverter(textwrap($thread['topic']));
Füge das auf der nächsten Zeile ein:
if ($showuseronlineonboard == 1) {
$activtime=time()-60*$useronlinetimeout;
$online = new useronline($wbbuserdata['a_can_view_ghosts'],$wbbuserdata['buddylist']);
$guestcount = 0;
$result = $db->unbuffered_query("SELECT s.userid, u.username, u.useronlinegroupid, u.invisible,g.useronlinemarking FROM bb".$n."_sessions s LEFT JOIN bb".$n."_users u USING (userid) LEFT JOIN bb".$n."_groups g ON g.groupid=u.useronlinegroupid WHERE s.lastactivity > '$activtime' AND threadid = '$thread[threadid]' ORDER BY username ASC");
while ($row = $db->fetch_array($result)) {
if ($row['userid'] == 0) $guestcount++;
else $online->user($row['userid'],htmlconverter($row['username']),$row['useronlinemarking'],$row['invisible']);
}
$useronlinebit=$online->useronlinebit;
if ($guestcount == 1) $useronline_GUEST = $lang->items['LANG_THREAD_USERONLINE_GUEST_ONE'];
elseif ($guestcount>1) $useronline_GUEST = $lang->items['LANG_THREAD_USERONLINE_GUEST'];
else {
$useronline_GUEST="";
$guestcount="";
}
if ($guestcount>0 && $useronlinebit!="") $useronline_AND = $lang->items['LANG_THREAD_USERONLINE_AND'];
else $useronline_AND="";
if ($guestcount>0 || $useronlinebit!="") {
eval ("\$useronlinebit = \"".$lang->get4eval("LANG_THREAD_USERACTIVE")."\";");
$useronlinebit = wbb_trim($useronlinebit);
}
}
##################
Datei: thread.tpl#
##################
(ist ein Beispiel.. "<if($useronlinebit!="")><then>($useronlinebit)</then><else> </else></if>" ist könnt ihr an eine beliebige stelle tun)
Suche Nach:
<td align="left" valign="bottom"><span class="smallfont">$t->pagelink</span></td>
Ersetze mit:
<td align="left" valign="bottom"><span class="smallfont"><if($useronlinebit!="")><then>($useronlinebit)</then><else> </else></if><br/>$t->pagelink</span></td>
###################################
Erstelle folgende Sprachvariablen:#
###################################
Sprachkathegorie: thread
Sprachvariable: LANG_THREAD_USERONLINE_GUEST_ONE
Textinhalt: Besucher
Sprachkathegorie: thread
Sprachvariable: LANG_THREAD_USERONLINE_GUEST
Textinhalt: Besucher
Sprachkathegorie: thread
Sprachvariable: LANG_THREAD_USERONLINE_GUEST_AND
Textinhalt: und
Sprachkathegorie: thread
Sprachvariable: LANG_THREAD_USERACTIVE
Textinhalt: Benutzer im Thema aktiv: $useronlinebit $useronline_AND $guestcount $useronline_GUEST |