Statistik

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Gast660
Mitglied
Beiträge: 165
Registriert: 13.05.2005 13:57

Statistik

Beitrag von Gast660 »

Hi ...

Wie schaffe ich es, dass ich unten die Statistik vom Mini Foren Statistik Mod alles in eine Reihe bekomme ???

LINK: http://www.forum-page.de.tc

Hier ist meine actualstats.php:

Code: Alles auswählen

<?php
/***************************************************************************
 *                              actualstats.php
 *                            -------------------
 *   begin                : Mai 28, 2003
 *   copyright            : AWSW @ www.awsw.de
 *   email                : awsw@awsw.de
 *
 *   $Id: actualstats.php,v 1.99.2.1 2002/05/28 18:00:00 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.
 *
 ***************************************************************************/

 if ( !defined('IN_PHPBB') )
 {
 	die("Hacking attempt ! - Diese Datei kann nicht direkt aufgerufen werden !");
 }



//
// Load the appropriate Rules file
//
if( isset($HTTP_GET_VARS['mode']) )
{
	switch( $HTTP_GET_VARS['mode'] )
	{
		case 'bbcode':
			$lang_file = 'lang_bbcode';
			$l_title = $lang['BBCode_guide'];
			break;
		default:
			$lang_file = 'lang_actualstats';
			$l_title = $lang['actualstats'];
			break;
	}
}
else
{
	$lang_file = 'lang_actualstats';
	$l_title = $lang['actualstats'];
}
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/' . $lang_file . '.' . $phpEx);



//
// AKTUELLE FORENSTATISTIK START 
//

###### start most posts_##### 
    $sql = "SELECT user_id, username, user_posts 
        FROM " . USERS_TABLE . " 
        WHERE user_id <> " . ANONYMOUS . " 
        ORDER BY user_posts 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("most_posts", array( 
                    'USERNAME' => $row['username'], 
                    'POSTS' => $row['user_posts'], 
            'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id")) 
            ); 
    } 
##### end most posts_####### 
//##################### WEBMASTER #####################
$sql = "SELECT * FROM " . USERS_TABLE . " WHERE user_level !='0' ORDER BY user_level"; 
  if ( !($results = $db->sql_query($sql)) ) 
  { 
           message_die(GENERAL_ERROR, 'Datenbank-Connect-Problem', '', __LINE__, __FILE__, $sql); 
  } 
while($m = $db->sql_fetchrow($results)) 
   { 
        if ( $m['user_level'] == ADMIN ) { 
                        $level = '<b style="color:#' . $theme['fontcolor4'] . '">Administrator</b>'; 
                } 
        else if ( $m['user_level'] == 3 ) { 
                        $level = '<b style="color:#' . $theme['fontcolor1'] . '">Supermoderator</b>'; 
                } 
	  else if ( $m['user_level'] == 9 ) 
			{ 
       $level = '<b style="color:#' . $theme['fontcolor1'] . '">Junior Admin</b>'; 
			} 
                else if ( $m['user_level'] == MOD ) 
                        { 
                                $level = '<b style="color:#' . $theme['fontcolor5'] . '">Moderator</b>'; 
                        } 
                else 
                        { 
                                $level = '<b style="color:#' . $theme['fontcolor5'] . '">Entwickler</b>'; 
                        }

                if ( $m['user_email'] )
                {
                                     $mail = '<a href="mailto:' . $m['user_email'] . '"><img src="' . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" border="0" /></a>';
                }
                else
                {
                                     $mail = '';
                }
      $u_name = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$m[user_id]"); 
      $name = $m[username]; 
      $template->assign_block_vars('staff',   array( 
                       'NAME' => $name,
			     'PM' => '<a href="privmsg.'.$phpEx.'?mode=post&u='. $m['user_id'] .'"><img src="' . $images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" border="0" /></a>',
                       'POSTER_ONLINE' => (($m['user_session_time'] >= ( time() - 300 )) && ($m['user_allow_viewonline'])) ? '<span style="color:green;">Online</span>' : '<span style="color:red;">Offline</span>',  
                       'U_NAME' => $u_name, 
                       'LEVEL' => $level) 
      ); 
   } 
//##################### WEBMASTER #####################
//
// AKTUELLE FORENSTATISTIK ENDE
//


	$template->set_filenames(array(
		'actualstats_output' => '../actualstats_body.tpl')
	);


//
// Generate the page
//

$template->assign_var_from_handle('ACTUALSTATS_OUTPUT', 'actualstats_output');

?>
Gast660
Mitglied
Beiträge: 165
Registriert: 13.05.2005 13:57

Beitrag von Gast660 »

Das Problem hat sich erledigt :D

