Seite 1 von 1

Möchte stat in einer neuen Seite anzeigen!

Verfasst: 06.09.2003 17:37
von Gast
Nun, ich habe auch im Forum gesucht und ergänzt, aber wenn ich den stat Mod in einer neuen Seite anzeigen will kommt nur eine weiße Seite! Hier mein txt von der neun Seite:
<?php
/***************************************************************************
* index.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: index.php,v 1.99.2.1 2002/12/19 17:17:40 psotfx Exp $
*
*
***************************************************************************/

/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/

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' => 'outstats.tpl')

);


{ACTUALSTATS_OUTPUT}

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>

Verfasst: 06.09.2003 18:01
von BrahmA

Verfasst: 06.09.2003 18:29
von Gast
Habe gemacht was dort steht! Geht aber trotzdem nicht!
<?php
/***************************************************************************
* stat.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: stat.php,v 1.99.2.1 2002/12/19 17:17:40 psotfx Exp $
*
*
***************************************************************************/

/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/

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' => 'outstats.tpl')

);


include($phpbb_root_path . 'actualstats.'.$phpEx);

{ACTUALSTATS_OUTPUT}

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>
[/code]

Verfasst: 06.09.2003 18:45
von BrahmA
versuch mal das als statistic.php:

Code: Alles auswählen

<?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' => 'extrapage_body.tpl')
);

include($phpbb_root_path . 'actualstats.'.$phpEx);

//
// Generate the page
//
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>

Verfasst: 06.09.2003 19:25
von Gast
Jetzt wird nur der header angezeigt. Als Fehlermeldung sagt er:
Template->make_filename(): Error - file does not exist

Verfasst: 06.09.2003 19:31
von Henne
Dann haste die entsprechende .tpl Datei nicht angelegt oder die liegt im falschen Verzeichnis.

Verfasst: 06.09.2003 19:35
von Gast
Mhhh ...

Also ich habe jetzt den Code eingefügt den mir -=BrahmA=- gegeben hat. Wie sollte die .tpl Datei heißen und wo sollte sie liegen, weil die .tpl Datei habe ich wie in der Anleitung steht eingefügt und auf der indx Seite wird auch die Statistik angezeigt.

Verfasst: 06.09.2003 20:03
von Gast
Hallo?! Möchte mir noch wer helfen!? Lasst euch ruhig Zeit, aber ich würde das Problem noch gerne lösen.

THX!

Verfasst: 06.09.2003 20:18
von sputnik
Bennene die Datei Outstats.tpl (die du hoffentlich gemacht hast) um in "extrapage_body.tpl" um!

Das müsst hinhauen! Ich hatte das selbe Problem!

Verfasst: 06.09.2003 21:52
von BrahmA
ok, kriegste die auch noch:

Code: Alles auswählen

<!-- ##### 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>{actualstats1}</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="25%" class="row3" valign="top">
	<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">&nbsp;{actualstats3}&nbsp;</th> 
    			<th align="center" class="toprow" nowrap="nowrap">&nbsp;{actualstats4}&nbsp;</th> 
  		</tr>
		  	<!-- BEGIN last_registrations -->
      	  	<tr>
	        	<td class="row2">&nbsp;<span class="genmed"><a href="{last_registrations.U_VIEWPROFILE}" class="genmed">{last_registrations.USERNAME}</a></span>&nbsp;</td> 
      	  	<td align="center" nowrap="nowrap" class="row3">&nbsp;<span class="genmed">{last_registrations.REG_DATE}</span>&nbsp;</td> 
		  	</tr>
		  	<!-- END last_registrations --> 
	</table>
</td>
<td width="30%" class="row3" valign="top">
	<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>{actualstats5}</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">&nbsp;{actualstats3}&nbsp;</th> 
    			<th align="center" class="toprow" nowrap="nowrap">&nbsp;{actualstats6}&nbsp;</th> 
  		</tr>
        		<!-- BEGIN most_posts --> 
	  		<tr>
              	<td class="row2">&nbsp;<span class="genmed"><a href="{most_posts.U_VIEWPROFILE}" class="genmed">{most_posts.USERNAME}</a></span>&nbsp;</td> 
	        	<td align="center" nowrap="nowrap" class="row3">&nbsp;<span class="genmed">{most_posts.POSTS}</span>&nbsp;</td> 
        		</tr>
	  		<!-- END most_posts -->
	</table>
