Adventskalender Module for Board3 Portal 2.0.0b1

Forum rules
This forum is not for support requests.

Only post Modifications for Board3 Portal 2.0.x in this forum.
User avatar

Topic author
Kirk
Dev
Posts: 1937
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Adventskalender Module for Board3 Portal 2.0.0b1

Post by Kirk »

Vorraussetzung für das Modul ist das ihr den Mod Advent Calendar in eurem Board eingebaut habt.
Erstellt eine Datei namens portal_advent.php und fügt folgenden Code ein:

Code: Select all

<?php
/**
*
* @package - Board3portal Advent Calendar
* @copyright (c) 2009 Wuerzi http://www.spieleresidenz.de
* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
*
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

/**
* @package Advent Calendar
*/
class portal_advent_module
{
	/**
	* Allowed columns: Just sum up your options (Exp: left + right = 10)
	* top		1
	* left		2
	* center	4
	* right		8
	* bottom	16
	*/
	public $columns = 21;

	/**
	* Default modulename
	*/
	public $name = 'PORTAL_ADVENT';

	/**
	* Default module-image:
	* file must be in "{T_THEME_PATH}/images/portal/"
	*/
	public $image_src = '';

	/**
	* module-language file
	* file must be in "language/{$user->lang}/mods/portal/"
	*/
	public $language = 'portal_advent';
	
	/**
	* custom acp template
	* file must be in "adm/style/portal/"
	*/
	public $custom_acp_tpl = '';
	
	/**
	* hide module name in ACP configuration page
	*/
	public $hide_name = false;

	public function get_template_center($module_id)
	{
		global $config, $template, $user, $phpbb_root_path, $phpEx;
		
		// Numbersize
$class_size = array(
	'20',
	'30',
	'40'
);

// Font
$class_font = array(
	'font-family: Times New Roman, Georgia, Times;',
	'font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;'
);

// Fontcolor
$class_color = array(
	'white',
	'yellow',
	'silver',
	'red'
);

// Fontweight
$class_weight = array(
	'font-weight: bold;'
);

// Font
$class_style = array(
	'font-style: italic;',
	'font-style: normal;'
);

$ak_hover_size = 45;
$ak_hover_color = '#00FF00';

$tuer_tag_style = 'font-size: 50px; font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular; color: white; font-weight: bold';

// Do noting change after this line!
$user->add_lang('mods/advent');
$tag_link = request_var('t', 0);
$a_path = (defined('ADVENT_PATH')) ? ADVENT_PATH : 'advent/';

$heute = mktime(date("H")+0, date("i"), date("s"), date("m"), date("d"));
$heute_m = date("m", $heute);
$heute_t = date("d", $heute);

$ak_verz = @opendir($a_path . 'images/back');

while($ak_bg_file = readdir($ak_verz))
{
	if($ak_bg_file != '.' && $ak_bg_file != '..')
	{
		$ak_bg_files[] = $ak_bg_file;
	}
}

$ka_bild = $a_path . 'images/back/' . $ak_bg_files[rand(0, count($ak_bg_files)-1)];

$tuer = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24);
shuffle ($tuer);
$p_v = array('top', 'middle', 'bottom');
$p_h = array('left', 'center', 'right');

$kalender = '';

$pos=0;
for ($z = 1; $z <= 4; $z++)
{
	$kalender .= '<tr>';
	for ($s = 1; $s <= 6; $s++)
	{
		if ($tuer[$pos] < $heute_t && $heute_m == 12)
		{
			$tuerbild = $a_path . 'images/t_a_60.gif';
		}
		else
		{
			$tuerbild = $a_path . 'images/t_60.gif';
		}
		
		$class_color_rand = rand(0, count($class_color) - 1);
		$class_size_rand = rand(0, count($class_size) - 1);

		$kalender .= '<td align="' . $p_h[rand(0, 2)] . '" valign="' . $p_v[rand(0, 2)] . '">
			<table width="60" height="60" cellspacing="0" cellpadding="0" background="' . $tuerbild . '">
				<tr>
					<td align="center" valign="middle"><a href="' . append_sid("{$phpbb_root_path}advent.$phpEx", 't=' . $tuer[$pos]) . '" id="a' . $pos . '" style="font-size: ' . $class_size[$class_size_rand] . 'px; ' . $class_font[rand(0, count($class_font) - 1)] . 'color: ' . $class_color[$class_color_rand] . '; ' . $class_weight[rand(0, count($class_weight) - 1)] . $class_style[rand(0, count($class_style) - 1)] . 'text-decoration: none" onmouseover="ka_over(\'a' . $pos . '\');" onmouseout="ka_out(\'a' . $pos. '\', \'' . $class_color[$class_color_rand] . '\', \'' . $class_size[$class_size_rand] . '\');">' . $tuer[$pos] . '</a></td>
				</tr>
			</table></td>';

		$pos = $pos + 1;
	}
	$kalender .= '</tr>';
}

$template->assign_block_vars('kalender', array(
	'KALENDER'    => $kalender,
	'IMG'         => $ka_bild,
));

$template->assign_vars(array(
	'S_ADVENT'			=> date("m") == 12 && date ("d") < 27,
	'AK_HOVER_SIZE'		=> $ak_hover_size,
	'AK_HOVER_COLOR'	=> $ak_hover_color
));

