Seite 1 von 1
[FEHLER]
Verfasst: 29.06.2003 18:32
von Ratte
ich weiss ich bin blöd
[ externes Bild ]
aber ich hab's einfach net hingekriegt...
wo ist mein fehler...es wird einfach keine seite angezeigt...
Hier die TXTs:
nachrichten.php
nachrichten_body.tlp
Verfasst: 30.06.2003 16:18
von Tuxman
Muss danach net eigentlich noch was kommen?

Verfasst: 30.06.2003 16:21
von Schumi
suche
danach einfügen
Code: Alles auswählen
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
Verfasst: 30.06.2003 17:40
von Ratte
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'body' => 'nachrichten_body.tpl')
);
//
// Generate the page
//
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
welchen teil davon muss ich raushaun damit unter dem news teil die statitik die zu nem anderen mod gehört weg is...
Verfasst: 30.06.2003 17:43
von Onkel Sven
da würd ich in der ./templates/index_body.tpl mal nach dem teil irgendwo unten gucken...denke das dürfte am einfachsten sein
Verfasst: 30.06.2003 17:46
von Ratte
hab ich eigentlich scho...aber kannst ja mal schaun ob du's findest...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>BKA Bonn Forum - Nachrichten</title>
<table width="100%" border="0" cellpadding="1" cellspacing="1" style="border-collapse: collapse" class="forumline">
<tr>
<td class="catHead" width="100%" colspan="1" height="25"><span class="cattitle"><center><b> Aktuelle
News</b></center></span></td>
</tr>
<tr>
<td colspan="1" 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"> Nachrichten </th>
</tr>-->
<tr>
<td colspan="1" height="1" class="row2" align="center"><span class="gensmall"> <script language="JavaScript1.2"
src="
http://instantcontent.freenet.de/docwri ... "></script> </span></td>
</tr>
</table>
</head>
<body bgcolor="FFFFFF" text="#000000" link="#006699" vlink="#5584AA">
{ACTUALSTATS_OUTPUT}
</body>
</html>
Verfasst: 30.06.2003 17:53
von Onkel Sven
ok. dann musst du gucken in welcher template datei die Ausgabe von den "ACTUALSTATS_OUTPUT" geregelt wird. Dazu muss in der index.php mindestens ne neue datei includet werden, wo dann spätestens da drin steht welches template das is. kannst ja aber auch gleich mal im tpl-ordner gucken ob du das richtige findest
Verfasst: 30.06.2003 18:28
von Ratte
des is die index_body.tlp
<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>
<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>
<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="2"><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>
</table>
<table width="100%" cellpadding="1" cellspacing="1" border="0">
<td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</table>
{GLANCE_OUTPUT}
{ACTUALSTATS_OUTPUT}
<!-- 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 -->
<br clear="all" />
<table cellspacing="3" border="0" align="center" cellpadding="0">
<tr>
<td width="20" align="center"><img src="templates/subSilver/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/subSilver/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/subSilver/images/folder_lock.gif" alt="{L_FORUM_LOCKED}" /></td>
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>
und etz?
Verfasst: 30.06.2003 18:34
von Onkel Sven
ha...ich glaub ich hab dich wohl mißverstanden bzw vermute, dass die stats, die du weg haben willst, von dem At A Glance Mod kommen. du solltest irgendwo ne datei namens glance_config.php haben.
kannst ja mal versuchen in der die werte für $glance_num_news oder $glance_num_recent anzupassen, je nachdem was du halt weghaben willst. der output müsste in der datei ./templates/XXX/glance_body.tpl geregelt werden