Hi ....
wenn du dann beide Blöcke willst ... (die meisten views und die meisten replies) musst du noch die "Switch" umbasteln ... so sollte es funktionieren ....
Hi ...
suche in der actualstats.php
Code: Alles auswählen
###### start last_reg_users_#####
$sql = "SELECT user_id, username, user_regdate
FROM " . USERS_TABLE . "
WHERE user_id <> " . ANONYMOUS . "
ORDER BY user_regdate DESC
LIMIT 5";
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_#######
ersetze mit:
Code: Alles auswählen
##### start most views #####
$sql = "SELECT topic_id,topic_title,topic_views
FROM " . TOPICS_TABLE . " t
LEFT JOIN " . FORUMS_TABLE . " f
ON t.forum_id=f.forum_id
WHERE f.auth_view < 2
ORDER BY topic_views DESC
LIMIT 5";
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_views", array(
'TOPIC_TITLE' => $row['topic_title'],
'VIEWS' => $row['topic_views'],
'VIEWTOPIC' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id"))
);
}
##### end modst views #####
suche in der actualstats_body.tpl
Code: Alles auswählen
<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>{actualstats2}</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>
<tr>
<th align="center" height="25" class="toprow" nowrap="nowrap"> {actualstats3} </th>
<th align="center" class="toprow" nowrap="nowrap"> {actualstats4} </th>
</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>
ersetze mit:
Code: Alles auswählen
<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>{actualstats11}</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>
<tr>
<th align="center" height="25" class="toprow" nowrap="nowrap"> {actualstats8} </th>
<th align="center" class="toprow" nowrap="nowrap"> {actualstats11} </th>
</tr>
<!-- BEGIN best_views -->
<tr>
<td class="row2"> <span class="genmed"><a href="{best_views.VIEWTOPIC}" class="genmed">{best_views.TOPIC_TITLE}</a></span> </td>
<td align="center" nowrap="nowrap" class="row3"> <span class="genmed">{best_views.VIEWS}</span> </td>
</tr>
<!-- END best_views -->
</table>
Markus