		return 'advent.html';
	}

	public function get_template_acp($module_id)
	{
		return array(
			'title'	=> 'PORTAL_ADVENT',
			'vars'	=> array(),
		);
	}

	/**
	* API functions
	*/
	public function install($module_id)
	{
		return true;
	}

	public function uninstall($module_id)
	{
		return true;
	}
}
Diese Datei kopiert ihr dann nach root/portal/modules

Als nächtes kommt die Sprachdatei, erstelle einen Ordner namens portal_advent.php und fügt folgenden Code ein:

Code: Select all

<?php
/**
*
* @author Adventskalender for phpbb3 © 2008 Wuerzi www.spieleresidenz.de
*
* @package phpbb3advent
* @version 0.1.0
* @copyright (c) 2008
* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

$lang = array_merge($lang, array(
	'PORTAL_ADVENT' 	        => 'Adventskalender',

	
));
?>
Achtet darauf das ihr die Sprachdatei in der Kodierung utf8 ohne Bom speichert.
Diese Datei kopiert ihr dann nach root/language/de/mods/portal

Zum Schluß erstellt ihr noch eine Datei namens advent.html und fügt folgenden Code ein:
Für prosilver:

Code: Select all

<!-- IF S_ADVENT -->
<script type="text/javascript">
function ka_over(link)
{
	document.getElementById(link).style.color = "{AK_HOVER_COLOR}";
	document.getElementById(link).style.fontSize = {AK_HOVER_SIZE};
}

function ka_out(link, farbe, groesse)
{
	document.getElementById(link).style.color = farbe;
	document.getElementById(link).style.fontSize = groesse;
}
</script>

{$C_BLOCK_H_L}{$TITLE}{$C_BLOCK_H_R}
		<ul class="topiclist forums">
			<li>
				<dl> 
					<dd style="width: 100%; text-align: center; border-left:0px;">
					<table width="100%">
						<!-- BEGIN kalender -->
			        	<tr>
			        		<td align="center">
								<table width="500" background="{kalender.IMG}" height="400">
									{kalender.KALENDER}
								</table>
			        		</td>
			        	</tr>
                        <!-- END kalender -->
    					</table>
					</dd>
				</dl>
			</li>
		</ul>
{$C_BLOCK_F_L}{$C_BLOCK_F_R}
<!-- ENDIF -->
Für subsilver2:

Code: Select all

<!-- IF S_ADVENT -->
<script type="text/javascript">
function ka_over(link)
{
	document.getElementById(link).style.color = "{AK_HOVER_COLOR}";
	document.getElementById(link).style.fontSize = {AK_HOVER_SIZE};
}

function ka_out(link, farbe, groesse)
{
	document.getElementById(link).style.color = farbe;
	document.getElementById(link).style.fontSize = groesse;
}
</script>

{$C_BLOCK_H_L}{$TITLE}{$C_BLOCK_H_R}
<table class="tablebg" cellspacing="1" width="100%">
	<!-- BEGIN kalender -->
	<tr>
		<td class="row1" align="center"><br />
			<table width="500" border="0" cellspacing="0" cellpadding="5" background="{kalender.IMG}" height="400">
				{kalender.KALENDER}
			</table><br />
		</td>
	</tr>
	<!-- END kalender -->
</table>
{$C_BLOCK_F_L}{$C_BLOCK_F_R}
<!-- ENDIF -->
Diese Datei kopieren nach root/styles/dein stylename/template/portal/modules

Wechselt nun in´s ACP/Mods/PORTAL/Portal Module, klickt dort auf Modul Hinzufügen und wähl in der Liste
Adventskalender aus und klickt auf Absenden danach könnt ihr noch die Berechtigungen für dieses Modul einstellen.
Nicht vergessen den Cache zu leeren.

Anmerkung:
Dieses Portalmodul bekommst du nur angezeigt vom 1.12 - 26.12
Wenn du es dennoch angezeigt haben willst, dann lösche in der advent.html in der ersten Zeile das hier:

Code: Select all

<!-- IF S_ADVENT -->
und in der letzten Zeile das hier:

Code: Select all

<!-- ENDIF -->
Gruß Udo

Pascal

Re: Adventskalender Module for Board3 Portal 2.0.0b1

Post by Pascal »

Hi Erstmal Gute Arbeit aber ich habe mich an deine Anleitung gehalten und bekomme mit diesem Modul immer Kompressionsfehler in Firefox woran liegt das ?

@Mods

wenn ich hier falsch poste bitte in das richtige Thema schieben
User avatar

Topic author
Kirk
Dev
Posts: 1937
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: Adventskalender Module for Board3 Portal 2.0.0b1

Post by Kirk »

Hallo

Schau im ACP/Server und Domain ob bei gzip-Komprimierung aktivieren auf ja gesetzt ist setz es mal auf nein.
Gruß Udo

Pascal

Re: Adventskalender Module for Board3 Portal 2.0.0b1

Post by Pascal »

Werde ich beizeiten mal probieren, aber das ist doch eigentlich gut gzip oder ?
User avatar

Topic author
Kirk
Dev
Posts: 1937
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: Adventskalender Module for Board3 Portal 2.0.0b1

Post by Kirk »

Hab damit noch keine Erfahrung gemacht,aber hast du dir mal die Beschreibung unten gelesen?
Erfordert, dass die zlib-Erweiterung von PHP geladen ist.
Gruß Udo

DocSommer
Active Member
Posts: 49
Joined: 28. January 2009 22:32
Location: Hamburg
Contact:

Re: Adventskalender Module for Board3 Portal 2.0.0b1

Post by DocSommer »

Drollige Idee - leider werde ich dieses Jahr wohl nicht mehr auf das 2.x Portal umsteigen. Als neuer "Kalenderexperte" muss ich glatt mal nachhaken, ob du vielleicht auch einen Kalenderblock für den "calendar mod by alightner" umsetzen könntest?

Gruß

Jan
User avatar

Topic author
Kirk
Dev
Posts: 1937
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: Adventskalender Module for Board3 Portal 2.0.0b1

Post by Kirk »

Hi
Da muß ich passen, hab keinerlei Erfahrung mit diesem Kalender Mod.
Aber für dich als neuer "Kalenderexperte" dürfte das bestimmt kein Problem sein. ;)
Gruß Udo

DocSommer
Active Member
Posts: 49
Joined: 28. January 2009 22:32
Location: Hamburg
Contact:

Re: Adventskalender Module for Board3 Portal 2.0.0b1

Post by DocSommer »

Ich wollte zwischenzeitlich auf phpBB.com im Dev Thread des Kalenders nachhaken und musste feststellen, dass der Kalender -trotz einer großen Popularität - seitens des Modentwicklers wohl nicht weiter betreut wird und daher als "abandoned" geflaggt wurde, von daher wird man sich hier wohl mittelfristig eine Alternative suchen müssen.

redbull360
Active Member
Posts: 3
Joined: 19. April 2012 17:55
phpBB.de User: redbull
phpBB.com User: redbull

Re: Adventskalender Module for Board3 Portal 2.0.0b1

Post by redbull360 »

English version please
User avatar

Topic author
Kirk
Dev
Posts: 1937
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: Adventskalender Module for Board3 Portal 2.0.0b1

Post by Kirk »

Englisch Instructions

Requirement for the module is it the mod Advent Calendar have built into your board.
Creates a file named portal_advent.php and add the following code:

Code: Select all

<?php
/**
*
* @package - Board3portal Advent Calendar
* @copyright (c) 2009 Wuerzi http://www.spieleresidenz.de
* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
*
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

/**
* @package Advent Calendar
*/
class portal_advent_module
{
	/**
	* Allowed columns: Just sum up your options (Exp: left + right = 10)
	* top		1
	* left		2
	* center	4
	* right		8
	* bottom	16
	*/
	public $columns = 21;

