Seite 1 von 2
statsitik mod umbauen...
Verfasst: 01.09.2003 20:15
von GermanBabu
hallo....
ich habe einen forum laufen... und habe von
http://www.phpbbhacks.com/ den mini statistik mod eingebaut...
http://www.germanbabu.com/forum/
ich möchte auf der rechten seite "NICHT" die meist-beantworteten beiträge, sondern die letzten 5 threads anzeigen lassen....
UND.... wie kann ich diese Statistik anstatt oben unter dem Forum anzeigen...
plz help...
Verfasst: 01.09.2003 20:39
von Elvis
zu zwei kann ich dir sagen
alles was von bis steht
Code: Alles auswählen
<!-- ##### AKTUELLE FORENSTATISTIK START ##### --> und <!-- ##### AKTUELLE FORENSTATISTIK ENDE ##### -->
fügste hier drunter ein
Code: Alles auswählen
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">01.09.2003, 12:10<br /><a href="profile.php?mode=viewprofile&u=2&sid=0772482907367b26797c1b0e838257ff">GermanBabu</a> <a href="viewtopic.php?p=344&sid=0772482907367b26797c1b0e838257ff#344"><img src="templates/Appalachia/images/icon_latest_reply.gif" border="0" alt="Letzten Beitrag anzeigen" title="Letzten Beitrag anzeigen" /></a></span></td>
</tr>
</table>
oder hier drunter *Alle Zeiten sind GMT + 1 Stunde*
Code: Alles auswählen
<td align="right"><span class="gensmall">Alle Zeiten sind GMT + 1 Stunde</span></td>
</tr>
</table>
Verfasst: 01.09.2003 22:51
von GermanBabu
Elvis hat geschrieben:zu zwei kann ich dir sagen
alles was von bis steht
Code: Alles auswählen
<!-- ##### AKTUELLE FORENSTATISTIK START ##### --> und <!-- ##### AKTUELLE FORENSTATISTIK ENDE ##### -->
fügste hier drunter ein
Code: Alles auswählen
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">01.09.2003, 12:10<br /><a href="profile.php?mode=viewprofile&u=2&sid=0772482907367b26797c1b0e838257ff">GermanBabu</a> <a href="viewtopic.php?p=344&sid=0772482907367b26797c1b0e838257ff#344"><img src="templates/Appalachia/images/icon_latest_reply.gif" border="0" alt="Letzten Beitrag anzeigen" title="Letzten Beitrag anzeigen" /></a></span></td>
</tr>
</table>
folgende fehlermeldung...
Code: Alles auswählen
Parse error: parse error in /raid/domains/com/g/germanbabu/htdocs/www/forum/index.php on line 518
habe diesen teil drin:
Code: Alles auswählen
// AKTUELLE FORENSTATISTIK START
###### start last_reg_users_#####
$sql = "SELECT user_id, username, user_regdate
FROM " . USERS_TABLE . "
WHERE user_id <> " . ANONYMOUS . "
ORDER BY user_regdate DESC
LIMIT 3";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user/online forums information', '', __LINE__, __FILE__, $sql);
}
while ($row = $db->sql_fetchrow($result))
{
$user_id=$row['user_id'];
$template->assign_block_vars("last_registrations", array(
'USERNAME' => $row['username'],
'REG_DATE' => create_date($board_config['default_dateformat'], $row['user_regdate'], $board_config['board_timezone']),
'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"))
);
}
##### end last_reg_users_#######
###### start most posts_#####
$sql = "SELECT user_id, username, user_posts
FROM " . USERS_TABLE . "
WHERE user_id <> " . ANONYMOUS . "
ORDER BY user_posts DESC
LIMIT 3";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user/online forums information', '', __LINE__, __FILE__, $sql);
}
while ($row = $db->sql_fetchrow($result))
{
$user_id=$row['user_id'];
$template->assign_block_vars("most_posts", array(
'USERNAME' => $row['username'],
'POSTS' => $row['user_posts'],
'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"))
);
}
##### end most posts_#######
##### start beste topics #####
$sql = "SELECT topic_id,topic_title,topic_replies
FROM " . TOPICS_TABLE . " t
LEFT JOIN " . FORUMS_TABLE . " f
ON t.forum_id=f.forum_id
WHERE f.auth_view < 2
ORDER BY topic_replies DESC
LIMIT 3";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user/online forums information', '', __LINE__, __FILE__, $sql);
}
while ($row = $db->sql_fetchrow($result))
{
$topic_id=$row['topic_id'];
$template->assign_block_vars("best_topics", array(
'TOPIC_TITLE' => $row['topic_title'],
'REPLIES' => $row['topic_replies'],
'VIEWTOPIC' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id"))
);
}
##### end best topics #####
// AKTUELLE FORENSTATISTIK ENDE
nur, anstatt best topics will ich dort die letzten X beiträge haben... wie bei AWSW' mod links unten....

Verfasst: 02.09.2003 00:30
von Elvis
aber unter
haste eingefügt oder ?
Verfasst: 02.09.2003 00:47
von GermanBabu
Elvis hat geschrieben:aber unter
haste eingefügt oder ?
hi.....
die sachen habe ich gar nicht in der "index.php" drinne........
weil...
Code: Alles auswählen
<!-- ##### AKTUELLE FORENSTATISTIK START ##### --> und <!-- ##### AKTUELLE FORENSTATISTIK ENDE ##### -->
habe ich in der index.php stehen.......

Verfasst: 02.09.2003 00:48
von Elvis
dann guck mal in der index.
tpl 
Verfasst: 02.09.2003 01:00
von GermanBabu
Elvis hat geschrieben:dann guck mal in der index.
tpl 
hey danke....
es sollte so heissen...
Code: Alles auswählen
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
also so steht es in der index_body.tpl
Verfasst: 02.09.2003 01:02
von Elvis
poste mal bitte die index.tpl als text datei bzw als Link
Verfasst: 02.09.2003 01:10
von GermanBabu
Code: Alles auswählen
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
<tr>
<td align="left" valign="bottom"><span class="gensmall">
<!-- BEGIN switch_user_logged_in -->
{LAST_VISIT_DATE}<br />
<!-- END switch_user_logged_in -->
{CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
<td align="right" valign="bottom" class="gensmall">
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
<!-- END switch_user_logged_in -->
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
</tr>
</table>
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:
<input class="post" type="text" name="username" size="10" />
{L_PASSWORD}:
<input class="post" type="password" name="password" size="10" />
{L_AUTO_LOGIN}
<input class="text" type="checkbox" name="autologin" />
<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
</span> </td>
</tr>
</table>
</form>
<!-- END switch_user_logged_out -->
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {L_FORUM} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_POSTS} </th>
<th class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<!-- BEGIN catrow -->
<tr>
<td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
<td class="rowpic" colspan="3" align="right"> </td>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
<!-- END catrow -->
</table>
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="2">
<tr>
<td align="left"><span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span></td>
<td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
</tr>
</table>
<!-- ##### AKTUELLE FORENSTATISTIK START ##### -->
<table width="100%" border="0" cellpadding="1" cellspacing="1" style="border-collapse: collapse" class="forumline">
<tr>
<td class="catHead" width="100%" colspan="6" height="25"><span class="cattitle"><center><b>Aktuelle Forenstatistik:</b></center></span></td>
</tr>
<tr>
<td colspan="6" height="2" class="row3"><img src="images/spacer.gif" width="1" height="1" alt="."></td>
</tr>
<tr>
<td width="30%" class="row3">
<table width="100%" border="0" cellpadding="1" cellspacing="1" style="border-collapse: collapse" class="forumline">
<tr>
<td class="catHead" width="100%" colspan="2" height="25"><span class="cattitle"><center><b>Letzte Registrationen:</b></center></span></td>
</tr>
<tr>
<td colspan="2" height="2" class="row3"><img src="images/spacer.gif" width="1" height="1" alt="."></td>
</tr>
<!-- BEGIN last_registrations -->
<tr>
<td class="row2"> <span class="genmed"><a href="{last_registrations.U_VIEWPROFILE}" class="genmed">{last_registrations.USERNAME}</a></span> </td>
<td align="center" nowrap="nowrap" class="row3"> <span class="genmed">{last_registrations.REG_DATE}</span> </td>
</tr>
<!-- END last_registrations -->
</table>
</td>
<td width="30%" class="row3">
<table width="100%" border="0" cellpadding="1" cellspacing="1" style="border-collapse: collapse" class="forumline">
<tr>
<td class="catHead" width="100%" colspan="2" height="25"><span class="cattitle"><center><b>User mit den meisten Beiträgen:</b></center></span></td>
</tr>
<tr>
<td colspan="2" height="1" class="row3"><img src="images/spacer.gif" width="1" height="1" alt="."></td>
</tr>
<!-- BEGIN most_posts -->
<tr>
<td class="row2"> <span class="genmed"><a href="{most_posts.U_VIEWPROFILE}" class="genmed">{most_posts.USERNAME}</a></span> </td>
<td align="center" nowrap="nowrap" class="row3"> <span class="genmed">{most_posts.POSTS}</span> </td>
</tr>
<!-- END most_posts -->
</table>
</td>
<td width="40%" class="row3">
<table width="100%" border="0" cellpadding="1" cellspacing="1" style="border-collapse: collapse" class="forumline">
<tr>
<td class="catHead" width="100%" colspan="2" height="25"><span class="cattitle"><center><b>Beiträge mit den meisten Antworten:</b></center></span></td>
</tr>
<tr>
<td colspan="2" height="1" class="row3"><img src="images/spacer.gif" width="1" height="1" alt="."></td>
</tr>
<!-- BEGIN best_topics -->
<tr>
<td class="row2"> <span class="genmed"><a href="{best_topics.VIEWTOPIC}" class="genmed">{best_topics.TOPIC_TITLE}</a></span> </td>
<td align="center" nowrap="nowrap" class="row3"> <span class="genmed">{best_topics.REPLIES}</span> </td>
</tr>
<!-- END best_topics -->
</table>
</td>
</tr>
</table>
<br>
<!-- ##### AKTUELLE FORENSTATISTIK ENDE ##### -->
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" rowspan="3"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
</td>
</tr>
<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
<tr>
<td class="row1" align="left"><span class="gensmall">{USERS_OF_THE_DAY_LIST}</span></td> </tr>
</table>
<table width="100%" cellpadding="1" cellspacing="1" border="0">
<td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</table>
<br clear="all" />
<table cellspacing="3" border="0" align="center" cellpadding="0">
<tr>
<td width="20" align="center"><img src="templates/Appalachia/images/folder_new.gif" alt="{L_NEW_POSTS}"/></td>
<td><span class="gensmall">{L_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center"><img src="templates/Appalachia/images/folder.gif" alt="{L_NO_NEW_POSTS}" /></td>
<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center"><img src="templates/Appalachia/images/folder_lock.gif" alt="{L_FORUM_LOCKED}" /></td>
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>
sorry.... wo ich sie als *.txt abgespeichert habe... hat er mit im browser komische sachen gezeigt.. und nciht als text......
Verfasst: 02.09.2003 01:49
von Elvis