Seite 1 von 1

Birthday Mod Prob

Verfasst: 03.07.2003 21:41
von stan
Servus :-)

Hab mir den obigen mod installiert und bekomme bei eingabe eines Geburtsdatum die meldung

Code: Alles auswählen

Fatal error: Call to undefined function: mkrealdate() in /homepages/4/xxxxxx/htdocs/forum/phpBB2/includes/usercp_register.php on line 136
Hab mir schon nen wolf gesucht und brauche bitte einen rat!


Hier meine usercp.register.php

Verfasst: 03.07.2003 22:06
von Gast
dann Poste doch mal was in dieser Datei und Zeile steht


usercp_register

line 136

Verfasst: 03.07.2003 22:15
von JumpinJack
So wie das aussieht hast du noch den GenderMod drinne. Und das past an der Stelle garantiert nicht. Mein Code klappt. Hab aber leider keinen Gender drinne.

Meins:

Code: Alles auswählen

	$signature = str_replace('<br />', "\n", $signature);
	if (isset($HTTP_POST_VARS['birthday']) )
{
	$birthday = intval ($HTTP_POST_VARS['birthday']);
	if ($birthday!=999999)
	{
		$b_day = realdate('j',$birthday);
		$b_md = realdate('n',$birthday);
		$b_year = realdate('Y',$birthday);
	}
} else
{
	$b_day = ( isset($HTTP_POST_VARS['b_day']) ) ? intval ($HTTP_POST_VARS['b_day']) : 0;
	$b_md = ( isset($HTTP_POST_VARS['b_md']) ) ? intval ($HTTP_POST_VARS['b_md']) : 0;
	$b_year = ( isset($HTTP_POST_VARS['b_year']) ) ? intval ($HTTP_POST_VARS['b_year']) : 0;
	if ($b_day && $b_md && $b_year)
	{
		$birthday = mkrealdate($b_day,$b_md,$b_year);
	} else
	{
		$birthday = 999999;
	}
}

	// Run some validation on the optional fields. These are pass-by-ref, so they'll be changed to
	// empty strings if they fail.
Deins:

Code: Alles auswählen

	$signature = str_replace('<br />', "\n", $signature);
if (isset($HTTP_POST_VARS['birthday']) )
{
	$birthday = intval ($HTTP_POST_VARS['birthday']);
	if ($birthday!=999999)
	{
		$b_day = realdate('j',$birthday); 
		$b_md = realdate('n',$birthday); 
		$b_year = realdate('Y',$birthday);
	}
} else
{
	$b_day = ( isset($HTTP_POST_VARS['b_day']) ) ? intval ($HTTP_POST_VARS['b_day']) : 0;
	$b_md = ( isset($HTTP_POST_VARS['b_md']) ) ? intval ($HTTP_POST_VARS['b_md']) : 0;
	$b_year = ( isset($HTTP_POST_VARS['b_year']) ) ? intval ($HTTP_POST_VARS['b_year']) : 0;
	if ($b_day && $b_md && $b_year)
	{
		$birthday = mkrealdate($b_day,$b_md,$b_year);
	} else
	{
		$birthday = 999999;
	}
	}$gender = ( isset($HTTP_POST_VARS['gender']) ) ? intval ($HTTP_POST_VARS['gender']) : 0;
	// Run some validation on the optional fields. These are pass-by-ref, so they'll be changed to
	// empty strings if they fail.
	validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $plz, $occupation, $interests, $signature);

Verfasst: 03.07.2003 22:31
von stan
Das ist es auch nicht...den gender hatte ich vorher schon mal weggelassen

Verfasst: 03.07.2003 22:35
von JumpinJack
Was heist du hast den weggelassen?
Also vor dem $gender wird noch ne klammer geschlossen. Die frage ist wo wird sie geöffnet...bzw...hast du also wirklich den gender weggelassen?!

Verfasst: 04.07.2003 08:05
von stan
bei dir ist es doch genau so nur das bei mir der gender vor der klammer liegt was eigentlich egal sein sollte

Re: Birthday Mod Prob

Verfasst: 04.07.2003 13:37
von Acid
stan hat geschrieben:

Code: Alles auswählen

Fatal error: Call to undefined function: mkrealdate() in /homepages/4/xxxxxx/htdocs/forum/phpBB2/includes/usercp_register.php on line 136
Diese Funktion wird in der functions.php definiert (zumindest insofern man sie laut Anleitung angepasst hat).

Verfasst: 04.07.2003 18:47
von stan
Hallo

also..habe es hinbekommen, soweit läuft der mod jetzt.

das einzige was jetzt noch ist, in den topics von den usern wird nicht das
Alter in Jahren sondern

so angezeigt

Code: Alles auswählen

Alter: -1969
was ist das jetzt???