	/**
	* Default modulename
	*/
	public $name = 'PORTAL_ADVENT';

	/**
	* Default module-image:
	* file must be in "{T_THEME_PATH}/images/portal/"
	*/
	public $image_src = '';

	/**
	* module-language file
	* file must be in "language/{$user->lang}/mods/portal/"
	*/
	public $language = 'portal_advent';
	
	/**
	* custom acp template
	* file must be in "adm/style/portal/"
	*/
	public $custom_acp_tpl = '';
	
	/**
	* hide module name in ACP configuration page
	*/
	public $hide_name = false;

	public function get_template_center($module_id)
	{
		global $config, $template, $user, $phpbb_root_path, $phpEx;
		
		// Numbersize
$class_size = array(
	'20',
	'30',
	'40'
);

// Font
$class_font = array(
	'font-family: Times New Roman, Georgia, Times;',
	'font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;'
);

// Fontcolor
$class_color = array(
	'white',
	'yellow',
	'silver',
	'red'
);

// Fontweight
$class_weight = array(
	'font-weight: bold;'
);

// Font
$class_style = array(
	'font-style: italic;',
	'font-style: normal;'
);

$ak_hover_size = 45;
$ak_hover_color = '#00FF00';

$tuer_tag_style = 'font-size: 50px; font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular; color: white; font-weight: bold';

// Do noting change after this line!
$user->add_lang('mods/advent');
$tag_link = request_var('t', 0);
$a_path = (defined('ADVENT_PATH')) ? ADVENT_PATH : 'advent/';

$heute = mktime(date("H")+0, date("i"), date("s"), date("m"), date("d"));
$heute_m = date("m", $heute);
$heute_t = date("d", $heute);

$ak_verz = @opendir($a_path . 'images/back');

while($ak_bg_file = readdir($ak_verz))
{
	if($ak_bg_file != '.' && $ak_bg_file != '..')
	{
		$ak_bg_files[] = $ak_bg_file;
	}
}

$ka_bild = $a_path . 'images/back/' . $ak_bg_files[rand(0, count($ak_bg_files)-1)];

$tuer = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24);
shuffle ($tuer);
$p_v = array('top', 'middle', 'bottom');
$p_h = array('left', 'center', 'right');

$kalender = '';

$pos=0;
for ($z = 1; $z <= 4; $z++)
{
	$kalender .= '<tr>';
	for ($s = 1; $s <= 6; $s++)
	{
		if ($tuer[$pos] < $heute_t && $heute_m == 12)
		{
			$tuerbild = $a_path . 'images/t_a_60.gif';
		}
		else
		{
			$tuerbild = $a_path . 'images/t_60.gif';
		}
		
		$class_color_rand = rand(0, count($class_color) - 1);
		$class_size_rand = rand(0, count($class_size) - 1);

		$kalender .= '<td align="' . $p_h[rand(0, 2)] . '" valign="' . $p_v[rand(0, 2)] . '">
			<table width="60" height="60" cellspacing="0" cellpadding="0" background="' . $tuerbild . '">
				<tr>
					<td align="center" valign="middle"><a href="' . append_sid("{$phpbb_root_path}advent.$phpEx", 't=' . $tuer[$pos]) . '" id="a' . $pos . '" style="font-size: ' . $class_size[$class_size_rand] . 'px; ' . $class_font[rand(0, count($class_font) - 1)] . 'color: ' . $class_color[$class_color_rand] . '; ' . $class_weight[rand(0, count($class_weight) - 1)] . $class_style[rand(0, count($class_style) - 1)] . 'text-decoration: none" onmouseover="ka_over(\'a' . $pos . '\');" onmouseout="ka_out(\'a' . $pos. '\', \'' . $class_color[$class_color_rand] . '\', \'' . $class_size[$class_size_rand] . '\');">' . $tuer[$pos] . '</a></td>
				</tr>
			</table></td>';

		$pos = $pos + 1;
	}
	$kalender .= '</tr>';
}

$template->assign_block_vars('kalender', array(
	'KALENDER'    => $kalender,
	'IMG'         => $ka_bild,
));

$template->assign_vars(array(
	'S_ADVENT'			=> date("m") == 12 && date ("d") < 27,
	'AK_HOVER_SIZE'		=> $ak_hover_size,
	'AK_HOVER_COLOR'	=> $ak_hover_color
));

