Didyouknow?-Hack verschiebt mein gesamtes Board :(

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.
Antworten
Knight_Killer
Mitglied
Beiträge: 2
Registriert: 08.03.2004 13:58

Didyouknow?-Hack verschiebt mein gesamtes Board :(

Beitrag von Knight_Killer »

Ich quote hier einfach mal den hack:
## EasyMod 0.0.7 compliant
##############################################################
## MOD Title: Did you know? Box
## MOD Author: Dwing < dwing@weingarten-net.de > (Dimitri Seitz) http://www.dseitz.de
## MOD Description: This Hack will create a 'Did you know?' Box in the phpBB Header. Sentences can be set in the file schon_gewusst.txt
## MOD Version: 1.0.0
##
## Installation Level: easy
## Installation Time: 2 minutes
## Files To Edit: 2
## Included Files: schon_gewusst.txt
##############################################################
## Author Notes: Demo http://www.weingarten-net.de/static/modtest/ (german version)
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php

#
#-----[ FIND ]------------------------------------------
#
// Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility
$l_timezone = explode('.', $board_config['board_timezone']);
$l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])];


#
#-----[ AFTER, ADD ]------------------------------------------
#
//
// Generate 'Did you know?'
//
$random_file = $phpbb_root_path . 'schon_gewusst.txt';
$random = file($random_file);

srand();
$randomizer = rand(0, count($random) );
$znumber = rand(1, 2);

if( !isset($random[$randomizer]) )
{
$random[$randomizer] = 'More Mods like this <a href="http://www.dseitz.de">here</a>';
}

#
#-----[ FIND ]------------------------------------------
#
'PRIVMSG_IMG' => $icon_pm,

#
#-----[ AFTER, ADD ]------------------------------------------
#
'ZMESSAGE' => $random[$randomizer],
'ZNUMBER' => $znumber,

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl

#
#-----[ FIND ]------------------------------------------
#
</table></td>
</tr>
</table>

#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- Did you know? -->
<br />
<table border="0" align="center" cellpadding="4" cellspacing="0" class="forumline">
<tbody>
<tr>
<th class="thHead">&nbsp;Did you kow?&nbsp;</th>
</tr>
<tr>
<td class="row{ZNUMBER}"><span class="gen">&nbsp;{ZMESSAGE}&nbsp;</span></td>
</tr>
</tbody>
</table>
<br clear="all">
<!-- Did you know? -->

#
#-----[ COPY TO FOLDER ]------------------------------------------
#
schon_gewusst.txt to schon_gewusst.txt

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Der hack an sich ist funktioniert aber das ganze Board ist jetzt quasi in die rechte hälfte des Bildschirms gequetscht worden :(
Woran liegt das?

Danke im vorraus!
Acid
Ehrenadmin
Beiträge: 12195
Registriert: 26.04.2001 02:00
Wohnort: Berlin

Beitrag von Acid »

Sicherlich an eine falsche Einbindung in die overall_header.tpl (bezüglich dem Ende von Tabellen(spalten)). Ggf. die overall_header.tpl hier verlinken.
Antworten

Zurück zu „phpBB 2.0: Mod Support“