Seite 1 von 1

nach modeinbau Registrierung nicht mehr möglich

Verfasst: 14.01.2007 06:39
von r4ven7
wenn ich register oder edit profile aufrufe

Fatal error: Call to undefined function: birthday_interface() in /www/htdocs/w0063cb2/includes/usercp_register.php on line 1236

Code: Alles auswählen

if ( !$board_config['bday_lock'] || $userdata['user_birthday'] == 0 )
	{
		$block = ( $board_config['bday_require'] == TRUE ) ? 'birthday_required' : 'birthday_optional';
		$template->assign_block_vars($block, array());
		$template->birthday_interface();
	}
Es ging vorher einwandfrei - hab danach den extreme styles und simple subforum mod installed --> die funktionieren auch beide


Edit: konnte es gerade selbst lösen beim installieren des exstreme styles mod wird die include/template.php überspielt --> is klar das er dan die function nichmer kennen kann :oops: :lol:

Verfasst: 05.06.2007 09:55
von Hucki
Hallo zusammen,

habe auch die beiden obigen Mods eingespielt und bekomme folgende Fehlermeldung bei Profil:

Code: Alles auswählen

Fatal error: Call to undefined method: template->birthday_interface() in /homepages/46/d162853965/htdocs/phpBB2/includes/usercp_register.php on line 1257
in der usercp_register steht:

Code: Alles auswählen

if ( !$board_config['bday_lock'] || $userdata['user_birthday'] == 0 )
	{
		$block = ( $board_config['bday_require'] == TRUE ) ? 'birthday_required' : 'birthday_optional';
		$template->assign_block_vars($block, array());
		$template->birthday_interface();
	}
nur ich bekomme das nicht hin :oops:

Verfasst: 05.06.2007 22:44
von Hucki
Hallo,

niemand ne Idee ??
Ich bastel hier schon 20 Std rum und bekomm das nicht hin :cry:

Nachtrag,
hab das jetzt so hinbekommen:

Code: Alles auswählen

if ( !$board_config['bday_lock'] || $userdata['user_birthday'] == 0 )
	{
		$block = ( $board_config['bday_require'] == TRUE ) ? 'birthday_required' : 'birthday_optional';
		$template->assign_block_vars($block, array());
	//	$template->birthday_interface();
	}
ist aber glaub ich nicht im Sinne des Erfinders.
K.A. was da jetzt nicht gehen wird

Verfasst: 29.10.2007 21:01
von Düssi
Falls es noch aktuell ist .. ?!?!?

Man muß es nicht ausklammern:

Gehe hin und öffne die template.php im includes.

Suche:
/**
* Generates a full path+filename for the given filename, which can either
* be an absolute name, or a name relative to the rootdir for this Template
* object.
*/
function make_filename($filename
und füge DAVOR folgendes ein:
function birthday_interface()
{
global $lang;

// the following was adapted from bbcode.php's load_bbcode_template function.
$bday_filename = $this->make_filename('birthday_interface.tpl');
$fp = fopen($bday_filename, 'r');
$temp = fread($fp, filesize($bday_filename));
fclose($fp);

$temp = str_replace('\\', '\\\\', $temp);
$temp = str_replace('\'', '\\\'', $temp);
$temp = str_replace("\n", '', $temp);
$temp = preg_replace('#<!-- BEGIN (.*?) -->(.*?)<!-- END (.*?) -->#', "\n" . '$bday_tpls[\'\\1\'] = \'\\2\';', $temp);

$bday_tpls = array();

eval($temp);

$bday_format = preg_replace('#\\\\.|[^djFmMnYy]#','',$lang['DATE_FORMAT']);
$bday_format = substr(chunk_split($bday_format,1,'.'),0,-1);

$bday_template = isset($bday_tpls['bday_start']) ? $bday_tpls['bday_start'] : '';

$i = '';
while ( isset($bday_tpls["bday_month$i"]) && isset($bday_tpls["bday_day$i"]) && isset($bday_tpls["bday_year$i"]) )
{
if ( !empty($i) )
{
$bday_template.= isset($bday_tpls['bday_glue']) ? $bday_tpls['bday_glue'] : '';
}
$bday_template.= strtr($bday_format,array(
'd' => $bday_tpls["bday_day$i"],
'j' => $bday_tpls["bday_day$i"],
'F' => $bday_tpls["bday_month$i"],
'm' => $bday_tpls["bday_month$i"],
'M' => $bday_tpls["bday_month$i"],
'n' => $bday_tpls["bday_month$i"],
'Y' => $bday_tpls["bday_year$i"],
'y' => $bday_tpls["bday_year$i"],
'.' => isset($bday_tpls["bday_subglue$i"]) ? $bday_tpls["bday_subglue$i"] : '')
);
if ( empty($i) )
{
$i = 1;
}
$i++;
}

$bday_template.= isset($bday_tpls['bday_end']) ? $bday_tpls['bday_end'] : '';

$this->uncompiled_code['bday_interface'] = trim($bday_template);

// the following two lines are required for phpBB's that use the eXtreme Styles MOD, cache/template_file_cache.php,
// or other files bearing some sort of semblance to either of those. on phpBB's not using those MODs, these lines
// don't do much of anything.

// also, if you're using cache/template_file_cache.php and you change $lang['DATE_FORMAT'], you'll need to delete
// the appropriate *.php file in the birthday_interface directory.

$this->files['bday_interface'] = $this->make_filename('birthday_interface.tpl');
$this->filename['bday_interface'] = 'birthday_interface_'.$board_config['default_lang'].'.tpl';

$this->assign_var_from_handle('BIRTHDAY_INTERFACE','bday_interface');
}
Danach sollte das mit dem BIrthday wieder klappen, sprich man kann wieder User im Bereich ACP bearbeiten ;-)