		return 'advent.html';
	}

	public function get_template_acp($module_id)
	{
		return array(
			'title'	=> 'PORTAL_ADVENT',
			'vars'	=> array(),
		);
	}

	/**
	* API functions
	*/
	public function install($module_id)
	{
		return true;
	}

	public function uninstall($module_id)
	{
		return true;
	}
}
Copy that file to root/portal/modules

Next comes the voice file, create a folder called portal_advent.php and add the following code:

Code: Select all

<?php
/**
*
* @author Adventskalender for phpbb3 © 2008 Wuerzi www.spieleresidenz.de
*
* @package phpbb3advent
* @version 0.1.0
* @copyright (c) 2008
* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

$lang = array_merge($lang, array(
	'PORTAL_ADVENT' 	        => 'Advent Calendar',

	
));
?>
Makes sure that her voice file in the code utf8 without Bom stores.
This file then copy it to root/language/en/mods/portal

Finally, it creates another file named advent.html and add the following code:
For prosilver:

Code: Select all

<!-- IF S_ADVENT -->
<script type="text/javascript">
function ka_over(link)
{
	document.getElementById(link).style.color = "{AK_HOVER_COLOR}";
	document.getElementById(link).style.fontSize = {AK_HOVER_SIZE};
}

function ka_out(link, farbe, groesse)
{
	document.getElementById(link).style.color = farbe;
	document.getElementById(link).style.fontSize = groesse;
}
</script>

{$C_BLOCK_H_L}{$TITLE}{$C_BLOCK_H_R}
		<ul class="topiclist forums">
			<li>
				<dl> 
					<dd style="width: 100%; text-align: center; border-left:0px;">
					<table width="100%">
						<!-- BEGIN kalender -->
			        	<tr>
			        		<td align="center">
								<table width="500" background="{kalender.IMG}" height="400">
									{kalender.KALENDER}
								</table>
			        		</td>
			        	</tr>
                        <!-- END kalender -->
    					</table>
					</dd>
				</dl>
			</li>
		</ul>
{$C_BLOCK_F_L}{$C_BLOCK_F_R}
<!-- ENDIF -->
For subsilver2:

Code: Select all

<!-- IF S_ADVENT -->
<script type="text/javascript">
function ka_over(link)
{
	document.getElementById(link).style.color = "{AK_HOVER_COLOR}";
	document.getElementById(link).style.fontSize = {AK_HOVER_SIZE};
}

function ka_out(link, farbe, groesse)
{
	document.getElementById(link).style.color = farbe;
	document.getElementById(link).style.fontSize = groesse;
}
</script>

{$C_BLOCK_H_L}{$TITLE}{$C_BLOCK_H_R}
<table class="tablebg" cellspacing="1" width="100%">
	<!-- BEGIN kalender -->
	<tr>
		<td class="row1" align="center"><br />
			<table width="500" border="0" cellspacing="0" cellpadding="5" background="{kalender.IMG}" height="400">
				{kalender.KALENDER}
			</table><br />
		</td>
	</tr>
	<!-- END kalender -->
</table>
{$C_BLOCK_F_L}{$C_BLOCK_F_R}
<!-- ENDIF -->
Copy that file to root/styles/your style name/template/portal/modules

Will now go into the ACP / mods / PORTAL / portal modules, click here to add modules and selectable in the list
Advent calendar from clicking the submit button and then you can still set the permissions for this module.
Do not forget to flush the cache.

Note:
This portal module you just get displayed from 1.12 - 26.12
If you want it to still be present, then delete the advent.html in the first line here:

Code: Select all

<!-- IF S_ADVENT -->
and in the last line here:

Code: Select all

<!-- ENDIF -->
Sorry for my bad english I am German
Gruß Udo

cctreff
Active Member
Posts: 14
Joined: 11. February 2012 15:11
phpBB.de User: Pfiffy
phpBB.com User: Pfiffy

Re: Adventskalender Module for Board3 Portal 2.0.0b1

Post by cctreff »

Servus Kirk,

ich hab heute versucht, das Portalmodul nach deiner Anleitung zu erstellen. Leider hab ich danach folgendes Problem: Ich klicke im ACP auf "Portal Module" und bekomme nur noch die Meldungen
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 161: Cannot modify header information - headers already sent by (output started at [ROOT]/portal/modules/portal_advent.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 163: Cannot modify header information - headers already sent by (output started at [ROOT]/portal/modules/portal_advent.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 164: Cannot modify header information - headers already sent by (output started at [ROOT]/portal/modules/portal_advent.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 165: Cannot modify header information - headers already sent by (output started at [ROOT]/portal/modules/portal_advent.php:1)
Rufe ich danach das Portal auf steht ganz oben (oberhalb des eigentlichen Portals):
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4919: Cannot modify header information - headers already sent by (output started at [ROOT]/portal/modules/portal_advent.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4921: Cannot modify header information - headers already sent by (output started at [ROOT]/portal/modules/portal_advent.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4922: Cannot modify header information - headers already sent by (output started at [ROOT]/portal/modules/portal_advent.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4923: Cannot modify header information - headers already sent by (output started at [ROOT]/portal/modules/portal_advent.php:1)
Hast du eine Idee, wo ich suchen könnte?

Grücce
Pfiffy
User avatar

Topic author
Kirk
Dev
Posts: 1937
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: Adventskalender Module for Board3 Portal 2.0.0b1

Post by Kirk »

Hi
Diesen Mod hast du aber schon eingebaut?
Ohne funktioniert es nicht.

Edit:
Wie ich gesehen habe hast du den AroBlue Style in dein Board, hab ihn mal Testweise eingebaut.
Kann keinen Fehler erkennen hier auf mein Testboard kannst du es selbst sehen.
Hast du vielleicht in der [ROOT]/portal/modules/portal_advent.php eine ungewollte Leerzeile hinter ?>
Hier steht noch meht über solche Fehlmermeldung: https://www.phpbb.de/kb/headers_already_sent
Ich kann es leider nicht nachvollziehen.
Lad dir das ganze Modul hier runter und spiel es erneut auf.
Gruß Udo

cctreff
Active Member
Posts: 14
Joined: 11. February 2012 15:11
phpBB.de User: Pfiffy
phpBB.com User: Pfiffy

Re: Adventskalender Module for Board3 Portal 2.0.0b1

Post by cctreff »

Servus Kirk,

Danke für die Hilfe. Klar hab ich die MOD drin. Und ja, ich hab ein (bzw. mehrere) Aero-Style. Allerdings alle nicht mehr im Grundzustand sondern stark abgepasst und die Installation hab ich eh in meinem Testsystem gemacht, nicht im Echtsystem (im Testsystem gibt es auch Standard-prosilver).

Ich hab mal das ZIP-File runter geladen und das verwendet. Nach dem Hochladen über die Portalfunktion hat es mir zwar einige Verzeichnisrechte zerschossen (das war schnell behoben), aber jetzt funktioniert das Portalmodul! Ich habe dann die selbst erstellten Files und die aus deinem ZIP-File mit Notepad++ verglichen. Aber mit Ausnahme der Copyright-Hinweise gibt es keinen Unterschied. Ist mir ein Rätsel das Ganze. Bin gespannt, wie es sich in meinem Echtsystem verhält..... Aber das kenn ich ja als Systemadmin: EDV=Ende der Vernunft.... :D

Danke für deine Hilfe und ein schöne Zeit!

Grücce
Pfiffy
User avatar

Topic author
Kirk
Dev
Posts: 1937
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: Adventskalender Module for Board3 Portal 2.0.0b1

Post by Kirk »

Am besten du vergleichst mal die Dateien mit WinMerge
da sieht man die Unterschiede besser.

Schönen Tag noch! :)

Edit:
Was mir gerad aufgefallen ist, wenn man einen Code mit dem FF Browser kopiert bekommt man vor <?
ein Leerzeichen, was dann diese Fehlermeldung verursacht.
Gruß Udo

cctreff
Active Member
Posts: 14
Joined: 11. February 2012 15:11
phpBB.de User: Pfiffy
phpBB.com User: Pfiffy

Re: Adventskalender Module for Board3 Portal 2.0.0b1

Post by cctreff »

Danke Kirk. Notepad++ hat auch eine Erweiterung namens "Compare", da sieht man auch alle Unterschiede recht schön farbig aufbereitet. Und so wie es aussieht war es die Leerzeile, die der liebe Firefox einfügt.....

Grücce
Pfiffy
Locked

Return to “Modifications - In Development v2.0.x”