Fussball Tippspiel MOD (BETA)
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.
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.
da fällt mir gerade ein kleiner bug auf ...
es kommen komische prozente bei den tips der adneren spieler raus ...
es habeng erade 10 andere user getippt und es kommen prozente von
90% - 20% - 0% oder
20% - 10% - 80%
jedoch nur bei ein paar spielen, nicht bei allen ...
es kommen komische prozente bei den tips der adneren spieler raus ...
es habeng erade 10 andere user getippt und es kommen prozente von
90% - 20% - 0% oder
20% - 10% - 80%
jedoch nur bei ein paar spielen, nicht bei allen ...
Wer etwas will, sucht Wege.
Wer etwas nicht will, sucht Gründe.
Wer etwas nicht will, sucht Gründe.
-
- Mitglied
- Beiträge: 54
- Registriert: 26.07.2004 19:25
-
- Mitglied
- Beiträge: 8
- Registriert: 25.07.2005 19:10
- Kontaktdaten:
Ok, noch was.
Falls jemand das Intro + Portal MOD installiert hat und die aktuelle Tabelle auf dem Portal haben will, hier die Anleitung dazu.
Demo: http://vfb.mine.nu
Falls jemand das Intro + Portal MOD installiert hat und die aktuelle Tabelle auf dem Portal haben will, hier die Anleitung dazu.
Demo: http://vfb.mine.nu
Code: Alles auswählen
##############################################################
## MOD Title: Intro + Portal + tippspiel_mod Bundesliga Tabelle Box Addon
## MOD Author: protagonist <> http://vfb.mine.nu
##
## MOD Description: Fügt zu Deinem Intro + Portal MOD 1.50 mit tippspiel_mod eine neue Box mit Bundesligatabelle hinzu. Der Admin kann in der MOD Konfiguration die Anzeige auf dem Portal aktivieren und deaktivieren.
## MOD Version: 1.00
##
## Installation Level: easy
## Installation Time: 5 Minutes
##
## Mögliche Installationsmethoden:
## - Installation anhand dieser Anleitung
##
## Files To Edit: 8
## portal.php
## templates/subSilver/portal_body.tpl
## admin/admin_introportalmod.php
## templates/subSilver/admin/introportalmod_body.tpl
## language/lang_english/lang_introportal.php
## language/lang_german/lang_introportal.php
## language/lang_english/lang_main.php
## language/lang_german/lang_main.php
##
##############################################################
## 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 !
##############################################################
## Author Notes: Der Intro + Portal - MOD Version 1.50 und der tippspiel_mod müssen zuvor vollständig installiert sein !
##############################################################
##############################################################
#
#-----[ SQL ]------------------------------------------
#
# german: SQL Datenbankänderungen ausführen
#
INSERT INTO phpbb_introportalmod VALUES ('bundesliga_active', '1');
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
# german: Öffne
#
portal.php
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
// BEST TOPICS END
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
// BUNDESLIGA TABELLE START
if( $introportalmod_config['bundesliga_active'] == "1" )
{
$sql = 'SELECT * FROM tippspiel_tabelle ORDER BY punkte DESC,diff DESC,tore DESC,gegentore ASC';
if( !$result = $db->sql_query($sql) )
message_die(GENERAL_ERROR, $lang['tipp_Sql_Error'], $lang['Error'], __LINE__, __FILE__, $sql);
while($row = $db->sql_fetchrow($result))
{
$platz_counter++;
$colortable = 'row1';
$template->assign_block_vars('tabelle_block', array(
'PLATZ' => $platz_counter,
'VEREIN' => $row['name'],
'AGAINST' => $row['gegentore'],
'TEAMPOINTS' => $row['punkte'],
'SPIELE' => $row['spiele'],
'C_TABELLE' => $colortable,
'GOALS' => $row['tore'],
"VEREIN_HOMEPAGE" => $row['homepage']
));
}
$template->assign_block_vars('switch_bundesliga_active', array());
}
// BUNDESLIGA TABELLE ENDE
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
'IntroPortaltext26' => $lang['IntroPortaltext26'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
// bundesliga tabelle
'IntroPortaltext27' => $lang['IntroPortaltext27'],
// bundesliga tabelle
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
# german: Öffne
#
templates/subSilver/portal_body.tpl
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
<!-- ##### BEST TOPICS END ##### -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
<!-- ##### BUNDESLIGA START ##### -->
<!-- BEGIN switch_bundesliga_active -->
<table width="100%" border="0" cellpadding="1" cellspacing="1" style="border-collapse: collapse" class="forumline">
<tr>
<td class="catHead" colspan="5" height="25"><span class="cattitle"><center><b>{IntroPortaltext28}:</b></center></span></td>
</tr>
<tr>
<td colspan="5" height="1" class="row3"><img src="images/spacer.gif" width="1" height="1" alt="."></td>
</tr>
<!-- END switch_bundesliga_active -->
<!-- BEGIN tabelle_block -->
<tr>
<td class="{tabelle_block.C_TABELLE}" align="right" width="5%"><span class="gensmall">{tabelle_block.PLATZ}.)</span></td>
<td class="{tabelle_block.C_TABELLE}" align="left" width="55%"><span class="gensmall"><a href="{tabelle_block.VEREIN_HOMEPAGE}" target="_blank">{tabelle_block.VEREIN}</a></span></td>
<td class="{tabelle_block.C_TABELLE}" align="center" width="5%"><span class="gensmall">{tabelle_block.SPIELE}</span></td>
<td class="{tabelle_block.C_TABELLE}" align="center" width="10%"><span class="gensmall">{tabelle_block.GOALS}:{tabelle_block.AGAINST}</span></td>
<td class="{tabelle_block.C_TABELLE}" align="right" width="10%"><span class="gensmall">{tabelle_block.TEAMPOINTS}</span></td>
</tr>
<!-- END tabelle_block -->
<!-- BEGIN switch_bundesliga_active -->
</table>
<br>
<!-- END switch_bundesliga_active -->
<!-- ##### BUNDESLIGA END ##### -->
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
# german: Öffne
#
admin/admin_introportalmod.php
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
$forumlegend_active_no = (!$new['forumlegend_active']) ? 'checked="checked"' : '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
// bundesliga tabelle
$bundesliga_active_yes = ($new['bundesliga_active']) ? 'checked="checked"' : '';
$bundesliga_active_no = (!$new['bundesliga_active']) ? 'checked="checked"' : '';
// bundesliga tabelle
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
'IntroPortaltext26' => $lang['IntroPortaltext26'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
// bundesliga tabelle
'IntroPortaltext27' => $lang['IntroPortaltext27'],
// bundesliga tabelle
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
'IntroPortalAdmin60' => $lang['IntroPortalAdmin60'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
'IntroPortalAdmin61' => $lang['IntroPortalAdmin61'],
'IntroPortalAdmin62' => $lang['IntroPortalAdmin62'],
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
"google_active_ENABLE" => $google_active_yes,
"google_active_DISABLE" => $google_active_no,
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
// bundesliga tabelle
"bundesliga_active_ENABLE" => $bundesliga_active_yes,
"bundesliga_active_DISABLE" => $bundesliga_active_no,
// bundesliga tabelle
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
# german: Öffne
#
templates/subSilver/admin/introportalmod_body.tpl
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
<td class="row2"><input type="radio" name="globalannouncemod_active" value="1" {globalannouncemod_active_ENABLE} /> {L_ENABLED} <input type="radio" name="globalannouncemod_active" value="0" {globalannouncemod_active_DISABLE} /> {L_DISABLED}</td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
<tr>
<th class="thHead" colspan="2">{IntroPortalAdmin61}:</th>
</tr>
<tr>
<td class="row1">{IntroPortalAdmin61}:<br><span class="gensmall">{IntroPortalAdmin62}</span></td>
<td class="row2"><input type="radio" name="bundesliga_active" value="1" {bundesliga_active_ENABLE} /> {L_ENABLED} <input type="radio" name="bundesliga_active" value="0" {bundesliga_active_DISABLE} /> {L_DISABLED}</td>
</tr>
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
# german: Öffne
#
language/lang_english/lang_introportal.php
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
$lang['IntroPortaltext26'] = 'Heise - Newsticker';
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
$lang['IntroPortaltext27'] = 'Current Bundesliga Table';
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
// ADMIN NAVIGATION:
#
#-----[ BEFORE, ADD ]------------------------------------------
#
# german: Davor einfügen
#
$lang['IntroPortalAdmin61'] = 'German Bundesliga';
$lang['IntroPortalAdmin62'] = 'Recent Table on the Portal';
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
# german: Öffne
#
language/lang_german/lang_introportal.php
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
$lang['IntroPortaltext26'] = 'Heise - Newsticker';
#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#
$lang['IntroPortaltext27'] = 'Aktuelle Tabelle';
#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#
// ADMIN NAVIGATION:
#
#-----[ BEFORE, ADD ]------------------------------------------
#
# german: Davor einfügen
#
$lang['IntroPortalAdmin61'] = 'Bundesliga Box';
$lang['IntroPortalAdmin62'] = 'Aktuelle Tabelle auf dem Portal';
##############################################################
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# german: Speichere/Schließe alle Dateien
#
# The Bundesliga Box for the the Portal should work now !
#
# german: Die Bundesliga Box für das Portal sollte nun funktionieren !
#
# protagonist
# http://vfb.mine.nu
#
# EoM
@protagonist: auch von mir vielen Dank für die Hinspiele
Mir geht es übrigens genauso vie JRK was die Rückrunde angeht *g
@protagonist: Viel cooler wäre im Portal anzuzeigen, wie der Stand in der Tippspielpunktetabelle ist... Hast Du da vielleicht auch ne Idee ???
Oder vielleicht mit in die Ministats auf der Hauptseite
siehe hier, wäre cool, wenn das unten anstatt irgendetwas anderes drin stehen würde
http://norman.lantzius.com
Mir geht es übrigens genauso vie JRK was die Rückrunde angeht *g

@protagonist: Viel cooler wäre im Portal anzuzeigen, wie der Stand in der Tippspielpunktetabelle ist... Hast Du da vielleicht auch ne Idee ???
Oder vielleicht mit in die Ministats auf der Hauptseite
siehe hier, wäre cool, wenn das unten anstatt irgendetwas anderes drin stehen würde
http://norman.lantzius.com
-
- Mitglied
- Beiträge: 8
- Registriert: 25.07.2005 19:10
- Kontaktdaten: