Private Statistik auf HauptseiteHack

Helmchen
Titel: Private Statistik auf HauptseiteHack
Version: 1.0
Beschreibung: Hack Name: Private Statistik auf Hauptseite
Hack Ersteller: Helmchen (bei AFF Lord Helmchen ...)
Forenversion: WBB Lite 1.0.0

Beschreibung:
Dieser Hack fügt unter die Baordstatistik (auf der Hauptseite)
noch eine individuelle Userstatistik.
Diese Wird nur angezeit, wenn man auch angemeldet ist!

Copyright ist denke ich klar...
-> ansonsten siehe Readme ^^


Have a nice day everyone ^_^
----


weiter zum Download
B.A.B.O.
thx Freude
master noname
nicht schlecht, ich ahbe sie ausporbiert und finde sie gut
BreiteSeite
ersetzt einfach mal auf der index.php folgendes:
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:
#### Anfang Private Statistik auf Hauptseite ####
if($wbbuserdata['userid']) {
	$uinfos = $db->query_first("SELECT * FROM bb".$n."_users WHERE userid LIKE '".$wbbuserdata['userid']."'");
	$userpost = ($uinfos['userposts']);
	$ugrid = ($uinfos['groupid']);
	$uthreadsfrage = $db->query_first("SELECT COUNT(threadid)as anzahl FROM bb".$n."_threads WHERE starterid LIKE '".$wbbuserdata['userid']."'");
	$uthreads = $uthreadsfrage['anzahl'];
	$gruppennamenfrage = $db->query_first("SELECT title from bb".$n."_groups WHERE groupid Like '".$ugrid."'");
	$ugr = ($gruppennamenfrage['title']);
	$lvisit = formatdate($dateformat,$wbbuserdata['lastvisit']);
	$reg = formatdate($dateformat,$wbbuserdata['regdate']);
	$name = ($wbbuserdata['username']);
	$psh = '
	<tr bgcolor="#0B6295" id="tabletitle">
			<td colspan="6"><font face="Tahoma,Helvetica" size="1" color="#ffffff"><b>Private Statistik von '.$name.'</b></font></td>
		</tr>
			<tr bgcolor="#f5f5f5" id="tablea">
			<td colspan="6"><font face="Tahoma,Helvetica" size="1">Benutzergruppe: <b>'.$ugr.'</b><br>
								 Eigene Beiträge: <b>'.$userpost.'</b><br>
								 Eigene Themen: <b>'.$uthreads.'</b><br>
								 Registriert seit: <b>'.$reg.'</b><br>
								 Letzter Besuch: <b>'.$lvisit.'</b></font></td>
		</tr>';
		

} else {
	$psh = "";
}
#### Ende Private Statistik auf Hauptseite ####	 	 


durch:


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:
if($wbbuserdata['userid']) {
	$uinfos = $db->query_first("SELECT * FROM bb".$n."_users WHERE userid LIKE '".$wbbuserdata['userid']."'");
	$userpost = ($uinfos['userposts']);
	$ugrid = ($uinfos['groupid']);
	$uthreadsfrage = $db->query_first("SELECT COUNT(threadid)as anzahl FROM bb".$n."_threads WHERE starterid LIKE '".$wbbuserdata['userid']."'");
	$uthreads = $uthreadsfrage['anzahl'];
	$gruppennamenfrage = $db->query_first("SELECT title from bb".$n."_groups WHERE groupid Like '".$ugrid."'");
	$ugr = ($gruppennamenfrage['title']);
	$lvisit = formatdate($dateformat,$wbbuserdata['lastvisit']);
	$reg = formatdate($dateformat,$wbbuserdata['regdate']);
	$name = ($wbbuserdata['username']);
	$psh = '
	<tr bgcolor="{tabletitlecolor}" id="tabletitle">
			<td colspan="6"><font face="Tahoma,Helvetica" size="1" color="{fontcolorsecond}"><b>Private Statistik von '.$name.'</b></font></td>
		</tr>
			<tr bgcolor="{tablecolorb}" id="tablea">
			<td colspan="6"><font face="Tahoma,Helvetica" size="1">Benutzergruppe: <b>'.$ugr.'</b><br>
								 Eigene Beiträge: <b>'.$userpost.'</b><br>
								 Eigene Themen: <b>'.$uthreads.'</b><br>
								 Registriert seit: <b>'.$reg.'</b><br>
								 Letzter Besuch: <b>'.$lvisit.'</b></font></td>
		</tr>';
		

} else {
	$psh = "";
}


