Statistik Mod läuft nicht richtig in anderen Templates
Verfasst: 06.11.2003 22:57
Ich habe das soweit installiert. Bei SubSilver läuft es ohne Fehler.## EasyMod 0.0.7 compliant
##############################################################
## MOD Title: Mini Forum Statistik im Index
## MOD Author: AWSW < > (AWSW) http://www.awsw.de
## MOD Description: Fügt zu Deinem phpBB eine kleine Auflistung einiger Daten des Forums hinzu. Als Beispiel wird diese Auflistung hier im Index eingebaut. Die Liste kann aber auch an anderer Stelle im Forum integriert werden. Folgende Daten sind enthalten: "Letzte Registrationen", "User mit den meisten Beiträgen", "Beiträge mit den meisten Antworten", "Die letzten 5 Themen" und "Die Webmaster". Die Installation ist sehr leicht auszuführen...
## Adds a small list with some statistic elements to your forum index. You can place this list on other sites too. Statistic elements: "Last Registrations", "User with the most posts", "Topics with the most answers", "The 5 last topics" and "The Webmaster".
## MOD Version: 1.00
##
## Installation Level: easy
## Installation Time: 5 Minutes
## Generator: phpBB2 Mod Maker 0.1.67
##############################################################
## This MOD is released under the GPL License. Intellectual Property is retained by the MOD Author(s) listed above. http://www.gnu.org
##############################################################
## For Security Purposes, Please Check: http://www.awsw.de/ for the latest version of this MOD. Downloading this MOD from other sites could cause malicious code to enter into your phpBB Forum. You´ll find support to this MOD at http://www.phpbb.de/
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up Your Complete Database And All Files Related To This MOD !
##############################################################
#
#-----[ COPY TO FOLDER ]------------------------------------------
#
COPY phpBB2/actualstats.php TO actualstats.php
COPY phpBB2/templates/actualstats_body.tpl TO templates/actualstats_body.tpl
COPY phpBB2/language/lang_english/lang_actualstats.php TO language/lang_english/lang_actualstats.php
COPY phpBB2/language/lang_german/lang_actualstats.php TO language/lang_german/lang_actualstats.php
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
//
// Generate the page
//
$template->pparse('body');
#
#-----[ BEFORE, ADD ]------------------------------------------
#
include($phpbb_root_path . 'actualstats.'.$phpEx);
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN switch_user_logged_out -->
#
#-----[ BEFORE, ADD ]------------------------------------------
#
{ACTUALSTATS_OUTPUT}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Aber mit dem Template: LastCrusade irgendwie nicht !!??
Siehe hier: http://www.salsa-welt.de/test/phpBB2/
Es ist überbreit und nicht in der richtigen Farbe!
Die durch mich geänderte Datei sieht so aus:
Code: Alles auswählen
<table width="98%" border="0" cellspacing="2" cellpadding="2" align="center">
<tr>
<td align="left" width="50%" valign="middle"><span class="smalltext">
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}" class="smalllink">{L_SEARCH_NEW}</a><br>
<a href="{U_SEARCH_SELF}" class="smalllink">{L_SEARCH_SELF}</a>
<!-- END switch_user_logged_in -->
<br>
{CURRENT_TIME}<br>
<!-- BEGIN switch_user_logged_in -->
{LAST_VISIT_DATE}
<!-- END switch_user_logged_in -->
</span></td>
<td align="right" width="50%" valign="bottom">
<p><a href="{U_INDEX}" class="smalllink">{L_INDEX}</a><br>
</p>
<p><span class="smalltext">{TOTAL_POSTS}<br>
{TOTAL_USERS}</span></p>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="98%" align="center">
<tr>
<td class="tableborder">
<table cellpadding="4" cellspacing="1" border="0" width="100%">
<tr align="center">
<td class="toprow"> </td>
<td width="80%" align="left" class="toprow"><b><span class="toprowtext"> {L_FORUM} </span></b></td>
<td class="toprow"><b><span class="toprowtext"> {L_POSTS} </span></b></td>
<td class="toprow"><b><span class="toprowtext">Threads</span></b></td>
<td nowrap class="toprow"><b><span class="toprowtext"> {L_LASTPOST} </span></b></td>
<td width="20%" class="toprow"><b><span class="toprowtext"> Moderator </span></b></td>
</tr>
<!-- BEGIN catrow -->
<tr>
<td colspan="6" class="catrow"><a href="{catrow.U_VIEWCAT}" class=catlink>{catrow.CAT_DESC}</a></td>
</tr>
<!-- BEGIN forumrow -->
<tr align="center">
<td valign="middle" class="row1" align="center"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td align="left" class="row2"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br>
<span class="smalltext"> {catrow.forumrow.FORUM_DESC}<br>
</span></td>
<td class="row1"><span class="smalltext"><font size="2">{catrow.forumrow.POSTS}</font></span></td>
<td class="row2"><span class="smalltext"><font size="2">{catrow.forumrow.TOPICS}</font></span></td>
<td class="row1" align="right" nowrap>
<table width="100%">
<tr>
<td nowrap align="right"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
</table>
</td>
<td class="row2" nowrap><span class="smalltext">{catrow.forumrow.MODERATORS}</span></td>
</tr>
<!-- END forumrow -->
<!-- END catrow -->
<tr >
<td colspan="6" class="catrow"><a href="{U_VIEWONLINE}" class="catlink">{L_WHO_IS_ONLINE}</a></td>
</tr>
<tr>
<td colspan="6" class="row2"> <span class="smalltext">{TOTAL_USERS_ONLINE}
[ <b>{L_WHOSONLINE_ADMIN}</b> ] [ <b>{L_WHOSONLINE_MOD}</b>
]<br>
{LOGGED_IN_USER_LIST}<br>
{RECORD_USERS}
</span></td>
</tr>
<tr>
<td colspan="6" class="row1"> <span class="smalltext">
{NEWEST_USER} </span></td>
</tr>
<!-- BEGIN switch_user_logged_in -->
<tr>
<td colspan="6" class="catrow"><span class="catrowtext">Private Messages</span></td>
</tr>
<tr align="center" valign="middle">
<td class="row1"> <img src="templates/LastCrusade/images/folder_new.gif">
</td>
<td colspan="5" class="row2" align="left">
<p><span class="smalltext">{CURRENT_TIME}</span><span class="mainmenu"><a href="{U_PRIVATEMSGS}" class="mainmenu"><br>
{PRIVATE_MESSAGE_INFO}</a></span></p>
</td>
</tr>
<!-- END switch_user_logged_in -->
</table>
</td>
</tr>
</table>
<table width="98%" cellspacing="0" border="0" align="center" cellpadding="2">
<tr>
<td align="left"><a href="{U_MARK_READ}" class="smalllink">{L_MARK_FORUMS_READ}</a></td>
<td align="right" width="50%"><span class="smalltext"> </span><span class="smalltext">
<a href="{U_LOGIN_LOGOUT}" class="smalllink">{L_LOGIN_LOGOUT}</a> | {S_TIMEZONE}</span></td>
</tr>
</table>
{ACTUALSTATS_OUTPUT}
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="center" width="100%">
<table cellspacing="3" border="0" align="center" cellpadding="0">
<tr>
<td width="20" align="center"><img src="templates/LastCrusade/images/folder_new.gif" alt="{L_NEW_POSTS}"/></td>
<td><span class="smalltext">{L_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center"><img src="templates/LastCrusade/images/folder.gif" alt="{L_NO_NEW_POSTS}" /></td>
<td><span class="smalltext">{L_NO_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center"><img src="templates/LastCrusade/images/folder_lock.gif" alt="{L_FORUM_LOCKED}" /></td>
<td><span class="smalltext">A Closed Forum</span></td>
</tr>
</table>
</td>
<td align="right">
<!-- BEGIN switch_user_logged_out -->
<table border="0" cellpadding="2" cellspacing="0">
<form method="post" action="{S_LOGIN_ACTION}">
<tr>
<td nowrap><span class="smalltext">Login with username and password:</span></td>
</tr>
<tr>
<td nowrap align="center">
<input class="post" type="text" name="username" size="10" />
<input class="post" type="password" name="password" size="10" />
<b>Auto Login?</b>
<input class="text" type="checkbox" name="autologin" value="ON" />
<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
<br>
</td>
</tr>
</form>
</table>
<!-- END switch_user_logged_out -->
</td>
</tr>
</table>
Matthias