</td>
<td width="45%" class="row3" valign="top">
	<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>{actualstats7}</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">&nbsp;{actualstats8}&nbsp;</th> 
    			<th align="center" class="toprow" nowrap="nowrap">&nbsp;{actualstats6}&nbsp;</th> 
  		</tr>
		  	<!-- BEGIN best_topics --> 
        		<tr>
	        	<td class="row2">&nbsp;<span class="genmed"><a href="{best_topics.VIEWTOPIC}" class="genmed">{best_topics.TOPIC_TITLE}</a></span>&nbsp;</td> 
	        	<td align="center" nowrap="nowrap" class="row3">&nbsp;<span class="genmed">{best_topics.REPLIES}</span>&nbsp;</td> 
        		</tr>
	  		<!-- END best_topics --> 
	</table>
</td>
</tr>

<tr>
<td colspan="2" width="50%" class="row3" valign="top">
	<table width="100%" border="0" cellpadding="1" cellspacing="1" style="border-collapse: collapse" class="forumline"> 
		<tr>
	        	<td class="catHead" width="100%" colspan="4" height="25"><span class="cattitle"><center><b>{actualstats9}</b></center></span></td> 
		</tr>
		<tr>
	        	<td colspan="4" height="2" class="row3"><img src="images/spacer.gif" width="1" height="1" alt="."></td> 
		</tr>
  		<tr> 
    			<th colspan="2" align="center" height="25" class="toprow" nowrap="nowrap">&nbsp;{actualstats10}&nbsp;</th> 
    			<th align="center" class="toprow" nowrap="nowrap">&nbsp;{actualstats11}&nbsp;</th> 
    			<th align="center" class="toprow" nowrap="nowrap">&nbsp;{actualstats12}&nbsp;</th> 
  		</tr> 
  		<!-- BEGIN topicrow --> 
  		<tr> 
    			<td class="row1" width="35" align="center" valign="middle" nowrap="nowrap"> <img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /> </td> 
    			<td class="row1" width="100%"><span class="topictitle">{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />{topicrow.GOTO_PAGE}</span></td> 
    			<td class="row2" align="center" valign="middle"><span class="genmed">{topicrow.VIEWS}</span></td> 
    			<td class="row1" align="center" valign="middle" nowrap="nowrap"><span class="genmed">&nbsp;{topicrow.LAST_POST_AUTHOR}&nbsp;{topicrow.LAST_POST_IMG}&nbsp;{topicrow.LAST_POST_TIME}&nbsp;</span></td> 
  		</tr> 
  		<!-- END topicrow --> 
	</table>
</td>
<td colspan="2" width="50%" class="row3" valign="top">
	<table width="100%" border="0" cellpadding="1" cellspacing="1" style="border-collapse: collapse" class="forumline"> 
		<tr>
	        	<td class="catHead" width="100%" colspan="4" height="25"><span class="cattitle"><center><b>{actualstats13}</b></center></span></td> 
		</tr>
		<tr>
	        	<td colspan="4" 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">&nbsp;{actualstats14}&nbsp;</th> 
    			<th align="center" class="toprow" nowrap="nowrap">&nbsp;{actualstats15}&nbsp;</th> 
    			<th align="center" class="toprow" nowrap="nowrap">&nbsp;{actualstats16}&nbsp;</th>
    			<th align="center" class="toprow" nowrap="nowrap">&nbsp;{actualstats17}&nbsp;</th> 
  		</tr>
        	<!-- BEGIN staff -->
  		<tr> 
     			<td colspan="1" height="1" class="row2" align="center"><span class="genmed"><a href="{staff.U_NAME}" class="genmed"><b>{staff.NAME}</b></a></span></td> 
			<td colspan="1" height="1" class="row3" align="center"><span class="genmed">{staff.LEVEL}</span></td>
			<td colspan="1" height="1" class="row3" align="center"><span class="genmed">{staff.PM}</span></td>
			<td colspan="1" height="1" class="row3" align="center"><span class="genmed">{staff.POSTER_ONLINE}</span></td>
  		</tr>
        	<!-- END staff -->
	</table>
</td></tr>

</table> 
<!-- ##### AKTUELLE FORENSTATISTIK ENDE ##### -->
<br>
das ding in deine templat-ornder kopieren und actualstats_body.tpl nennen.

ist zumindest bei mir so...... :wink:
oder benutzt du eine andere statistik? (meine hier: http://www.dvdlr.de/actualstats.php)