Seite 1 von 1

birthday add on -> Parse error Fehler <- was tun?

Verfasst: 16.11.2005 09:59
von Mr. Rossi
Hallo,

nach der Installation vom "birthday add on Zodiak 1.0.5em" ist ein Problem aufgetreten:

Wenn man im Index auf einen Beitrag klickt, erscheint folgende Fehlermeldung:
Parse error: parse error, unexpected T_VARIABLE in /usr/export/www/hosting/franzbardon/phpBB2/viewtopic.php on line 845

Die viewtopic.txt-Datei ist hier online zu sehen: http://franzbardon.fr.ohost.de/viewtopic.txt

Weiß jemand was genau das Problem ist und wie es zu beheben ist? :roll:

Verfasst: 16.11.2005 11:30
von easygo
Hi, das Problem ist ein Fehler beim Kopieren und Einfügen -->

Code: Alles auswählen

#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
	if ( $postrow[$i]['user_birthday'] != 999999 ) 
	{
		$poster_birthdate=realdate		$n=0;
		while ($n<26)
		{
			if ($poster_birthdate>=$zodiacdates[$n] && $poster_birthdate<=$zodiacdates[$n+1])
			{
				$zodiac = $lang[$zodiacs[($n/2)]];
				$u_zodiac = $images[$zodiacs[($n/2)]];
				$zodiac_img = '<img src="' . $u_zodiac . '" alt="' . $zodiac . '" title="' . $zodiac . '" align="top" border="0" />';
				$n=26;
			} else
			{
				$n=$n+2;
			}
		}('md', $postrow[$i]['user_birthday']);

#
#-----[ REPLACE WITH ]------------------------------------------
#
	if ( $postrow[$i]['user_birthday'] != 999999 ) 
	{
		$poster_birthdate=realdate('md', $postrow[$i]['user_birthday']);
		$n=0;
		while ($n<26)
		{
			if ($poster_birthdate>=$zodiacdates[$n] && $poster_birthdate<=$zodiacdates[$n+1])
			{
				$zodiac = $lang[$zodiacs[($n/2)]];
				$u_zodiac = $images[$zodiacs[($n/2)]];
				$zodiac_img = '<img src="' . $u_zodiac . '" alt="' . $zodiac . '" title="' . $zodiac . '" align="top" border="0" />';
				$n=26;
			} else
			{
				$n=$n+2;
			}
		}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Here we go ^^ easy

Verfasst: 16.11.2005 13:34
von Mr. Rossi
Hi easygo,

:) :grin: :D Es geht wieder, Danke!!!