nach modeinbau Registrierung nicht mehr möglich

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
r4ven7
Mitglied
Beiträge: 1
Registriert: 14.01.2007 06:27

nach modeinbau Registrierung nicht mehr möglich

Beitrag 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:
Hucki
Mitglied
Beiträge: 4
Registriert: 07.10.2002 23:19

Beitrag 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:
Hucki
Mitglied
Beiträge: 4
Registriert: 07.10.2002 23:19

Beitrag 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
Düssi
Mitglied
Beiträge: 374
Registriert: 05.08.2006 16:46
Wohnort: in NRW

Beitrag 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 ;-)
Antworten

Zurück zu „phpBB 2.0: Mod Support“