Aber einen kleinen Schönheitsfehler hab ich noch:

Große Grafiken bitte verlinken. Danke
KB:knigge
Markus


Wie bekomme ich die Klammer wieder in obere Zeile oder meinetwegen auch ganz weg ???
Zuletzt geändert von Gast660 am 21.06.2005 18:08, insgesamt 1-mal geändert.
Benutzeravatar
easygo
Mitglied
Beiträge: 2170
Registriert: 03.09.2004 13:45
Kontaktdaten:

Beitrag von easygo »

Gast660 hat geschrieben:Das Problem hat sich erledigt :D

Aber einen kleinen Schönheitsfehler hab ich noch:
Jo der Thread hat jetzt auch einen... dank deiner 1000 x 651 Pixelgrafik :o

Falls du mit Klammer die Legende meinst:

[ Administrator ] [ Moderator ]

Die gehört wenn, dann komplett eins tiefer.

Setz einfach 1 oder 2 <br /> vor die erste Klammer... easy
Gast660
Mitglied
Beiträge: 165
Registriert: 13.05.2005 13:57

Beitrag von Gast660 »

easygo hat geschrieben:
Jo der Thread hat jetzt auch einen... dank deiner 1000 x 651 Pixelgrafik :o
^^ ... Wenn ich sie kleiner mach erkennt man es nicht gut !!!

Ich welcher Datei kann ich muss ich denn den <br> einfügen ???
Benutzeravatar
gloriosa
Mitglied
Beiträge: 13770
Registriert: 04.01.2005 20:23
Wohnort: Landeshauptstadt Erfurt

Datei

Beitrag von gloriosa »

Gast660 hat geschrieben:Ich welcher Datei kann ich muss ich denn den <br> einfügen ???
Hallo,
das sollte die templates/xxx/index_body.tpl sein. :wink:
Viele Grüße - gloriosa :D
Die einen schützen sich vor frischem Wind, während die anderen ihn nutzen.
Kein kostenloser MOD-Einbau usw. bzw. Support via PN, Email oder IRC !
Benutzeravatar
easygo
Mitglied
Beiträge: 2170
Registriert: 03.09.2004 13:45
Kontaktdaten:

Beitrag von easygo »

Gast660 hat geschrieben:^^ ... Wenn ich sie kleiner mach erkennt man es nicht gut !!!
Ahja? Ausschnitt hätt fei gelangt! :roll: easy
Gast660
Mitglied
Beiträge: 165
Registriert: 13.05.2005 13:57

Beitrag von Gast660 »

Noch eine Frage .. wie bekomme ich diesen grauen Hintergrund weg:

[ externes Bild ]

Diesmal hab ich auch das Bild kleiner gemacht :D
Benutzeravatar
Markus67
Ehrenadmin
Beiträge: 28346
Registriert: 12.01.2004 16:02
Wohnort: Neuss
Kontaktdaten:

Beitrag von Markus67 »

Hi ...

Das kannst du in der actualstats_body.tpl ändern. Bevor ich jetzt aber losrate ... wie heisst das Template welches du benutzt .. in Solaris siehts ja ok aus :wink:

Markus
Gast660
Mitglied
Beiträge: 165
Registriert: 13.05.2005 13:57

Beitrag von Gast660 »

Also .. ich hab jetzt gerade ein neues installiert !!!

ALT: Morpheus

NEU: MorpheusXBlue
Benutzeravatar
Markus67
Ehrenadmin
Beiträge: 28346
Registriert: 12.01.2004 16:02
Wohnort: Neuss
Kontaktdaten:

Beitrag von Markus67 »

Hi ...

ersetze mal bitte deine komplette actualstats_body.tpl mit der hier ...

Code: Alles auswählen

<!-- ##### AKTUELLE FORENSTATISTIK START ##### -->
{TPL_HDR1} {actualstats1} {TPL_HDR2}
<table width="100%" border="0" cellpadding="3" cellspacing="0" class="forumline">
<tr>
<td width="45%" class="row3" valign="top">
	<table width="100%" border="0" cellpadding="1" cellspacing="1" style="border-collapse: collapse" class="forumline" id="table2"> 
		<tr>
	  		<td class="row4" width="100%" colspan="2" height="25"><span class="cattitle"><center><b>{actualstats5}</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;{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="55%" class="row3" valign="top">
	<table width="100%" border="0" cellpadding="1" cellspacing="1" style="border-collapse: collapse" class="forumline" id="table3"> 
		<tr>
	        	<td class="row4" 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>{TPL_FTR} 
Das sollte mal ein Anfang sein ... aber wahrscheinlich muss man noch ein bischen feilen :wink:

Markus
Antworten

Zurück zu „phpBB 2.0: Mod Support“