
Nun, ich wollte fragen ob es möglich ist, einzelne "Blocks" auf einzelnen Seiten zu machen?
Also z.B. die Box "Top User". Dann eine einzelne Seite machen z.B. topuser.php und nur diesen Inhalt dann da ausgeben? Geht das?
Code: Alles auswählen
// MOST POSTS START
if( $introportalmod_config['topposter_active'] == "1" )
{
$most_posts_limit = $introportalmod_config['topposter_limit'];
$sql = "SELECT user_id, username, user_posts
FROM " . USERS_TABLE . "
WHERE user_id <> " . ANONYMOUS . "
ORDER BY user_posts DESC
LIMIT $most_posts_limit";
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'];
if( $introportalmod_config['topposter_active'] == "1" )
{
$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"))
);
}
}
$template->assign_block_vars('switch_topposter_active', array());
}
// MOST POSTS END
Code: Alles auswählen
<!-- ##### USER / POST COUNT START ##### -->
<!-- BEGIN switch_userpostcount_active -->
<table width="100%" border="0" cellpadding="1" cellspacing="1" style="border-collapse: collapse" class="forumline">
<tr>
<td class="catHead" colspan="2" height="25"><span class="cattitle"><center><b>{UserPostCount}:</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>
<td class="row1"><span class="gensmall">{TOTAL_POSTS} {TOTAL_USERS} {NEWEST_USER}</span></td>
</tr>
</table><br>
<!-- END switch_userpostcount_active -->
<!-- ##### USER / POST COUNT END ##### -->
Code: Alles auswählen
Template->loadfile(): No file specified for handle body