Dann ist das ganze farblich besser Freude Nur son Tipp von mir!
feuerkerk
Nach Einbau folgender Fehler:
Parse error: parse error, unexpected '}' in /usr/export/www/vhosts/funnetwork/hosting/gothicrpgworld/index.php on line 185

>.<

Hier die index.php

php:
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:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
<?php
$filename="index.php";

require("./global.php");

if(isset($_COOKIE['boardvisit'])) $boardvisit=decode_cookie($_COOKIE['boardvisit']);
else $boardvisit=array();

if(isset($_COOKIE['threadvisit'])) $threadvisit=decode_cookie($_COOKIE['threadvisit']);
else $threadvisit=array();

$boardcache=array();
$permissioncache=array();
$modcache=array();

$activtime=time()-60*$useronlinetimeout;

$result $db->query("
 SELECT
 b.*".ifelse($showlastposttitle==1,", t.topic, i.*")."
 FROM bb".$n."_boards b
 ".ifelse($showlastposttitle==1,"LEFT JOIN bb".$n."_threads t ON (t.threadid=b.lastthreadid)
 LEFT JOIN bb".$n."_icons i USING (iconid)")."
 ORDER by b.parentid ASC, b.boardorder ASC");
while ($row $db->fetch_array($result)) $boardcache[$row['parentid']][$row['boardorder']][$row['boardid']] = $row;


$result $db->query("SELECT boardid, threadid, lastposttime FROM bb".$n."_threads WHERE visible = 1 AND lastposttime > '$wbbuserdata[lastvisit]' AND closed <> 3");
while($row=$db->fetch_array($result)) $visitcache[$row['boardid']][$row['threadid']]=$row['lastposttime'];

$result $db->query("SELECT * FROM bb".$n."_permissions WHERE groupid = '$wbbuserdata[groupid]'");
while ($row $db->fetch_array($result)) $permissioncache[$row['boardid']] = $row;

$result $db->query("SELECT bb".$n."_moderators.*, username FROM bb".$n."_moderators LEFT JOIN bb".$n."_users USING (userid) ORDER BY username ASC");
while ($row $db->fetch_array($result)) $modcache[$row['boardid']][] = $row;

$boardbit makeboardbit(0);

$index_pms="";
$quicklogin="";
$index_useronline="";
$index_stats="";

/* ############## STATS ############## */
if($showstats==1) {
 $members=$db->query_first("SELECT COUNT(*) AS members, MAX(userid) AS userid FROM bb".$n."_users WHERE activation = 1");
 $newestmember=$db->query_first("SELECT userid, username FROM bb".$n."_users WHERE userid = '$members[userid]'");
 $posts=$db->query_first("SELECT COUNT(*) AS posts FROM bb".$n."_posts");
 $threads=$db->query_first("SELECT COUNT(*) AS threads FROM bb".$n."_threads");

 $installdays = (time() - $installdate) / 86400;
 if ($installdays 1$postperday $posts['posts'];
 else $postperday sprintf("%.2f",($posts['posts'] / $installdays));

 eval ("\$index_stats = \"".$tpl->get("index_stats")."\";");
}

/* ############## BC Useronline############ */
if($wbbuserdata[bc_user_ein]==1)
{
    $config=$db->query_first("SELECT user_reset FROM bb".$n."_bc_config WHERE id='1'");
    $result=$db->query("SELECT userid, aktuel_zeit, username, raum FROM bb".$n."_bc_useronline");
    while($var=$db->fetch_array($result))
    {
        if($var[aktuel_zeit]<(time()-($config[user_reset]*60)))
        {
            $db->query("INSERT INTO bb".$n."_bc_text (userid, username, msg, zeit, an_user, raum) VALUES ('0', '".addslashes($var[username])."','".addslashes($var[username])." hat den Chat verlassen','".time()."','0','$var[raum]')");
            $db->query("DELETE FROM bb".$n."_bc_useronline WHERE userid='$var[userid]'");
        }
    }
    $membercountbc=0;
    $useronlinebit='';
    $result $db->query("SELECT userid, username FROM bb".$n."_bc_useronline ORDER BY username ASC");
    while($var=$db->fetch_array($result))
    {
        $membercountbc++;
        if(isset($useronlinebitbc)&&$useronlinebitbc!=''$useronlinebitbc.=', ';
        $useronlinebitbc="<a href=\"profile.php?userid=$var[userid]&sid=$session[hash]\">$var[username]</a>";
    }
    eval ("\$index_useronlinebc = \"".$tpl->get("i4e_bc_useronline")."\";");
}
/* ############## BC-Useronline ########### */


/* ############## USERONLINE ############## */
if($showuseronline==1) {
 $guestcount=0;
 $membercount=0;
 $useronlinebit '';
 $result $db->query("SELECT bb".$n."_sessions.userid, username, groupid, invisible FROM bb".$n."_sessions LEFT JOIN bb".$n."_users USING (userid) WHERE bb".$n."_sessions.lastactivity >= '".(time()-60*$useronlinetimeout)."' ORDER BY username ASC");
 while($row $db->fetch_array($result)) {
  if($row['userid']==0) {
   $guestcount++;
   continue;
  }
  $membercount++;
      if(!$row['invisible']) {
          if(isset($useronlinebit) && $useronlinebit != ''$useronlinebit .= ', ';
          
#### Anfang Member ~ Groupcolor #### 
        $uname = ($row['username']);
        $gridf $db->query_first("SELECT groupid FROM bb".$n."_users WHERE username LIKE '".$uname."'");
        $autorgrid = ($gridf['groupid']);
        $autornamecolorfrage $db->query_first("Select postcolor From bb".$n."_groups WHERE groupid LIKE '".$autorgrid."'");
        $autornamecolor = ($autornamecolorfrage['postcolor']);
        if($autornamecolor != "") {
             $row['username'] = '</font><smallfont color="'.$autornamecolor.'">'.$row['username'].'</font><smallfont>';
        } 
        #### ENDE Member ~ Groupcolor #### 

eval ("\$useronlinebit .= \"".$tpl->get("index_useronline")."\";");
      }
 }
 $totaluseronline $membercount+$guestcount;
 if($totaluseronline>$rekord) {
  $rekord=$totaluseronline;
  $rekordtime=time();
  $db->unbuffered_query("UPDATE bb".$n."_options SET value='$rekord' WHERE varname='rekord'",1);
  $db->unbuffered_query("UPDATE bb".$n."_options SET value='$rekordtime' WHERE varname='rekordtime'",1);
  require ("./acp/lib/class_options.php");
  $option=new options("acp/lib");
  $option->write();
 }
 $rekorddate formatdate($dateformat,$rekordtime);
 $rekordtime formatdate($timeformat,$rekordtime);
 eval ("\$index_useronline = \"".$tpl->get("index_showuseronline")."\";");
}


if(!$wbbuserdata['userid']) {
 eval ("\$welcome = \"".$tpl->get("index_welcome")."\";");
 eval ("\$quicklogin = \"".$tpl->get("index_quicklogin")."\";");
}
else {
 $currenttime=formatdate($timeformat,time());
 $toffset=ifelse($default_timezoneoffset>=0,"+").$default_timezoneoffset;
 $lastvisitdate formatdate($dateformat,$wbbuserdata['lastvisit']);
 $lastvisittime formatdate($timeformat,$wbbuserdata['lastvisit']);
 eval ("\$welcome = \"".$tpl->get("index_hello")."\";");
 if($wbbuserdata['canusepms']==&& $showpmonindex==1) {
  $counttotal=0$countunread=0$countnew=0;
  $result $db->query("SELECT view, sendtime FROM bb".$n."_privatemessage WHERE deletepm <> 1 AND recipientid = '$wbbuserdata[userid]'");
  while($row=$db->fetch_array($result)) {
   $counttotal++;
   if($row['view']==0) {
    $countunread++;
    if($row['sendtime']>$wbbuserdata['lastvisit']) $countnew++;
   }
  }

  if($countnew>0) eval ("\$new_notnew = \"".$tpl->get("index_newpm")."\";");
  else eval ("\$new_notnew = \"".$tpl->get("index_nonewpm")."\";");
  eval ("\$index_pms = \"".$tpl->get("index_pms")."\";");
 }
}
  $result $db->query_first("SELECT * FROM bb".$n."_shoutbox_config");
  if($result['status']==1) {
   $bbcode_smilies getclickysmilies(3,15);
   eval ("\$shoutbox = \"".$tpl->get("shoutbox")."\";");
  } 
#### Anfang Private Statistik auf Hauptseite ####if($wbbuserdata['userid']) {
    $uinfos $db->query_first("SELECT * FROM bb".$n."_users WHERE userid LIKE '".$wbbuserdata['userid']."'");
    $userpost = ($uinfos['userposts']);
    $ugrid = ($uinfos['groupid']);
    $uthreadsfrage $db->query_first("SELECT COUNT(threadid)as anzahl FROM bb".$n."_threads WHERE starterid LIKE '".$wbbuserdata['userid']."'");
    $uthreads $uthreadsfrage['anzahl'];
    $gruppennamenfrage $db->query_first("SELECT title from bb".$n."_groups WHERE groupid Like '".$ugrid."'");
    $ugr = ($gruppennamenfrage['title']);
    $lvisit formatdate($dateformat,$wbbuserdata['lastvisit']);
    $reg formatdate($dateformat,$wbbuserdata['regdate']);
    $name = ($wbbuserdata['username']);
    $psh '
    <tr bgcolor="{tabletitlecolor}" id="tabletitle">
            <td colspan="6"><font face="Tahoma,Helvetica" size="1" color="{fontcolorsecond}"><b>Private Statistik von '.$name.'</b></font></td>
        </tr>
            <tr bgcolor="{tablecolorb}" id="tablea">
            <td colspan="6"><font face="Tahoma,Helvetica" size="1">Benutzergruppe: <b>'.$ugr.'</b><br>
                                 Eigene Beiträge: <b>'.$userpost.'</b><br>
                                 Eigene Themen: <b>'.$uthreads.'</b><br>
                                 Registriert seit: <b>'.$reg.'</b><br>
                                 Letzter Besuch: <b>'.$lvisit.'</b></font></td>
        </tr>';
        

} else {
    $psh "";
}
#### Ende Private Statistik auf Hauptseite ####

eval("\$tpl->output(\"".$tpl->get("index")."\");");
?>


Im Anhang die index.php zum Downloaden

EDIT: Plötzlich hat der Fehler gewechselt. Lautet jetzt:
Parse error: parse error, unexpected T_ELSE in /usr/export/www/vhosts/funnetwork/hosting/gothicrpgworld/index.php on line 185

Bald heißt er vermutlich "unexpected forum on gothicrpgworld.de.vu" o_O
hardcore-punk
ersetze mal durch das:

php:
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:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:

<?php
$filename="index.php";

require("./global.php");

if(isset($_COOKIE['boardvisit'])) $boardvisit=decode_cookie($_COOKIE['boardvisit']);
else $boardvisit=array();

if(isset($_COOKIE['threadvisit'])) $threadvisit=decode_cookie($_COOKIE['threadvisit']);
else $threadvisit=array();

$boardcache=array();
$permissioncache=array();
$modcache=array();

$activtime=time()-60*$useronlinetimeout;

$result $db->query("
 SELECT
 b.*".ifelse($showlastposttitle==1,", t.topic, i.*")."
 FROM bb".$n."_boards b
 ".ifelse($showlastposttitle==1,"LEFT JOIN bb".$n."_threads t ON (t.threadid=b.lastthreadid)
 LEFT JOIN bb".$n."_icons i USING (iconid)")."
 ORDER by b.parentid ASC, b.boardorder ASC");
while ($row $db->fetch_array($result)) $boardcache[$row['parentid']][$row['boardorder']][$row['boardid']] = $row;


$result $db->query("SELECT boardid, threadid, lastposttime FROM bb".$n."_threads WHERE visible = 1 AND lastposttime > '$wbbuserdata[lastvisit]' AND closed <> 3");
while($row=$db->fetch_array($result)) $visitcache[$row['boardid']][$row['threadid']]=$row['lastposttime'];

$result $db->query("SELECT * FROM bb".$n."_permissions WHERE groupid = '$wbbuserdata[groupid]'");
while ($row $db->fetch_array($result)) $permissioncache[$row['boardid']] = $row;

$result $db->query("SELECT bb".$n."_moderators.*, username FROM bb".$n."_moderators LEFT JOIN bb".$n."_users USING (userid) ORDER BY username ASC");
while ($row $db->fetch_array($result)) $modcache[$row['boardid']][] = $row;

$boardbit makeboardbit(0);

$index_pms="";
$quicklogin="";
$index_useronline="";
$index_stats="";

/* ############## STATS ############## */
if($showstats==1) {
 $members=$db->query_first("SELECT COUNT(*) AS members, MAX(userid) AS userid FROM bb".$n."_users WHERE activation = 1");
 $newestmember=$db->query_first("SELECT userid, username FROM bb".$n."_users WHERE userid = '$members[userid]'");
 $posts=$db->query_first("SELECT COUNT(*) AS posts FROM bb".$n."_posts");
 $threads=$db->query_first("SELECT COUNT(*) AS threads FROM bb".$n."_threads");

 $installdays = (time() - $installdate) / 86400;
 if ($installdays 1$postperday $posts['posts'];
 else $postperday sprintf("%.2f",($posts['posts'] / $installdays));

 eval ("\$index_stats = \"".$tpl->get("index_stats")."\";");
}

/* ############## BC Useronline############ */
if($wbbuserdata[bc_user_ein]==1)
{
    $config=$db->query_first("SELECT user_reset FROM bb".$n."_bc_config WHERE id='1'");
    $result=$db->query("SELECT userid, aktuel_zeit, username, raum FROM bb".$n."_bc_useronline");
    while($var=$db->fetch_array($result))
    {
        if($var[aktuel_zeit]<(time()-($config[user_reset]*60)))
        {
            $db->query("INSERT INTO bb".$n."_bc_text (userid, username, msg, zeit, an_user, raum) VALUES ('0', '".addslashes($var[username])."','".addslashes($var[username])." hat den Chat verlassen','".time()."','0','$var[raum]')");
            $db->query("DELETE FROM bb".$n."_bc_useronline WHERE userid='$var[userid]'");
        }
    }
    $membercountbc=0;
    $useronlinebit='';
    $result $db->query("SELECT userid, username FROM bb".$n."_bc_useronline ORDER BY username ASC");
    while($var=$db->fetch_array($result))
    {
        $membercountbc++;
        if(isset($useronlinebitbc)&&$useronlinebitbc!=''$useronlinebitbc.=', ';
        $useronlinebitbc="<a href=\"profile.php?userid=$var[userid]&sid=$session[hash]\">$var[username]</a>";
    }
    eval ("\$index_useronlinebc = \"".$tpl->get("i4e_bc_useronline")."\";");
}
/* ############## BC-Useronline ########### */


/* ############## USERONLINE ############## */
if($showuseronline==1) {
 $guestcount=0;
 $membercount=0;
 $useronlinebit '';
 $result $db->query("SELECT bb".$n."_sessions.userid, username, groupid, invisible FROM bb".$n."_sessions LEFT JOIN bb".$n."_users USING (userid) WHERE bb".$n."_sessions.lastactivity >= '".(time()-60*$useronlinetimeout)."' ORDER BY username ASC");
 while($row $db->fetch_array($result)) {
  if($row['userid']==0) {
   $guestcount++;
   continue;
  }
  $membercount++;
      if(!$row['invisible']) {
          if(isset($useronlinebit) && $useronlinebit != ''$useronlinebit .= ', ';
          
#### Anfang Member ~ Groupcolor #### 
        $uname = ($row['username']);
        $gridf $db->query_first("SELECT groupid FROM bb".$n."_users WHERE username LIKE '".$uname."'");
        $autorgrid = ($gridf['groupid']);
        $autornamecolorfrage $db->query_first("Select postcolor From bb".$n."_groups WHERE groupid LIKE '".$autorgrid."'");
        $autornamecolor = ($autornamecolorfrage['postcolor']);
        if($autornamecolor != "") {
             $row['username'] = '</font><smallfont color="'.$autornamecolor.'">'.$row['username'].'</font><smallfont>';
        } 
        #### ENDE Member ~ Groupcolor #### 

eval ("\$useronlinebit .= \"".$tpl->get("index_useronline")."\";");
      }
 }
 $totaluseronline $membercount+$guestcount;
 if($totaluseronline>$rekord) {
  $rekord=$totaluseronline;
  $rekordtime=time();
  $db->unbuffered_query("UPDATE bb".$n."_options SET value='$rekord' WHERE varname='rekord'",1);
  $db->unbuffered_query("UPDATE bb".$n."_options SET value='$rekordtime' WHERE varname='rekordtime'",1);
  require ("./acp/lib/class_options.php");
  $option=new options("acp/lib");
  $option->write();
 }
 $rekorddate formatdate($dateformat,$rekordtime);
 $rekordtime formatdate($timeformat,$rekordtime);
 eval ("\$index_useronline = \"".$tpl->get("index_showuseronline")."\";");
}


if(!$wbbuserdata['userid']) {
 eval ("\$welcome = \"".$tpl->get("index_welcome")."\";");
 eval ("\$quicklogin = \"".$tpl->get("index_quicklogin")."\";");
}
else {
 $currenttime=formatdate($timeformat,time());
 $toffset=ifelse($default_timezoneoffset>=0,"+").$default_timezoneoffset;
 $lastvisitdate formatdate($dateformat,$wbbuserdata['lastvisit']);
 $lastvisittime formatdate($timeformat,$wbbuserdata['lastvisit']);
 eval ("\$welcome = \"".$tpl->get("index_hello")."\";");
 if($wbbuserdata['canusepms']==&& $showpmonindex==1) {
  $counttotal=0$countunread=0$countnew=0;
  $result $db->query("SELECT view, sendtime FROM bb".$n."_privatemessage WHERE deletepm <> 1 AND recipientid = '$wbbuserdata[userid]'");
  while($row=$db->fetch_array($result)) {
   $counttotal++;
   if($row['view']==0) {
    $countunread++;
    if($row['sendtime']>$wbbuserdata['lastvisit']) $countnew++;
   }
  }

  if($countnew>0) eval ("\$new_notnew = \"".$tpl->get("index_newpm")."\";");
  else eval ("\$new_notnew = \"".$tpl->get("index_nonewpm")."\";");
  eval ("\$index_pms = \"".$tpl->get("index_pms")."\";");
 }
}
  $result $db->query_first("SELECT * FROM bb".$n."_shoutbox_config");
  if($result['status']==1) {
   $bbcode_smilies getclickysmilies(3,15);
   eval ("\$shoutbox = \"".$tpl->get("shoutbox")."\";");
  } 
#### Anfang Private Statistik auf Hauptseite ####if($wbbuserdata['userid']) {
    $uinfos $db->query_first("SELECT * FROM bb".$n."_users WHERE userid LIKE '".$wbbuserdata['userid']."'");
    $userpost = ($uinfos['userposts']);
    $ugrid = ($uinfos['groupid']);
    $uthreadsfrage $db->query_first("SELECT COUNT(threadid)as anzahl FROM bb".$n."_threads WHERE starterid LIKE '".$wbbuserdata['userid']."'");
    $uthreads $uthreadsfrage['anzahl'];
    $gruppennamenfrage $db->query_first("SELECT title from bb".$n."_groups WHERE groupid Like '".$ugrid."'");
    $ugr = ($gruppennamenfrage['title']);
    $lvisit formatdate($dateformat,$wbbuserdata['lastvisit']);
    $reg formatdate($dateformat,$wbbuserdata['regdate']);
    $name = ($wbbuserdata['username']);
    $psh '
    <tr bgcolor="{tabletitlecolor}" id="tabletitle">
            <td colspan="6"><font face="Tahoma,Helvetica" size="1" color="{fontcolorsecond}"><b>Private Statistik von '.$name.'</b></font></td>
        </tr>
            <tr bgcolor="{tablecolorb}" id="tablea">
            <td colspan="6"><font face="Tahoma,Helvetica" size="1">Benutzergruppe: <b>'.$ugr.'</b><br>
                                 Eigene Beiträge: <b>'.$userpost.'</b><br>
                                 Eigene Themen: <b>'.$uthreads.'</b><br>
                                 Registriert seit: <b>'.$reg.'</b><br>
                                 Letzter Besuch: <b>'.$lvisit.'</b></font></td>
        </tr>';
        

 else {
    $psh "";
}
#### Ende Private Statistik auf Hauptseite ####

eval("\$tpl->output(\"".$tpl->get("index")."\");");
?>
feuerkerk
Parse error: parse error, unexpected T_ELSE in /usr/export/www/vhosts/funnetwork/hosting/gothicrpgworld/index.php on line 185

geschockt
XeRanoN
Zeile 186
Ersetze
else {
Durch
} else {


UND: SChau mal auf myWBB nach im Supportthread des Hacks, da hab ich die debugten Templates online gestellt Augenzwinkern
feuerkerk
das ist doch kein template... das ist doch meine index.php ^ ^

PS: Nach dem reinschieben der "}" kommt jetzt folgender Fehler:
Parse error: parse error, unexpected '}' in /usr/export/www/vhosts/funnetwork/hosting/gothicrpgworld/index.php on line 185

-.-
XeRanoN
enen... der hack is so uralt, da hat der Coder das Templatesystem noch ned kapiert ^^

Okey, so muss das ganze funzen (das was du bis jetz hast kannst du rückgängig machen!)

Suche in der index.php nach:
php:
1:
/* ############## USERONLINE ############## */

Füge darüber folgendes ein:
php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
/* ############## PSH ##################*/
$psh "";
if($wbbuserdata['userid']) {
    $uinfos $db->query_first("SELECT * FROM bb".$n."_users WHERE userid LIKE '".$wbbuserdata['userid']."'");
    $userpost = ($uinfos['userposts']);
    $ugrid = ($uinfos['groupid']);
    $uthreadsfrage $db->query_first("SELECT COUNT(threadid)as anzahl FROM bb".$n."_threads WHERE starterid LIKE '".$wbbuserdata['userid']."'");
    $uthreads $uthreadsfrage['anzahl'];
    $gruppennamenfrage $db->query_first("SELECT title from bb".$n."_groups WHERE groupid Like '".$ugrid."'");
    $ugr = ($gruppennamenfrage['title']);
    $lvisit formatdate($dateformat,$wbbuserdata['lastvisit']);
    $reg formatdate($dateformat,$wbbuserdata['regdate']);
    $name = ($wbbuserdata['username']);
    eval ("\$psh = \"".$tpl->get("index_psh")."\";");
}


Suche in der index.tpl nach
php:
1:
2:
3:
$index_pms
$index_showevents
$index_stats

Und füge darunter ein:
php:
1:
$psh


Erstelle eine Datei index_psh.tpl und schreibe in diese folgendes:
php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
<tr bgcolor="{tabletitlecolor}" id="tabletitle">
    <td colspan="6"><smallfont><b>Private Statistik von $name</b></font></td>
</tr>
<tr bgcolor="{tablecolora}" id="tablea">
    <td colspan="6"><smallfont>
        Benutzergruppe: <b>$ugr</b><br>
        Eigene Beiträge: <b>$userpost</b><br>
        Eigene Themen: <b>$uthreads</b><br>
        Registriert seit: <b>$reg</b><br>
        Letzter Besuch: <b>$lvisit</b>
    </font></td>
</tr>
feuerkerk
Sehr gut! Funktioniert! Danke.
azthek
kann mir jemand helfen? habe das forum schon durchsucht nur irgendwie nix gefunden. Ich habe das problem das meine statistik fehlerhaft ist und weiß nicht woran das liegt.

rechts------------------------------------------------------------------

Registrierte Mitglieder: hier fehlt die anzahl
ist unser neustes Mitglied: hier fehlt der accountname
Zur Zeit sind 1 User und 0 Gäste im Forum aktiv.
Rekord: 54 Benutzer am 04.03.2006 11:02

links---------------------------------------------------------------------

Ihr letzter Besuch war am 07.03.2006 um 11:48.
Posteingang
Sie haben neue Nachricht(en) fehlt die anzahl
( ungelesene, Nachricht(en) insgesamt) fehlt die anzahl


irgendwie komme ich nicht darauf was das sein kann. Bin mir sicher einer weiß das von Euch.

Danke im vorraus!
XeRanoN
Aktivier im ACP die "PM's auf der Startseite" Augenzwinkern
Ravenlord80
Ich habe ein simples Problem mit der normalen Boardstatistik auf dem Index, die ja so aussehen sollte:


Statistik
Mitglieder: ?? | Themen: ?? | Beiträge: ?? (durchschnittlich ?? Beiträge/Tag)
Unser neuestes Mitglied heißt: ???


es werden keine Mitgliederanzahlen angezeigt, keine Themenanzahl, keine Beitragsanzahl (bzw falsch, dort steht nur 6, sind aber viel mehr), und auch beim neuesten Mitglied steht nix.

Hier ist der Code der verwendet wurde im index.tpl unten:

Zitat:

<tr bgcolor="{tabletitlecolor}" id="tabletitle">
<td colspan=6><smallfont color="{fontcolorsecond}"><b>Statistik</b></font></td>
</tr>
<tr>
<td colspan=6 bgcolor="{tablecolora}" id="tablea"><smallfont>Mitglieder: $members[members] | Themen: $threads[threads] | Beitr&auml;ge: $posts[posts] (durchschnittlich $totalpostperdaycount Beitr&auml;ge/Tag)<br>
Unser neuestes Mitglied heißt: <a href="profile.php?userid=$newestmember[userid]&sid=$session[hash]">$newestm
ember[username]</a></font></td>
</tr>


Bitte sagt mir was falsch ist bzw was noch fehlt! Ich bin ganz verzweifelt...

Und weils so schön war, bitte sagt mir einer auch noch, wie ich eine Wer ist Wo Liste hinkriege und auch verlinke in der Tabellenüberschrift der Online-Anzeige unten?

habe wBB Lite 1.02
Black_Magister
kann man den auch in verbindung mit dem username stylehack machen?
z.b. benutzergruppe: administrator = die festgelegte farbe für admin?
reikema
läuft ohne Probleme.
Black_Magister
wäre ganz gut, wenn jeder user das im profil an oder ausstellen kann.
es wollen einige nicht auf meiner seite es angezeigt haben.